Google Adsense below Navbar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amc
    Member
    • Jun 2004
    • 61
    • 3.6.x

    Google Adsense below Navbar

    How do I put a google adsense below the navigation bar?

    Thanks.
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    Open the navbar template and at the bottom add:
    HTML Code:
    <div align="center">
    YOUR ADSENSE CODE HERE
    </div>
    AdminCP > Styles & Templates> Style Manager > Dropdown: Edit templates > Navigation & Breadcrumb Templates > Expand > Select navbar and click customize

    Comment

    • J_Chem
      New Member
      • Jul 2005
      • 7

      #3
      does that make the adsense show up on every page?

      beacuse its against google's TOS to have adsense on certain pages.. (eg. search)

      I have my adsense in the navbar, but cant figure out how to make it complient with the rules

      Comment

      • Floris
        Senior Member
        • Dec 2001
        • 37767

        #4
        Each vBulletin .php file has a DEFINE for THIS_SCRIPT, so you can use an if conditional to check against this.

        <if condition="THIS_SCRIPT" == 'search'">This is the search.php page</if>

        To not show the code on search.php for example ...

        THIS_SCRIPT != 'search'

        (if this script is not the search page .. show adsense)

        Comment

        • jon_argent
          New Member
          • Jan 2006
          • 1
          • 3.5.x

          #5
          What would the code be to get my adsense between the bottom of the forums (underneath the mark forums read, view forum leader links) and the whats going on box, and also between the 'Threads in forum' box and the 'Display options' box in the forums?

          This has been driving me mad!!
          PLEASE HELP

          Comment

          • Floris
            Senior Member
            • Dec 2001
            • 37767

            #6
            That's a matter of putting it in the right places inside the templates. If you temporary turn on debug you will get a list of used templates. You can also pretty much guess where goes what.

            The forum index is the forumhome. The template edit is then FORUMHOME.

            The what's going on box is started/ended with a <!-- whatsgoing on box --> comment you can look up, adding your <div>adsense</div> code above or below it will place it accordingly.

            The same goes for the other templates.

            Comment

            • chkdg8
              Member
              • Jun 2006
              • 46
              • 3.6.x

              #7
              Originally posted by Floris
              Each vBulletin .php file has a DEFINE for THIS_SCRIPT, so you can use an if conditional to check against this.

              <if condition="THIS_SCRIPT" == 'search'">This is the search.php page</if>

              To not show the code on search.php for example ...

              THIS_SCRIPT != 'search'

              (if this script is not the search page .. show adsense)
              I'm trying to make my site compliant to google's rules but I don't understand how to perform your mod. I want to remove my ads in the search page but is that the only place where the ads would violate google's TOS?

              Comment

              • hamvuiclub
                New Member
                • Dec 2006
                • 3

                #8
                Simple way to do what you want:

                1- Remove you ads code in navbar template.
                2- In the Forumhome; Forumdisplay and Showthread Templates search $navbar and add this code below it :

                <div align="center">
                YOUR ADSENSE CODE HERE
                </div>

                Comment

                • Silver_2000
                  Senior Member
                  • Mar 2002
                  • 555
                  • 4.2.X

                  #9
                  is there a version of this that could detect if the VB header is being used in Vb or in Photopost ?

                  I want to run Google ads only in VB not in photopost but Im using integrated headers and navbar

                  Thanks in advance
                  http://www.TALONClub.com/forum
                  http://www.prowltalk.com
                  http://www.nloc.net
                  http://www.nhtoc.com

                  Comment

                  • bugriders
                    Member
                    • Dec 2006
                    • 41

                    #10
                    Do you mean like on my site http://www.bugriders.be/forum

                    I can give you the code and location to put them.

                    Comment

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