XF 1.2 Another conditional question

RaymondCC

Member
I've placed the conditional code below in "message" template to show an Ad on the last line of the first post.

Code:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND !{$message.conversation_id} AND !{$visitor.user_id} AND {$thread.reply_count} > 0">

Y7mpg89.png


The conditional only shows an Ad on the first post.
How can I modify the conditional so that the Ad shows on the first, second and third post? (Google only allows 3 AdSense unit per page)

Thanks.
 
Back
Top Bottom