Announcement

Collapse
No announcement yet.

Adding a rotating banner to the header

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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


    • #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


      • #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


        • #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 customization and demonstration site.
          vBulletin 5 Documentation - Updated every Friday. Report issues here.
          vBulletin 5 API - Full / Mobile
          I am not currently available for vB Messenger Chats.

          Comment


          • #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


            • #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


              • #8
                The header of all the pages.

                Comment


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

                  http://www.saltgeeks.com/adserver/www/delivery/ajs.php

                  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


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

                    Comment


                    • #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


                      • #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:
                        var OX_b592b460 = '';
                        
                        document.write(OX_b592b460);

                        GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

                        Comment


                        • #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...
                          X