EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

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

+- Recent Posts

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

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

0 Members and 1 Guest are viewing this topic.

Offline Goad

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
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!

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
16846 Views
Last post February 28, 2009, 09:05:34 am
by EzPortal
3 Replies
6626 Views
Last post August 25, 2009, 06:45:25 pm
by EzPortal
7 Replies
11114 Views
Last post May 06, 2010, 06:16:10 pm
by Maxx
2 Replies
14094 Views
Last post November 18, 2009, 03:05:24 pm
by Eddy Matthews
0 Replies
9034 Views
Last post February 19, 2011, 02:12:38 pm
by mrcf

+-SMF Gallery

Quick Menu


Powered by EzPortal