View Full Version : Finding if only 1 post on page
Noodles24
05-15-2007, 12:51 AM
Is there a way of finding out if there's only one post on a page within the template? I have an ad displaying underneath the first post and another after the last post. When there is only 1 post on the page there's 2 ads after each other, which doesn't look good.
TIA
Saskia
06-30-2007, 11:42 PM
Try this for the conditional for the banner after the first post. What it says is: "if this is the first post and not the last, then do this."
<if condition="$post[postcount]==1 AND !$post['islastshown']">
your ad code
</if>
Good luck!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.