The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
random image in header
i'd like to have a random image in my forums header, i was wondeirng what would be the best way to go about it and thought template/php include based would be best but i lack the knowledge so i'm here for help
|
#2
|
||||
|
||||
This is totally untested, but try add this to the phpinclude_start template:
Code:
$numimg = '4'; // number of images $rimg = rand(1,$numimg); $randomimage = $rimg; Then putting Code:
<img src="$vboptions[bburl]/$stylevar[imgdir]/$randomimg.gif" alt="Random Image"> In the header template. Make sure all the images have the same extensions, and each file is called 1,2,3 etc... |
#3
|
||||
|
||||
so it's basically just do it as you would normally, thanks assassin
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|