Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Ads on certain pages doesn't work.. [Answered] (http://www.mysidiaadoptables.com/forum/showthread.php?t=867)

densaugeo 05-24-2009 01:13 PM

Ads on certain pages doesn't work.. [Answered]
 
Well I tried to put an ad on the home page of my site. I even put in what page I wanted when i set up the ad. I've tried many variations of putting the page in there, full URL, partial URL, page name...it doesn't matter what I put in there, the ad appears on every page, and it's quite an annoyance. Is there any way to fix this?

SuzumiyaHaruhi 05-24-2009 01:53 PM

RE: Ads on certain pages doesn't work..
 
What is the link to your script? Don't forget to post that. :)

BMR777 05-24-2009 03:32 PM

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

densaugeo 05-24-2009 05:54 PM

RE: Ads on certain pages doesn't work..
 
Thank you very much :)


All times are GMT -5. The time now is 03:38 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.