Announcement

Collapse
No announcement yet.

Adsense Code Insertion

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

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

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

    Comment


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


      • #4
        Not an issue.

        I have it running here:

        http://www.defencetalk.com/forums/index.php

        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


        • #5
          Thanks man, you're a legend!

          Comment


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

            Comment


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


              • #8
                Navigation / Breadcrumb Templates > navbar:


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

                Comment


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

                  Comment


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


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


                      • #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:
                        http://www.thecsra.com/forums/forumdisplay.php?f=1

                        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


                        • #13
                          Thanks DefenceTalk.

                          Worked great. Much appericated.

                          Comment


                          • #14
                            This thread was very informative. Thanks.

                            Comment

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