Adding a rotating banner to the header

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marinelife
    Senior Member
    • Oct 2008
    • 214

    Adding a rotating banner to the header

    I have an openX banner that I run on my site. I want it below or above the search box. I try to add the code but it does not show.
    On line 295 I add <div> my code </div>

    This is in the header template.
    Am I adding it wrong or in the wrong place?
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    Can we get a link to view the issue?

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment

    • marinelife
      Senior Member
      • Oct 2008
      • 214

      #3
      I have no errors they just do not show up? Do I need anything special to add this code:
      <div><p align="right">
      <script type='text/javascript'><!--//<![CDATA[
      var m3_u = (location.protocol=='https:'?'https://www.saltgeeks.com/adserver/www/delivery/ajs.php':'http://www.saltgeeks.com/adserver/www/delivery/ajs.php');
      var m3_r = Math.floor(Math.random()*99999999999);
      if (!document.MAX_used) document.MAX_used = ',';
      document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
      document.write ("?zoneid=1");
      document.write ('&amp;cb=' + m3_r);
      if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
      document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
      document.write ("&amp;loc=" + escape(window.location));
      if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
      if (document.context) document.write ("&context=" + escape(document.context));
      if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
      document.write ("'><\/scr"+"ipt>");
      //]]>--></script><noscript><a href='http://www.saltgeeks.com/adserver/www/delivery/ck.php?n=a2f9b723&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.saltgeeks.com/adserver/www/delivery/avw.php?zoneid=1&cb=INSERT_RANDOM_NUMBER_HERE&n=a2f9b723' border='0' alt='' /></a></noscript></p></div>

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        The reason I asked for a link is so I could see if it was in the page source.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73981

          #5
          You're adding this in the Ad System by editing the Header in Site Builder or by editing the templates? I recommend the former as it is easier to troubleshoot. We would still need a link to your site to troubleshoot though.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • marinelife
            Senior Member
            • Oct 2008
            • 214

            #6
            saltgeeks.com
            I added it in the ad system as a banner it did nothing.Not sure how to edit the header in site builder to add code.

            Comment

            • Lynne
              Former vBulletin Support
              • Oct 2004
              • 26255

              #7
              What page did you add the Ad Module to?

              Please don't PM or VM me for support - I only help out in the threads.
              vBulletin Manual & vBulletin 4.0 Code Documentation (API)
              Want help modifying your vbulletin forum? Head on over to vbulletin.org
              If I post CSS and you don't know where it goes, throw it into the additional.css template.

              W3Schools &lt;- awesome site for html/css help

              Comment

              • marinelife
                Senior Member
                • Oct 2008
                • 214

                #8
                The header of all the pages.

                Comment

                • Lynne
                  Former vBulletin Support
                  • Oct 2004
                  • 26255

                  #9
                  I just put it into my header ad and it IS in the page source. However, it is looking for this file:



                  Did you upload that file to your server?

                  Please don't PM or VM me for support - I only help out in the threads.
                  vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                  Want help modifying your vbulletin forum? Head on over to vbulletin.org
                  If I post CSS and you don't know where it goes, throw it into the additional.css template.

                  W3Schools &lt;- awesome site for html/css help

                  Comment

                  • marinelife
                    Senior Member
                    • Oct 2008
                    • 214

                    #10
                    http://www.saltgeeks.com/ads/www/delivery/ajs.php sorry the link has adserver and it should be ads

                    Comment

                    • marinelife
                      Senior Member
                      • Oct 2008
                      • 214

                      #11
                      <div><p align="right">
                      <script type='text/javascript'><!--//<![CDATA[
                      var m3_u = (location.protocol=='https:'?'https://www.saltgeeks.com/ads/www/delivery/ajs.php':'http://www.saltgeeks.com/ads/www/delivery/ajs.php');
                      var m3_r = Math.floor(Math.random()*99999999999);
                      if (!document.MAX_used) document.MAX_used = ',';
                      document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
                      document.write ("?target=_blank");
                      document.write ('&amp;cb=' + m3_r);
                      if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
                      document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
                      document.write ("&amp;loc=" + escape(window.location));
                      if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
                      if (document.context) document.write ("&context=" + escape(document.context));
                      if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
                      document.write ("'><\/scr"+"ipt>");
                      //]]>--></script><noscript><a href='http://www.saltgeeks.com/ads/www/delivery/ck.php?n=a7bdae1e&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.saltgeeks.com/ads/www/delivery/avw.php?cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a7bdae1e' border='0' alt='' /></a></noscript></p></div>

                      Comment

                      • glennrocksvb
                        Former vBulletin Developer
                        • Mar 2011
                        • 4011
                        • 5.7.X

                        #12
                        I looked at your site and the ad url renders a blank string.

                        The output of this ad url:

                        Code:
                        http://www.saltgeeks.com/ads/www/delivery/ajs.php?target=_blank&cb=11388247413&charset=ISO-8859-1&loc=http%3A//saltgeeks.com/forums/
                        is:

                        Code:
                        [COLOR=#222222][FONT=Consolas][SIZE=12px]var OX_b592b460 = '';
                        
                        document.write(OX_b592b460);[/SIZE][/FONT][/COLOR]

                        Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                        Comment

                        • marinelife
                          Senior Member
                          • Oct 2008
                          • 214

                          #13
                          I rechecked and yes that was the wrong code. Not sure how it changed since it worked on version 4.2.2 but I now have it working.
                          Thanks!!

                          Comment

                          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                          Working...