![]() |
|
Mod Options |
![]() |
|||||||||||||||||
This modification is in the archives.
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:
REPLACE IT WITH:
If you have more than 4 logos, you can add more array to that script. Upload logo1.gif , logo2.gif , logo3.gif , logo4, etc... to images/misc/ dir Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
Comments |
#2
|
|||
|
|||
Re: Random Logos
Great mod, thank you so much! Works perfectly!!! Surprised this isnt more popular, to be honest with you!
No members have liked this post.
|
#3
|
||||
|
||||
Re: Random Logos
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:
No members have liked this post.
|
#4
|
||||
|
||||
Re: Random Logos
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 ![]()
__________________
Looking for ImpEx?
No members have liked this post.
|
#5
|
|||
|
|||
Re: Random Logos
I'm no coder... at all. And this one took me a lil bit to get going, but it works beautifully
![]() No members have liked this post.
|
#6
|
||||
|
||||
Re: Random Logos
Originally Posted by tnguy3n
what if the logos are on another server?
![]() No members have liked this post.
|
#7
|
|||
|
|||
Re: Random Logos
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
__________________
Kerry-Anne ![]() Previously known as peterska2 My Sites: peterska2.co.uk Super Clickers World News Zone English Football League Popular Usenet Groups Do NOT PM or email me for Support or Modification Requests - No Exceptions!! I do NOT do custom requests. Do not ask for them. - No Exceptions!! No members have liked this post.
|
#8
|
|||
|
|||
Re: Random Logos
Wow! Excellent. This is just what I was looking for. Works great too! Thankyou
![]() No members have liked this post.
|
#9
|
||||
|
||||
Works for 3.5 I suppose?
![]() No members have liked this post.
|
#10
|
||||
|
||||
Worked like a charm, thanks!
![]() No members have liked this post.
|
#11
|
|||
|
|||
any way to add a time variable? I wanted this to logo to change each day or few hours?
No members have liked this post.
|
#12
|
|||
|
|||
Originally Posted by Zachery
Any way to do this in 3.7?
![]()
No members have liked this post.
|
#13
|
||||
|
||||
I have added that code to my forum which runs on 3.7.4 and it worked. Thank you again!
__________________
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 19:40.