vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Adsense last post on page

This is a discussion on Adsense last post on page within the Google Adsense, YPN, & Other 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 ...

Go Back   vBulletin SEO Forums > Monetizing > Google Adsense, YPN, & Other Ad Networks

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools
  #1  
Old 04-24-2007, 05:52 AM
Junior Member
 
Real Name: Robert Darby
Join Date: Apr 2007
Posts: 6
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] % $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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 07-14-2007, 10:20 PM
sportsmedjosh's Avatar
Senior Member
 
Real Name: Josh
Join Date: Jan 2007
Posts: 395
Did you get a solution to this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 07-15-2007, 01:37 AM
Junior Member
 
Real Name: Robert Darby
Join Date: Apr 2007
Posts: 6
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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 07-15-2007, 07:56 AM
Member
 
Real Name: Peter
Join Date: Apr 2007
Location: Germany
Posts: 99
What template did you put this in? postbit?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 07-15-2007, 04:17 PM
sportsmedjosh's Avatar
Senior Member
 
Real Name: Josh
Join Date: Jan 2007
Posts: 395
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 07-15-2007, 05:49 PM
Member
 
Real Name: Peter
Join Date: Apr 2007
Location: Germany
Posts: 99
Sorry to sound redundant, but: What template did you guys put this in? postbit?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 07-15-2007, 08:23 PM
Junior Member
 
Real Name: Robert Darby
Join Date: Apr 2007
Posts: 6
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 07-15-2007, 08:37 PM
sportsmedjosh's Avatar
Senior Member
 
Real Name: Josh
Join Date: Jan 2007
Posts: 395
I really really like that beasty. I would like to have the bottom one only though, any suggestions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #9  
Old 07-16-2007, 11:12 AM
Junior Member
 
Real Name: Steven Taylor
Join Date: Jun 2007
Posts: 18
Quote:
Originally Posted by pixie View Post
What template did you put this in? postbit?

Thanks!
Anyone knoew where to stick it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #10  
Old 07-16-2007, 01:52 PM
Member
 
Real Name: Jay
Join Date: May 2007
Posts: 86
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #11  
Old 07-16-2007, 01:54 PM
Member
 
Real Name: Jay
Join Date: May 2007
Posts: 86
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #12  
Old 07-16-2007, 04:02 PM
sportsmedjosh's Avatar
Senior Member
 
Real Name: Josh
Join Date: Jan 2007
Posts: 395
Good infomation thats for that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #13  
Old 07-18-2007, 11:27 AM
Member
 
Real Name: Peter
Join Date: Apr 2007
Location: Germany
Posts: 99
Quote:
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #14  
Old 07-19-2007, 11:54 AM
Member
 
Real Name: Jay
Join Date: May 2007
Posts: 86
yes:

<if condition="$post[postcount] % X == 0">

Replace X with a number.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #15  
Old 07-19-2007, 06:45 PM
Member
 
Real Name: Peter
Join Date: Apr 2007
Location: Germany
Posts: 99
Thanks a lot!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
The vBSEO LinkBacks User Guide - vBSEO 3.0 GOLD Joe Ward General Discussion 25 06-05-2008 12:04 PM


All times are GMT -4. The time now is 02:11 PM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.