1. 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

Discussion in 'Styling and Customization Questions' started by =MGN=RedEagle, Jun 25, 2016.

  1. =MGN=RedEagle

    =MGN=RedEagle Well-Known Member

    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}">
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. =MGN=RedEagle

    =MGN=RedEagle Well-Known Member

    So if I wrote:

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

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

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

Share This Page