Banner Script for vBulletin :::

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DeanCapture
    Haters & Trolls SUCK!
    • Dec 2002
    • 9275

    #1

    Banner Script for vBulletin :::

    I'm looking for a rotating banner script for vBulletin.

    Any suggestions?
    Twitter: @DeanCapture
    Instagram: @TheDeanCapture
    DeanCapture "at" Gmail.com
  • Deej
    I make pixels work
    • Jun 2005
    • 24386

    #2
    yea, php...

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

    Deej's Designs n' What Not
    Hit me up for Design, CSS & Photo Retouching


    Icq#30096880

    Comment

    • DeanCapture
      Haters & Trolls SUCK!
      • Dec 2002
      • 9275

      #3
      Originally posted by Deej
      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!!!
      Twitter: @DeanCapture
      Instagram: @TheDeanCapture
      DeanCapture "at" Gmail.com

      Comment

      • Deej
        I make pixels work
        • Jun 2005
        • 24386

        #4
        Originally posted by DeanCapture
        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.

        Deej's Designs n' What Not
        Hit me up for Design, CSS & Photo Retouching


        Icq#30096880

        Comment

        • fris
          I have to go potty
          • Aug 2002
          • 55756

          #5
          text file and 1 php file would do ;)
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


          Totally Free Templates

          Comment

          • Deej
            I make pixels work
            • Jun 2005
            • 24386

            #6
            Originally posted by fris
            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...

            Deej's Designs n' What Not
            Hit me up for Design, CSS & Photo Retouching


            Icq#30096880

            Comment

            • Adraco
              Confirmed User
              • May 2009
              • 3745

              #7
              ^^ 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.
              ----------------------------------------------------------------------------------
              The truth is not affected by the beliefs, or doubts, of the majority.

              Comment

              • onedree
                So Fucking Banned
                • Nov 2005
                • 633

                #8
                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
                Last edited by onedree; 01-12-2011, 12:53 PM.

                Comment

                Working...