vBulletin Search Engine Optimization
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 ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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>
My site if it helps : Feed The Geeks - Technology News and Reviews Forum Thanks in advance. |
|
#2
| ||||
| ||||
|
Did you get a solution to this?
|
|
#3
| |||
| |||
|
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>
|
|
#4
| |||
| |||
|
What template did you put this in? postbit? Thanks! |
|
#5
| ||||
| ||||
| Quote:
Also what do you think about an ad under last post vs above quick reply. |
|
#6
| |||
| |||
|
Sorry to sound redundant, but: What template did you guys put this in? postbit?
|
|
#7
| |||
| |||
| Quote:
I'm not sure what you mean by template, I'm a bit of a n00b a VB. |
|
#8
| ||||
| ||||
|
I really really like that beasty. I would like to have the bottom one only though, any suggestions.
|
|
#9
| |||
| |||
| Anyone knoew where to stick it.
|
|
#10
| |||
| |||
|
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
| |||
| |||
|
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
| ||||
| ||||
|
Good infomation thats for that.
|
|
#13
| |||
| |||
| Quote:
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
| |||
| |||
|
yes: <if condition="$post[postcount] % X == 0"> Replace X with a number. |
|
#15
| |||
| |||
|
Thanks a lot! |
| Thread Tools | |
| |
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 |