![]() |
Rotate your logos
This template mod randomly picks an image from a specified folder to be used as the forum logo.
In your phpinclude-template, add this code: PHP Code:
and in your header-template, change { titleimage} to $titleimage That should be it, really. |
Thanks again Sparkz. It's installed and working great.
|
Hmm. I've noticed that it occasionally pushes a null to the client (img src=""). I'm thinking this could either be because the random function goes beyond the bounds of the array or the directory read is actually picking up a blank. I'm afraid to just go fooling around with coding languages I haven't learned yet so I'm going to stay away from modifying your code.
Please help. |
Nice but maybe need some work on it as when u refresh a few times a blank image wit the red cross appears ;)
|
Hmm, sorry about that.
Change PHP Code:
PHP Code:
|
You can also use DHTML by putting the code in the head bit :-/
|
There are probably tons of way to do this.
I just happen to know and like PHP, so that's why I chose to do it like this. |
Besides, this saves bandwidth, as it is server side.
Using DHTML, you'd have to pass the whole list if images to the client, plus the code to actually do the pick which image to show. |
nice work sparkz very impressive :D
|
well works like a charm i gave this 10 outta 10 m8 well done :) nice simple and very effective :D
|
All times are GMT. The time now is 02:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|