Back to vBulletin 3.6 Add-ons

UKBL ~ Clickable / Rotational / Timed Signature Banners
Mod Version: 1.00, by UKBusinessLive

This modification is in the archives.
vB Version: 3.6.12 Rating: (1 vote - 5.00 average) Installs: 2
Released: 13 Aug 2009 Last Update: Never Downloads: 21
Not Supported Additional Files Re-usable Code Translations Is in Beta Stage  

UKBL ~ Clickable / Rotational / Timed Signature Banners


Well by popular demand here goes, This hack will allow Admins, Moderators the ability to add a clickable, rotational, timed siganture to your forum postbit.

Gone are the days where you can only have 1 or 2 links, now you can advertise to your hearts content, your not doing nothing wrong, only one signature banner at a time.

Admins Make some extra $$$$ by offering this as a paid service to your members.

So are you ready ???


Step 1,

We'll need my rotating timed banner code from this hack here UKBL ~ Timed Rotating Ad Banners

But to save you the hassle its all in the zip file here, ready to download, Firstly open the Rotating.txt file in notepad or a similar text editor

Code:
<html>
<head>
<title>UKBL ~ Clickable/Rotational/Timed Signatures</title>
</head>
<body>
<DIV ALIGN=CENTER>
<script language="JavaScript">
<!--
function adArray() {
 for (i=0; i*2<adArray.arguments.length; i++) {
  this[i] = new Object();
  this[i].src = adArray.arguments[i*2];
  this[i].href = adArray.arguments[i*2+1];
 }
 this.length = i;
}
function getAdNum() {
 dat = new Date();
 dat = (dat.getTime()+"").charAt(8);
 if (dat.length == 1)
  ad_num = dat%ads.length;
 else
  ad_num = 0;
 return ad_num;
}
 var ads = new adArray(
"http://i475.photobucket.com/albums/rr114/ukbusinesslive/1-3.gif",
"http://aavaninsurance.at/ukbusinesslive",
"http://i475.photobucket.com/albums/rr114/ukbusinesslive/banner11.jpg",
"http://www.ukbusinesslive.co.uk/forum",
"http://i475.photobucket.com/albums/rr114/ukbusinesslive/2-2.gif",
"http://tradebusiness.at/ukbusinesslive",
"http://i475.photobucket.com/albums/rr114/ukbusinesslive/7-2.gif",
"http://skytv.at/ukbusinesslive"
);
var ad_num = getAdNum(); 
document.write('<table cellpadding=0 cellspacing=1 border=0><tr><td '
+'align="left">'
+'<A href="'+ads[ad_num].href+'"><IMG SRC="'+ads[ad_num].src+'" '
+'height="60" width="468" border="0" name="js_ad"></a></td></tr></table>');
link_num = document.links.length-1;
function rotateBanner() {
 if (document.images) {
  ad_num = (ad_num+1)%ads.length;
  document.js_ad.src = ads[ad_num].src;
  document.links[link_num].href = ads[ad_num].href;
  setTimeout("rotateBanner()",10000);
 }
}
setTimeout("rotateBanner()",10000);
// -->
</script>
</DIV>
</body>
</html>
The look for the following....

Code:
"http://i475.photobucket.com/albums/rr114/ukbusinesslive/1-3.gif",
"http://aavaninsurance.at/ukbusinesslive",
Basically what you see is what you get, the top line is the url of your image, you can save it to forums/images/misc or even photobucket, like my example above, The second line is the url to the site, Thats its just repeat this for all the ad banners you have and write up the code. Easy. You can use 2 banners or 200 the choice is yours. Once you've edited the files with the urls of your banner graphics, you need to save the file as "Index.html"

Now comes the exiting part

Part 2

We will now need to create a new directory on our server/webspace, but with a twist

We're going to make a directory called "rotate.jpg"

Thats right, complete with extension

Then we go to our newly created directory and we'll add that code above which we just saved as "index.html"

Are you with me???

So this is what you should have looking at your forum structure

Code:
www.myforums.com/rotate.jpg/index.html
Now just go to your User CP and add the url to point to that directory you just created "rotate.jpg" like below



Now your signatures will rotate, Be timed and clickable

By the way, to change the lenght of time that your signature banner rotates, go to the main code and look for

Code:
  setTimeout("rotateBanner()",10000);
 }
}
setTimeout("rotateBanner()",10000);
Now you need to change the time delay, its in milliseconds, don't forget that, so if you want your ads to change every 10 seconds like the code above, you leave it on 10000, if you want 8 seconds, you need to change the code to 8000 in both lines, likewise 5 seconds = 5000

Then just save the file

Don't set it too quick as you could be seen to be spamming
Just be gentle



Download

This modification is archived, downloads are still allowed.

File Type: %1$s sig-rotate.zip (127.7 KB, 21 downloads)

Screenshots

Click image for larger version
Name:	sigrotate.png
Views:	23
Size:	60.9 KB
ID:	103202   Click image for larger version
Name:	1-3.gif
Views:	22
Size:	22.1 KB
ID:	103203   Click image for larger version
Name:	3-1.gif
Views:	22
Size:	21.4 KB
ID:	103204   Click image for larger version
Name:	5-1.gif
Views:	22
Size:	11.1 KB
ID:	103205  

Similar Mods

Forum Home Enhancements UKBL ~ Timed Rotating Ad Banners vBulletin 3.7 Template Modifications
Forum Home Enhancements UKBL ~ Timed Rotating Ad Banners vBulletin 3.8 Template Modifications
End-User Options UKBL ~ Clickable/Rotational/Timed Signatures vBulletin 3.8 Add-ons
End-User Options UKBL ~ Clickable / Rotational / Timed Signature Banners vBulletin 3.7 Add-ons
Forum Home Enhancements UKBL ~ Timed Rotating Ad Banners vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2025