Ad positioning

Diablotic

Active member
I have added an ad between first and second post but would like to display it only if there are at least two posts in the thread.

I am using this conditional to display it but at the moment it displays even when there is only one post:

Code:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0">
 

Jake Bunce

XenForo moderator
Staff member
Try this:

Code:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$thread.reply_count} > 0">
 
Top