The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Embedding random ads / rotation
I have two <scripts> for embedding ads, one for Google adsense and the other for Amazon associates. Instead of embedding the two ads separately on a single page, is it possible to randomly alternate between these two ads (which are of the same size) so that they don't have to be embedded on two different places on the page?
|
#2
|
||||
|
||||
You will need to create a plugin to do this:
PHP Code:
|
#3
|
|||
|
|||
How do I apply that at a specific part of my template, ie. at the location where I want my ads?
|
#4
|
|||
|
|||
Where you place the variable $ad in your template is where it would display.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|