• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Show ads in post view 1 & 2

=MGN=RedEagle

Well-known member
#1
I would like to show an ad under the first post and second post of a forum. How do I do this.

I think this allows me to have 1 under the first post: <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND !{$message.conversation_id}">
 

=MGN=RedEagle

Well-known member
#3
So if I wrote:

<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND !{$message.conversation_id}">
AD CODE
</xen:if>

<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 1 AND !{$message.conversation_id}">
AD CODE
</xen:if>

Then I could force it on to the second and first post?