The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Automatic vB logo rotation
I have a Motorcycle forum and from time to time I use one of the members ride photo's as the forum logo. Can anyone create a mod which will rotate the logo automatically say once a week ?
Thanks. |
#2
|
|||
|
|||
This could easily be done with a standard php script and an include where the image graphic would go.
|
#3
|
|||
|
|||
That sounds promising, can anyone make such a script for me to use ? :nervous:
|
#4
|
|||
|
|||
They are everywhere on the internet.
Your image code: Code:
<img src="$headerimage" border="0" alt="$vboptions[bbtitle]" /> Code:
$totalheaderimages = X; // change to the number of header images you have $randomindex = rand(1, $totalheaderimages); $headerimage = "images/random/header$randomindex.gif"; // change to the path of your images |
#5
|
|||
|
|||
I'm not that familiar with php stuff, can you explain in dummy speak ?
My header:- Code:
<!-- logo --> <a name="top"></a> <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="center"><a href="http://www.throttlejockey.co.uk/cmps_index.php"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td> </tr> </table> <!-- /logo --> <!-- content table --> $spacer_open $_phpinclude_output Much appreciated. Anyone ? |
#6
|
|||
|
|||
I also cannot find phpinclude_start template in vb 3.5
|
#7
|
|||
|
|||
You probably can't find it, because it doesn't exist
Instead (for 3.5), go to "Plugin System -> Add New Plugin". Select "global_start" for the location, and give it a title. In this case, something like "Logo Rotation". Then, put the php code in the "code" box. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|