Back to vBulletin 3.5 Template Modifications

Under Last Post before quick reply - Rotating Banner.
Mod Version: 1.00, by Steven Gibbons

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 3
Released: 01 May 2006 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes  

What this mod does is under the last post in the thread but before the quick reply box adds some random banners of your choice, you can have as many as you want!

This is my first mod out, its simple to install:
In template manager click SHOWTHREAD AND FIND:
PHP Code:
<if condition="$show['quickreply'] OR $show['ajax_js']">
<!-- 
ajax errors table -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" style="display:none; position:absolute" id="ajax_post_errors"
Above Add:
PHP Code:
<center>
<?php  
srand
microtime() * 1000000);  
$advertise rand(1,3);  
//After the rand decided how many youve got and the first and last number e.g got 3, 1,3 
switch($advertise)  
//you can add more just use the same format 
{  
case 
$banner="site 1 image url"$url="site one address"$height="height"$width="width"; break;  
case 
$banner="site 2 image url"$url="site two address"$height="height"$width="width"; break;  
case 
$banner="site 3 image url"$url="site 3 address"$height="height"$width="width"; break;  
}  
$display "<a href=\"$url\" target=\"_blank\"> ";  
$display.= "<img src=\"$banner\"  ";  
$display.= "width=\"$width\" height=\"$height\" border=\"0\" >";  
$display.="</a>";  
echo(
$display);  
?> 
</center>
<br />
There are comments to help you, this is my mod, dont steal.

Credits: Steven Gibbons

Download

No files for download.

Supporters / CoAuthors

  • Steven Gibbons

Similar Mods

Adding A Banner Ad In Quick Reply Box vBulletin 3.0 Template Modifications

vblts.ru supports vBulletin®, 2022-2024