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

Re: How ot activate EZPORTAL when SMF under maintance mode? by EzPortal
October 24, 2018, 07:29:32 am

Re: How ot activate EZPORTAL when SMF under maintance mode? by albin2009
October 24, 2018, 07:28:15 am

Re: How ot activate EZPORTAL when SMF under maintance mode? by albin2009
October 24, 2018, 07:27:18 am

Re: How ot activate EZPORTAL when SMF under maintance mode? by EzPortal
October 24, 2018, 07:21:49 am

How ot activate EZPORTAL when SMF under maintance mode? by albin2009
October 24, 2018, 07:19:12 am

ezPortal 4.0.1 Released by EzPortal
October 23, 2018, 09:18:05 pm

Re: ezPortal 4.0 Released! by EzPortal
September 07, 2018, 02:44:21 pm

Re: ezPortal 4.0 Released! by JorgeAVM
September 07, 2018, 02:28:46 pm

+- HTML Menu


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

Author Topic: Ad Management MOD inside Blocks  (Read 2736 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
10116 Views
Last post February 28, 2009, 09:05:34 am
by EzPortal
3 Replies
5028 Views
Last post August 25, 2009, 06:45:25 pm
by EzPortal
7 Replies
8187 Views
Last post May 06, 2010, 06:16:10 pm
by Maxx
2 Replies
7490 Views
Last post November 18, 2009, 03:05:24 pm
by Eddy Matthews
0 Replies
2417 Views
Last post October 27, 2010, 03:13:44 am
by Kibit

+-SMF Gallery

Quick Menu








Members Online

21 Guests, 0 Users
Powered by EzPortal