PDA

View Full Version : Postbit If condition


medicalforums
10-15-2009, 06:16 PM
Ok I have this at the end of my postbit template

<if condition="$post[postcount] % $vboptions[maxposts] == 1">
Adsense Code
</if>
<if condition="$post[postcount] % $vboptions[maxposts] == 7">
Adsense Code
</if>
<if condition="$post['islastshown']">
Adsense Code
<if>

What code should I use so that the last (third) Adsense code does not show up when there's no replies to the thread?

Lynne
10-15-2009, 08:15 PM
maybe add in "AND $post['postcount'] != 1" (not tried, but I'd think something like that.)

medicalforums
10-15-2009, 08:29 PM
I had another idea

I made the first code to appear only after the second post

So that way threads with only one post will show only the last code :)

Thanks for the help anyway