Announcement

Collapse
No announcement yet.

Google Adsense below Navbar

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

  • Google Adsense below Navbar

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

    Thanks.

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


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


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


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


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


            • #7
              Originally posted by Floris View Post
              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


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


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


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