![]() |
Random Logos
Display Random Logos on header
modded by tnguy3n @ http://www.all4actions.net Template mod: 1 - header This mod displays random logo on form header, like one at vb.org . ^_^ Open header template, FIND: HTML Code:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /> HTML Code:
<script> Upload logo1.gif , logo2.gif , logo3.gif , logo4, etc... to images/misc/ dir |
Great mod, thank you so much! Works perfectly!!! Surprised this isnt more popular, to be honest with you!
|
maybe most of ppl just have a unique logo on their site. anyway, add this following tag to prevent logo from not display in browsers that have javascript disabled.
BELOW </script>, add: HTML Code:
<noscript><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></noscript> |
You could also use in the phpinclude
$rand = rand(1,X); in the header change <img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /> to <img src="/path/to/image$rand.ext" border="0" alt="$vboptions[bbtitle]" /> Then make sure you have logo1.ext logo2.ext, and so forth :) |
I'm no coder... at all. And this one took me a lil bit to get going, but it works beautifully :D Thanks!
|
Quote:
|
you would need to put the full url to them instead of the $stylevar one
eg http://www.yoursite.com/foo/bar/images/graphic.gif |
Wow! Excellent. This is just what I was looking for. Works great too! Thankyou :)
|
Works for 3.5 I suppose? :)
|
Worked like a charm, thanks! :D
|
All times are GMT. The time now is 12:25 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:
|