Adsense?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe
    Senior Member
    • May 2000
    • 2435

    #31
    Hmm, I'll have to look at the standard post bit. Mine is changed quite a bit. The above code may not work correct for the standard postbit template. I'll get back to you ASAP.
    Bike Forums.net

    Comment

    • Joe
      Senior Member
      • May 2000
      • 2435

      #32
      Try putting that code right above

      Code:
      <tr>
      <td class="tcat" colspan="2"><img src="$vboptions[cleargifurl]" alt="" width="1" height="1" /></td>
      </tr>
      If you like, you can PM me your admin login, and I can play around with the code... upto you.
      Bike Forums.net

      Comment

      • Kwak
        Senior Member
        • Jul 2003
        • 547
        • 4.2.X

        #33
        Sure. Give me one minute.

        Comment

        • Joe
          Senior Member
          • May 2000
          • 2435

          #34
          Ok, here is what I changed.

          In your postbit template, change:

          [removed]

          with:

          [removed]

          Feel free to play around with the code a bit.

          [EDIT: SEE POST #71 http://www.vbulletin.com/forum/showp...3&postcount=71 FOR UPDATED CODE!]
          Last edited by Joe; Fri 9 Apr '04, 5:54pm.
          Bike Forums.net

          Comment

          • Kwak
            Senior Member
            • Jul 2003
            • 547
            • 4.2.X

            #35
            Really appreciate for helping me out there.
            Thumbs up!

            Comment

            • Floris
              Senior Member
              • Dec 2001
              • 37767

              #36
              hankster asked in PM what would work for conditional.

              <if condition="THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'whateverotherpagetoexclude'">
              adsense here
              </if>
              This way you can show it on every page except those few that aren't allowed.

              Hey everybody, thank you for pointing out that you can't put it on register pages, I have excluded them now. Any other page I should exclude?

              Comment

              • kevinj
                Senior Member
                • Aug 2003
                • 231
                • 3.5.x

                #37
                Thanks joe, that is great mate. I'm still messing about with it, here's an example - http://forums.unlocked-networks.com/...read.php?t=142



                Regards,
                Kevin
                Computer Networking Forums
                www.unlocked-networks.com

                Comment

                • rylin
                  Senior Member
                  • Jan 2001
                  • 1067

                  #38
                  Originally posted by xiphoid
                  Hey everybody, thank you for pointing out that you can't put it on register pages, I have excluded them now. Any other page I should exclude?
                  Search.
                  Search results pages.

                  Probably usercp as well.
                  My open eyes see everything, and you see nothing. . .
                  That forum

                  Comment

                  • hankster
                    Senior Member
                    • Feb 2002
                    • 890

                    #39
                    xiphoid, Thanks, that worked. I also added the login page. That should cover about all of them.

                    Comment

                    • Floris
                      Senior Member
                      • Dec 2001
                      • 37767

                      #40
                      cool
                      i will add the login page too then

                      Comment

                      • okrogius
                        Senior Member
                        • Dec 2001
                        • 1149

                        #41
                        Your best bet is to just show thea ds only on your forumhome, forumdisplay, and showthread. That's where you'll be making 99% of your clicks from.

                        I'm still getting pages on all pages on your site though xiphoid.

                        Comment

                        • Tolitz
                          Senior Member
                          • Dec 2000
                          • 1371
                          • 2.3.0

                          #42
                          I didn't include adsense in my search pages and the registration page ... since I'm still using vB2 and don't have the luxury of conditionals yet, I just added the adsense code to the header, then manually entered the header HTML in the search, signup and registration templates instead of the usual $header bit...
                          OPEN TECH SUPPORT
                          "Tech is our middle name!"

                          Comment

                          • Kwak
                            Senior Member
                            • Jul 2003
                            • 547
                            • 4.2.X

                            #43
                            Anybody managed to get Joe's hack on a Gamma board? Please post if you have done it.

                            Comment

                            • Kathy
                              Senior Member
                              • May 2000
                              • 1251
                              • 3.8.x

                              #44
                              OKie, Now that I have a vb3 to experiment on...I added google adsense to the footer.

                              I tried this at the top of my footer text:
                              Code:
                              <if condition="THIS_PAGE == 'showthread' or THIS_PAGE == 'index' or THIS_PAGE == 'forumdisplay'"> googleadsensecodehere</if>
                              and the google ads disappeared on all pages with the conditionals.

                              What did I do wrong?
                              Fan Club member for VBulletin Dev and Support Team ;)

                              Hysterectomy - GirlsGetGoing.com - Fabulous Fifty

                              I'm frequently asked about the skin designer for my forums. ForumSkin.com

                              Comment

                              • okrogius
                                Senior Member
                                • Dec 2001
                                • 1149

                                #45
                                Originally posted by Kathy
                                OKie, Now that I have a vb3 to experiment on...I added google adsense to the footer.

                                I tried this at the top of my footer text:
                                Code:
                                <if condition="THIS_PAGE == 'showthread' or THIS_PAGE == 'index' or THIS_PAGE == 'forumdisplay'"> googleadsensecodehere</if>
                                and the google ads disappeared on all pages with the conditionals.

                                What did I do wrong?
                                THe code will make ads appear only on pages which are aplicaible, as per the terms and conditions.

                                Comment

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