The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
trouble with random color
I want to randomly change the color of my Google ad to one of four colors, and am having trouble getting it to work. I created a new plugin using the navbits hook with the following code:
Code:
$randcolor = mt_rand(1, 4); $whichcolor[1] = "FF6699"; $whichcolor[2] = "FBCC30"; $whichcolor[3] = "DFEF30"; $whichcolor[4] = "97CC45"; $adcolor = $whichcolor[$randcolor]; |
#2
|
||||
|
||||
I believe you need to use global_start as far as using the correct hook. (Not looking at them at the moment so I'm not 100% sure)
|
#3
|
||||
|
||||
Thank you, that worked
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|