Diablotic
Active member
I am trying to create a conditional that will display an ad after the last post in the thread only if there is more than 3 replies in the thread.
This is what I came up with:
EDIT:
Simple as that:
This is what I came up with:
Code:
<xen:if is="({$post.position} % {$xenOptions.messagesPerPage} == {$xenOptions.messagesPerPage} - 1 OR {$post.position} == {$thread.reply_count}) AND {$thread.reply_count} !?more than?! 3">
EDIT:
Simple as that:
Code:
<xen:if is="({$post.position} % {$xenOptions.messagesPerPage} == {$xenOptions.messagesPerPage} - 1 OR {$post.position} == {$thread.reply_count}) AND {$thread.reply_count} > 3">