Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 35

Adsense last post on page

This is a discussion on Adsense last post on page within the Ad Networks forums, part of the Monetizing category; I'm tiring to make my adsense appear under the first and last post on each page of a thread. It ...

  1. #1
    Junior Member
    Real Name
    Robert Darby
    Join Date
    Apr 2007
    Posts
    6
    Liked
    0 times

    Adsense last post on page

    I'm tiring to make my adsense appear under the first and last post on each page of a thread. It shows under the first post fine but i cant seem to make it show on the last post of each page. It only shows on the last post of the whole thread.

    This is the code i am using now.

    Code:
    <if condition="($post[islastshown] and $post[postcount] &#37; $vboptions[maxposts] > 2 and !$GLOBALS[’vbulletin’]->GPC[’ajax’])">
        <div style="padding:6px 0px 0px 0px;margin-top:4px;">
    
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
            <td class="thead" align="left">Sponsored Links</td>
        </tr>
        <tr>
            <td class="alt1" align="center">
            <br />
    <MY ADSENSE CODE>
            </td>
        </tr>
        </table>
    
        </div>
    
    
    
    </if>
    Anyone know how to make it show up on the last post per page instead of per thread.

    My site if it helps : Feed The Geeks - Technology News and Reviews Forum

    Thanks in advance.

  2. #2
    Senior Member sportsmedjosh's Avatar
    Real Name
    Josh
    Join Date
    Jan 2007
    Posts
    404
    Liked
    0 times
    Did you get a solution to this?
    It may be best to not listen to anything I say for advice. :spin:

  3. #3
    Junior Member
    Real Name
    Robert Darby
    Join Date
    Apr 2007
    Posts
    6
    Liked
    0 times
    Sure did,

    Works like a charm

    This code will show a block under the first post and below the last but it will only show under the last if their is more then 2 post in the thread

    Code:
    <if condition="(($post[postcount] &#37; $vboptions[maxposts] == 1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
        <div style="padding:6px 0px 0px 0px;margin-top:4px;">
    
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
            <td class="thead" align="left">Sponsored Links</td>
        </tr>
        <tr>
            <td class="alt1" align="center">
            <br />
    <ADSENSE CODE>
            </td>
        </tr>
        </table>
    
        </div>
    
    
    </if>

  4. #4
    Senior Member
    Real Name
    Heiko
    Join Date
    Apr 2007
    Location
    Germany
    Posts
    132
    Liked
    0 times
    What template did you put this in? postbit?

    Thanks!

  5. #5
    Senior Member sportsmedjosh's Avatar
    Real Name
    Josh
    Join Date
    Jan 2007
    Posts
    404
    Liked
    0 times
    Quote Originally Posted by beastybob View Post
    Sure did,

    Works like a charm

    This code will show a block under the first post and below the last but it will only show under the last if their is more then 2 post in the thread

    Code:
    <if condition="(($post[postcount] % $vboptions[maxposts] == 1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
        <div style="padding:6px 0px 0px 0px;margin-top:4px;">
    
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
            <td class="thead" align="left">Sponsored Links</td>
        </tr>
        <tr>
            <td class="alt1" align="center">
            <br />
    <ADSENSE CODE>
            </td>
        </tr>
        </table>
    
        </div>
    
    
    </if>
    Do you have a screen shot?

    Also what do you think about an ad under last post vs above quick reply.
    It may be best to not listen to anything I say for advice. :spin:

  6. #6
    Senior Member
    Real Name
    Heiko
    Join Date
    Apr 2007
    Location
    Germany
    Posts
    132
    Liked
    0 times
    Sorry to sound redundant, but: What template did you guys put this in? postbit?

  7. #7
    Junior Member
    Real Name
    Robert Darby
    Join Date
    Apr 2007
    Posts
    6
    Liked
    0 times
    Quote Originally Posted by sportsmedjosh View Post
    Do you have a screen shot?

    Also what do you think about an ad under last post vs above quick reply.
    You can see it in action at Feed The Geeks - Technology News and Reviews Forum

    I'm not sure what you mean by template, I'm a bit of a n00b a VB.

  8. #8
    Senior Member sportsmedjosh's Avatar
    Real Name
    Josh
    Join Date
    Jan 2007
    Posts
    404
    Liked
    0 times
    I really really like that beasty. I would like to have the bottom one only though, any suggestions.
    It may be best to not listen to anything I say for advice. :spin:

  9. #9
    Member
    Real Name
    Steven Taylor
    Join Date
    Jun 2007
    Posts
    94
    Liked
    0 times
    Quote Originally Posted by pixie View Post
    What template did you put this in? postbit?

    Thanks!
    Anyone knoew where to stick it.

  10. #10
    Member
    Real Name
    Jay
    Join Date
    May 2007
    Posts
    86
    Liked
    0 times
    if you want it after any of the posts it belongs in postbit or postbit legacy..

    FIND:
    <!-- / post $post[postid] popup menu -->

    And put your code after it....

    SPORTMEDJOSH: use this-
    <if condition="$post['islastshown']">

    That will put the ad after the last post on every page

  11. #11
    Member
    Real Name
    Jay
    Join Date
    May 2007
    Posts
    86
    Liked
    0 times
    I did run into some information regarding adsense code and showing up after the last post. The problem I was having was the quick reply would send the member to a blank white page. The post goes through but the redirect wouldnt work. I was informed that there is an issue with the quickreply function and the google adsense function running together when putting an ad after the last post...

  12. #12
    Senior Member sportsmedjosh's Avatar
    Real Name
    Josh
    Join Date
    Jan 2007
    Posts
    404
    Liked
    0 times
    Good infomation thats for that.
    It may be best to not listen to anything I say for advice. :spin:

  13. #13
    Senior Member
    Real Name
    Heiko
    Join Date
    Apr 2007
    Location
    Germany
    Posts
    132
    Liked
    0 times
    Anyone knoew where to stick it.
    It's postbit!

    By the way, is there any possibility of having the first adblock not displayed directly after the first but rather the 3rd or 5th post?

    Thanks!

  14. #14
    Member
    Real Name
    Jay
    Join Date
    May 2007
    Posts
    86
    Liked
    0 times
    yes:

    <if condition="$post[postcount] &#37; X == 0">

    Replace X with a number.

  15. #15
    Senior Member
    Real Name
    Heiko
    Join Date
    Apr 2007
    Location
    Germany
    Posts
    132
    Liked
    0 times
    Thanks a lot!

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. The vBSEO LinkBacks User Guide - vBSEO 3.0 GOLD
    By Joe Ward in forum General Discussion
    Replies: 49
    Last Post: 09-20-2011, 08:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •