UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

Sponsored Links

+- Recent Posts

Re: German Language files by Tony_R
Today at 07:49:36 am

Re: German Language files by Tony_R
May 15, 2012, 02:09:12 pm

Re: German Language files by EzPortal
May 15, 2012, 02:00:02 pm

Re: German Language files by Tony_R
May 15, 2012, 01:55:26 pm

Re: German Language files by EzPortal
May 15, 2012, 01:38:52 pm

Re: German Language files by Tony_R
May 15, 2012, 01:29:19 pm

Re: German Language files by Tony_R
May 15, 2012, 09:44:14 am

Re: German Language files by Tony_R
May 15, 2012, 08:34:06 am

Re: German Language files by EzPortal
May 15, 2012, 07:27:30 am

Cache Error ? by Tony_R
May 15, 2012, 05:01:37 am

Quick Menu

Announcements
Community Guidelines & Rules
How To Section
EzPortal Showcase
Support

Author Topic: Ad Management MOD inside Blocks  (Read 877 times)

0 Members and 1 Guest are viewing this topic.

Offline Goad

  • Posts: 11
  • Karma: 0
    • View Profile
Ad Management MOD inside Blocks
« on: January 31, 2011, 01:15:25 pm »
I have a forum using SMF 2.0 RC4 and ezPortal 0.4.5

I installed the mod Ad Management and it totally wrecked my template and im not a coder so after playing around with it trying to get it to work just made things worse.

I figured it would be easier to paste the code for various ad positions into blocks. I did this for google adwords ads and worked great, but I want to have various ads on rotation since I work with affiliate ad systems as well as Adwords.

SO....I tried adding the PHP code for the ad placements of Ad Management into a PHP block, but its not working.

This is the code I am trying to add into a PHP Block:

Quote
//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
   if($ads['type']==0)
      echo $ads['content'];
   else
      eval($ads['content']);
   unset($ads);
}

It gives me the following error in the box:

Quote
ezBlock unable to run PHP syntax error!

 

Powered by EzPortal