PDA

View Full Version : Adsense after last post


temsamane
11-22-2011, 03:11 PM
How can i add an adsense banner after the last post in vb 4.1.8?

so if there are 4 posts, the adsense is showing after the 4th posts

and if there are 8 posts, its showing after the 8th posts

BUT: If there is one post, the adsense is not showing, because i already have one adsense after the first post.

and it must be showing on every page.

kh99
11-22-2011, 05:34 PM
I haven't tested it, but maybe try (in postbit):

<vb:if condition="$post[islastshown] && !$post[isfirstshown]">
//ad code after last post
</vb:if>

temsamane
11-22-2011, 05:58 PM
I haven't tested it, but maybe try (in postbit):

<vb:if condition="$post[islastshown] && !$post[isfirstshown]">
//ad code after last post
</vb:if>

you are the BEST kh99! thank you, its working exactly how i need it