GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Banner Script for vBulletin ::: (https://gfy.com/showthread.php?t=1005740)

DeanCapture 01-12-2011 12:42 PM

Banner Script for vBulletin :::
 
I'm looking for a rotating banner script for vBulletin.

Any suggestions?

Deej 01-12-2011 12:44 PM

yea, php...

is it a simple rotator, or do you need stats n such?

DeanCapture 01-12-2011 12:47 PM

Quote:

Originally Posted by Deej (Post 17839398)
yea, php...

is it a simple rotator, or do you need stats n such?

Don't need stats. Just need it to rotate the banners and when someone clicks on a banner, they're taken to that site. Can you email me the info? Contact is in my sig.

Thanks Deej!!!

Deej 01-12-2011 12:48 PM

Quote:

Originally Posted by DeanCapture (Post 17839405)
Don't need stats. Just need it to rotate the banners and when someone clicks on a banner, they're taken to that site. Can you email me the info? Contact is in my sig.

Thanks Deej!!!

will do...

its rather easy to implement.

fris 01-12-2011 12:50 PM

text file and 1 php file would do ;)

Deej 01-12-2011 12:52 PM

Quote:

Originally Posted by fris (Post 17839419)
text file and 1 php file would do ;)

right, if you want to rotate on numerous pages then add the text file so its easily changeable across the sites...

Adraco 01-12-2011 01:21 PM

^^ What they have already mentioned is absolutely easiest.

If you need stats and stuff, and will edit often, do look into Smart Spots, from Smart-scripts.com (smart thumbs and smart tube and so on). Easy to add and remove and allows for easy handling accross multiple domains and stuff. But that might be a bit more than you're asking for. But for $50, for an easy, out of the box ready solution, I think it's very fair.

onedree 01-12-2011 02:47 PM

Extremely simple :

Code:

<script type="text/javascript">
<!-- Begin
rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        var result = Math.ceil(rnd()*number);
        if (!result)result++;
        return result
};
var ad_cnt1 = 2;
var ad1 = rand(ad_cnt1);
var link1;
var adBanner1;
var width1
var height1
if (ad1==1) {
link1="URL HERE";
adBanner1="Banner image here";
width1="500";
height1="149";
alt1="Alt info here";
}
if (ad1==2) {
link2="URL HERE";
adBanner1="Banner image here";
width1="500";
height1="149";
alt1="Alt info here";
}
document.write('<center><a href="' + link1 + '" target="_blank">');
document.write('<img src="' + adBanner1 + '" width=' + width1 + ' height=' + height1 + ' border=0 alt="' + alt1 + '"></a>');
document.write('</center>');
// End -->
</SCRIPT>


Simply rewrite the (ad1==1) to (ad1==2) / (ad1==3)
and change the 'var ad_cnt1 = 2; ' to however many banners you decide to rotate.

Styles and Templets
Styles Manager
Common Templates / Header

Sincerely
Deidre


All times are GMT -7. The time now is 11:29 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc