The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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... |
#2
|
||||
|
||||
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.
|
#4
|
|||
|
|||
Quote:
Was my offer bad? |
#5
|
|||
|
|||
Quote:
Take a look at phpadsnew like I said, it's easy to use and will do exactly what you are looking for. |
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
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"> //Show Google Ads <else /> //Show Yahoo Ads </if> It seems as if the ones in under each forum, are always defaulted to 2. |
#8
|
|||
|
|||
phpAdsNew2 (or now it's called OpenAds) is the best way to go. It's free and Very robust - though a bit complicated...
|
#9
|
|||
|
|||
I am currently using the previous version. But I don't think that has options for Google Adsense and Yahoo Publisher.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|