![]() |
Adsense after first post
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. Demo PHP Code:
|
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 :D |
Didn't Kirby post this somewhere??
Thanks anyway. |
Yup.
https://vborg.vbsupport.ru/showpost....10&postcount=2 :) Mental Note: Tagging the post was a good idea :D |
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 |
try this one
Code:
<if condition="$post[postcount] == 1"> |
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 --> Code:
<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))"> |
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. |
True. But, is there a conditional for it?
|
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. |
All times are GMT. The time now is 08:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|