The Arcive of vBulletin Modifications Site. |
|
Adsense after first post Details »»
|
|||||||||||||||||||||||||
Hey guys i think many of you will find this very usefull
![]() With the template edit you can display adsense or banner after every 1st post. i have chosen to use my amazon affilite code. Add this to the bottom of your postbit template. ![]() PHP Code:
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Hi,
I want to have the adsense stuff for people NOT in specific groups. For example: Admins, mods, staff etc. should not get the adsense stuff. Can you give an example how to modify your template to make this possible? btw. thanks for sharing
|
|
#3
|
|||
|
|||
|
Didn't Kirby post this somewhere??
Thanks anyway. |
|
#4
|
||||
|
||||
|
Yup.
https://vborg.vbsupport.ru/showpost....10&postcount=2 ![]() Mental Note: Tagging the post was a good idea
|
|
#5
|
|||
|
|||
|
Quote:
i copied this code and pasted at the end of postbit template as you said and i put all the adsense code in this space u provided , if i am not mistaken. (<adsense code here> ) Could you please tell me where i went wrong?? Thanks |
|
#6
|
|||
|
|||
|
try this one
Code:
<if condition="$post[postcount] == 1"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" <td align="center"> <tr> <td class="thead" align="left">SpinZone Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> ADSENSE CODE HERE </td> </tr> </table> </div> $spacer_close </if> |
|
#7
|
||||
|
||||
|
What's more fun and challenging - because of ajax issues, is adsense in the last post.
That really gets the ad right where the reader's eyes are.http://www.eaforums.com/forums/364919-post1.html Find: Code:
<!-- message --> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> Code:
<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))"> <span id="google" style="float:left;margin:2px;" width="340" height="290" align="center" valign="top"> put banner code here </span></if> |
|
#8
|
||||
|
||||
|
Hmm, keeping database read marking in mind:
Wouldn't the first unread post be the best place? Cause the last Post doesn't necessarily get read - the first unread post will. |
|
#9
|
||||
|
||||
|
True. But, is there a conditional for it?
|
|
#10
|
||||
|
||||
|
There must be as Posts carry Icons for Read/Unread.
So if this Icon changes to Unread for the first time it is the right Post. |
![]() |
|
|