View Single Post
  #3  
Old 05-24-2009, 03:32 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 16,763
BMR777 is on a distinguished road
Default RE: Ads on certain pages doesn't work..

Ok, I see what is happening. The way the script is set up by default is that all pages will show the same ads. To make it where the ads show up on only one page, here's what you must do:

On your page where you want the custom ad to appear, for instance index.php find:

PHP Code:
$ads getads("any"); 
Replace With:

PHP Code:
$ads getads("index"); 
The word index above is the page name for the ad system, so when you make a new ad you would put index in the "Page to run this ad on" box.

That will allow you to run a custom ad on that particular page. When I designed the ad system I mostly put that custom page ad setting in for pages like the login or TOS pages which would need to be excluded for adsense requirements, but that small edit will also make it work for other pages. :)

Brandon