PlanetMaster
Member
I would like to place an Ad before second last post IF there are more than 6 posts on that page.
Any ideas how I can do that?
P.S. I am also showing an Ad after 2nd post if there are more than 4 posts on that page and following code works fine for this:
Any ideas how I can do that?
P.S. I am also showing an Ad after 2nd post if there are more than 4 posts on that page and following code works fine for this:
HTML:
<xf:if is="$post.position % $xf.options.messagesPerPage==1 AND count($__globals.posts)>4">
<!--AdCode here-->
</xf:if>