Fake Rotating Banner

alexD

New Member
Made this for a pal of mine, but on vbulletin.org he takes all the credit lol but he pay me so I dont care. Would you like to make a new image appear on diffrent pages? Look no more this script will save you from the flash banners.

Replace image table of header with this:

PHP:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td class="headertopbg"></td>
</tr>
<tr>
<if condition="THIS_SCRIPT == 'member' OR THIS_SCRIPT == 'group'">

<td id="headertop2"></td>
<else />
<if condition="THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'private'">
<td id="headertop1"></td>
<else />
<if condition="THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'usercp'">
<td id="headertop3"></td>
<else />
<!-- change to main image -->
<td class="headertop"><img src="images/freshgreen/misc/logo.jpg" alt="logo" /></td>
<!-- /change to main image -->
</if></if></if></tr>
<tr>
<td class="headertopbg"></td>
</tr>
</table>

add a <else /> before each new <if condition=""> or it will not show.


Css for scripts:

Add to additional css:


PHP:
#headertop1 
{ background-color:#000000; 
background-image: url(images/freshblue/misc/logo2.png);
background-position:right;
background-repeat: no-repeat; 
height:200px; 
}
.headertopbg {
height: 10px;
background-image: url(images/freshblue/misc/header_bg.png);
}

#headertop2 { 
background-color:#000000; 
background-image: url(images/freshblue/misc/logo3.png);
background-position:right;
background-repeat: no-repeat; 
height:200px; 
}
#headertop3 {

background-color:#000000; 
background-image: url(images/freshblue/misc/logo4.png);
background-position:right;
background-repeat: no-repeat; 
height:200px; 
}

mine uses background images and not the image source but to do it with images add this instead.

PHP:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td id="headertopbg"><if condition="THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'member'"><img src="images/logo.png" alt="" /><else /><img src="images/logo0.png"></if></td>
</tr>
</table>

It does the same thing but only per image and table data. Pleas enot the top version adds a top and bottom table data used for my small borders you can delete them and only use the table data for the roating script/ Be aware my version does use bg images so my css is or will be diffrent then your own. if you need help with this post here and I will help you out. If you have no coding skills make an admin account with template access only and make a list of the images you wont to show and on what pages. You can find the pages by looking at the end of each url so profiles are member.php or 'member' in the script and if you have arcade its arcade.php or 'arcade' for the script.
 
Back
Top