Back to vBulletin 3.0 Add-Ons

Adding a Rotating Banner/Ad to VBAdvanced CMPS
Mod Version: 1.00, by Roms

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 3
Released: 29 Oct 2004 Last Update: Never Downloads: 3
Not Supported  

This will add an advertisement to all your VBAdvanced CMPS pages.

So here you go:

In the style manager edit the template "adv_portal"

Find

Code:
<body>
Replace with

Code:
<body onLoad="ranImage();window.status='YOUR SITES NAME';">
Save and Close

Add a new template named "adv_portal_advertisement"

Copy this into it and update it to link to your images and URLS:
Code:
<!-----Banner ads-------->
<SCRIPT LANGUAGE="JavaScript">
pix=new Array("http://www.YOUR-IMAGE-LINK-1","http://www.YOUR-IMAGE-LINK-2","http://www.YOUR-IMAGE-LINK-3")  ;
links=new Array("http://www.URL-FOR-IMAGE-1","http://www.URL-FOR-IMAGE-2","http://www.URL-FOR-IMAGE-3")  ;
imCt=pix.length;
function ranImage(){
ran=Math.floor(Math.random()*imCt);
document.images["image"].src=pix[ran];
document.getElementById("IMFbanner")  .href=links[ran];
}
</script>
<!----- ads----------->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" 
class="tborder" width="100%">
<tr>
<td class="tcat"><b><DIV ALIGN=CENTER>Advertisement</b></div></td>
</tr>
<tr>
<td class="alt1" align="center"><BR>
<a href="http://www.URL-FOR-IMAGE-1" id="IMFbanner" target="_blank"><img src="http://www.YOUR-IMAGE-LINK-1" name="image" border="0"></a>
<BR>
</td>
</tr>
</table>
<br />
<!-----end ads----------->
<!-----End Banner ads-------->
Add Module in VBA CMPs

Title: Advertisement

Template to include: advertisement

Active: Yes

you MUST tick YES to updating all pages or you will get an error.

Download

No files for download.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024