pdatotaal
09-24-2004, 02:21 PM
I did find a nice rotate banner hack (http://www.vbulletin.org/forum/showpost.php?p=537016&postcount=6) in forum home works great but not on the portal (not showing)
In phpinclude_start I put something like this:
switch(intval(time() / 2) % 3)
{
case 0:
$banner = 'img1.jpg';
$banner_url = 'www.mysite.com';
break;
case 1:
$banner = 'img2.jpg';
$banner_url = 'www.mysite2.com';
break;
case 2:
$banner = 'img3.jpg';
$banner_url = 'www.mysite3.com';
break;
}
And then as last line in navbar template this:
<div align="center"> <a href="$banner_url" TARGET="_blank" ><img src="$banner" border="0" /></a>
</div>
Is shows on Forum Home but not on the Portal. So what can it be? Does vBadvanced CMPS not using the phpinclude_start? Or something else?
In phpinclude_start I put something like this:
switch(intval(time() / 2) % 3)
{
case 0:
$banner = 'img1.jpg';
$banner_url = 'www.mysite.com';
break;
case 1:
$banner = 'img2.jpg';
$banner_url = 'www.mysite2.com';
break;
case 2:
$banner = 'img3.jpg';
$banner_url = 'www.mysite3.com';
break;
}
And then as last line in navbar template this:
<div align="center"> <a href="$banner_url" TARGET="_blank" ><img src="$banner" border="0" /></a>
</div>
Is shows on Forum Home but not on the Portal. So what can it be? Does vBadvanced CMPS not using the phpinclude_start? Or something else?