Back to vBulletin 3.6 Template Modifications

Random Logo in Header
Mod Version: 1.00, by Daniel

This modification is in the archives.
vB Version: 3.6.8 Rating: (6 votes - 4.33 average) Installs: 113
Released: 08 Jun 2006 Last Update: Never Downloads: 8
Not Supported Template Edits Re-usable Code Translations  

What it does...
Exactly what the title says. It's very similar to my 3.5 edit.

In the header template....
PLACE THIS AT THE VERY TOP OF THE HEADER TEMPLATE
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin Random Logo In Header Script
var theImages = new Array() // do not change this
<!-- Edit the url images to match yours
theImages[0] = 'images/statusicon/forum_old.gif'
theImages[1] = 'images/statusicon/forum_new.gif'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<td align="$stylevar[left]"><a href="index.php"><img src="'+theImages[whichImage]+'" border="0" alt="$vboptions[bbtitle]" /></a></div>');
}
// End -->
</script>
Remember to edit the image paths under "<!-- Edit the url images to match yours"

Find:
Code:
	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Replace with:
Code:
<SCRIPT LANGUAGE="JavaScript">
showImage();
</script>
Like it? Use it?


Download

No files for download.

Similar Mods

Major Additions vBFlash Header (Lite) - Alternative to default vBulletin logo/header vBulletin 3.6 Add-ons
Random Logo in Header vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024