![]() |
Google Adsense and Yahoo Publisher on same forum... How?
Hey. I noticed that on http://forums.digitalpoint.com/ - they're using both Adsense and YPN on the same pages - however, there's some type of rotation that changes the template so that ONLY one type is being used at a time. This keeps things legal by not having both types on the same page at the same time...
Does anyone here know how to accomplish that? I think it's a great idea to use both because both networks have different ads and it gives a forum more variety... Thanks in advance... |
I would have a random number generator in the global start template. Then, in conditionals, I would check the value of that number. If it's even, I would show all google ads. If it's odd, I would show yahoo. That way, you control which type is shown throughout the page.
|
For those of us a little more programming challenged (me :cool:) there's always phpAdsNew. I use it on my site, it's pretty easy to set up and works great.
|
Quote:
Was my offer bad? :o |
Quote:
Take a look at phpadsnew like I said, it's easy to use and will do exactly what you are looking for. |
You should use phpAdsnew you can set that it uses the same ad on the same page it is displayed. EX
If Yahoo is in 1 of the spots then it will go in all of the spots. |
I have attempted to do this. I added the code to my global.php file:
Code:
$randomads = rand(1,2); //Display Google(1) or Yahoo (2) Code:
<if condition="$randomads == 1"> It seems as if the ones in under each forum, are always defaulted to 2. |
phpAdsNew2 (or now it's called OpenAds) is the best way to go. It's free and Very robust - though a bit complicated...
|
Quote:
|
All times are GMT. The time now is 06:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|