Adsense Code Insertion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zekey
    New Member
    • Dec 2004
    • 22
    • 3.0.4

    Adsense Code Insertion

    Hi there,

    Just wondering where exactly I insert the Google Adsense code in the header template to the ads appear centred under the navbar?

    (I'm an html gumby)
  • Zekey
    New Member
    • Dec 2004
    • 22
    • 3.0.4

    #2
    Hmmm, I've searched the whole forum and can't find the answer to my question... Surely someone here has used adsense?

    Comment

    • Zekey
      New Member
      • Dec 2004
      • 22
      • 3.0.4

      #3
      *Update*

      I have managed to get the google ads under the main logo banner, but I still can't seem to get them under the main vB navigation bar.

      Any help would be appreciated.

      Comment

      • InvisionTech
        Senior Member
        • Dec 2004
        • 135
        • 3.7.x

        #4
        Not an issue.

        I have it running here:



        In your Admin CP > Style Manager > Style > Navigation / Breadcrumb Templates > navbar:

        Find this (at the end of the code):

        Code:
        <!-- / NAVBAR POPUP MENUS -->
        </if>
        Add After:

        Code:
         <center> 
        YOUR GOOGLE AdSense CODE
        </center>
        Wise man says...
        Virtualization.net | DefenceTalk.com | World Affairs Talk.com | AutoTalk.com | SinoDefenceForum.com | Solutions.pro | PakistanTalk.com

        Comment

        • Zekey
          New Member
          • Dec 2004
          • 22
          • 3.0.4

          #5
          Thanks man, you're a legend!

          Comment

          • Unreal Player
            Member
            • Jan 2005
            • 40

            #6
            I was about to post the same thing. THANK YOU!!!!!

            Comment

            • billabong132
              New Member
              • Feb 2005
              • 6

              #7
              I added my adsense code where you said and it shows a blank spot the size of the adsense banner, but nothing displays?

              my site www.lolsu.com

              Comment

              • XDuncan
                Member
                • Oct 2004
                • 99
                • 3.0.0 'Gold'

                #8
                Navigation / Breadcrumb Templates > navbar:


                ^ I got lost there, lol, Im a nub, where do you find Navigation, Breadcrum Templates?

                Comment

                • dandy
                  Member
                  • May 2004
                  • 38

                  #9
                  Is there a way to add border around adsence in this particular scenario, coz it looks kinda stupid without it?

                  Comment

                  • XDuncan
                    Member
                    • Oct 2004
                    • 99
                    • 3.0.0 'Gold'

                    #10
                    Hi all please view http://www.HabboDiscussion.com

                    There is a space above the "text ad" but none below it.

                    how to fix?

                    Comment

                    • elixeus
                      New Member
                      • Dec 2005
                      • 27

                      #11
                      I means you're missing a <br /> or two after the <center>GoogleAd</center>
                      http://www.ragnarokhq.com (Administrator)
                      Fansite for RagnarokOnline since 2002. Since I started I've learned a lot. I'm so vastly experienced at PHP I can pretty much code anything.

                      Comment

                      • Aracnakat
                        Member
                        • Aug 2001
                        • 63

                        #12
                        I've been slowly (very slowly) working on my site and just got finished placing Ads into my forums. You need to modify the following templates:

                        Forumhome
                        Forumdisplay
                        Showthread

                        Place your code after $navbar in each of these templates.

                        Example:


                        PHP Code:
                        $navbar
                        <br />
                        <!-- 
                        Google Ads Begin -->
                        <
                        center>
                        <
                        script type="text/javascript"><!--
                        google_ad_client "your code here";
                        google_ad_width 468;
                        google_ad_height 60;
                        google_ad_format "468x60_as";
                        google_ad_type "text_image";
                        google_ad_channel ="";
                        google_color_border "FFFFFF";
                        google_color_bg "FFFFFF";
                        google_color_link "FF4400";
                        google_color_url "008000";
                        google_color_text "000000";
                        //--></script>
                        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                        </
                        script></center>
                        <!-- 
                        Google Ads End --> 
                        Hope that helps.

                        ~Kat

                        Comment

                        • ChrisTech
                          New Member
                          • Sep 2005
                          • 10
                          • 3.6.x

                          #13
                          Thanks DefenceTalk.

                          Worked great. Much appericated.

                          Comment

                          • Baudman
                            New Member
                            • Jan 2006
                            • 12
                            • 3.5.x

                            #14
                            This thread was very informative. Thanks.

                            Comment

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