Adsense Code Placement Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jawinn
    Senior Member
    • Dec 2005
    • 107

    Adsense Code Placement Question

    Hello,

    I would like to have adsense appear at the top of every page in my forum. I was able to get it to appear at the top of the main page by following this thread (http://www.vbulletin.com/forum/showt...se+top+of+page) but not any others. Please let me know what I am doing wrong.

    Many thanks,
    Jason
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    Add it to the header template, where the   tag is.

    Comment

    • jawinn
      Senior Member
      • Dec 2005
      • 107

      #3
      I did see below

      <td align="$stylevar[right]">
      <if condition="THIS_SCRIPT == 'index'">
      <script type="text/javascript"><!--
      google_ad_client = "pub-xxxxxxxxxxxxxxxx";
      google_ad_width = 728;
      google_ad_height = 90;
      google_ad_format = "728x90_as";
      google_ad_type = "text_image";
      google_ad_channel ="";
      google_color_border = "CCCCCC";
      google_color_bg = "FFFFFF";
      google_color_link = "000000";
      google_color_url = "666666";
      google_color_text = "333333";
      //--></script>
      <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      </script>
      </if>
      </td>
      </tr>
      </table>
      <!-- /logo -->

      <!-- content table -->
      $spacer_open

      $_phpinclude_output

      Did I make a mistake somewhere?

      thanks

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        Thats fine, but that code will only show on the index.

        Comment

        • jawinn
          Senior Member
          • Dec 2005
          • 107

          #5
          How do I change it to display on all pages?

          thx

          Comment

          • Zachery
            Former vBulletin Support
            • Jul 2002
            • 59097

            #6
            Remove
            <if condition="THIS_SCRIPT == 'index'">

            and </if>

            Comment

            • jawinn
              Senior Member
              • Dec 2005
              • 107

              #7
              that worked, THANKS!

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              😀
              😂
              🥰
              😘
              🤢
              😎
              😞
              😡
              👍
              👎