View Full Version : Automatic vB logo rotation
AndyA
10-10-2005, 07:52 PM
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.
TygerTyger
10-10-2005, 08:37 PM
This could easily be done with a standard php script and an include where the image graphic would go.
AndyA
10-10-2005, 08:51 PM
That sounds promising, can anyone make such a script for me to use ? :nervous:
PennylessZ28
10-10-2005, 09:06 PM
They are everywhere on the internet.
Your image code:
<img src="$headerimage" border="0" alt="$vboptions[bbtitle]" />
Put this in your phpinclude_start
$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
You would images header01 header02 etc
AndyA
10-10-2005, 09:24 PM
I'm not that familiar with php stuff, can you explain in dummy speak ?
My header:-
<!-- 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
Also where would I find phpinclude_start (I use vB 3.5).
Much appreciated.
Anyone ?
XFGHIA
10-16-2005, 04:03 AM
I also cannot find phpinclude_start template in vb 3.5
GottaBeKD
10-16-2005, 04:55 PM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.