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

XF 1.1 Display Ads After First & Every Fifth Post On All Pages In Thread

Discussion in 'XenForo Questions and Support' started by TheBigK, Jan 11, 2012.

  1. TheBigK

    TheBigK Well-Known Member

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Use two different conditional statements.

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

    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 4 AND !{$message.conversation_id}">
    Advert 2 here​
    </xen:if>
     
    cherylferraro, Walter and TheBigK like this.
  3. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    dont forget to add this in the "ad_message_below" template...
     
  4. TheBigK

    TheBigK Well-Known Member

    Thanks! worked like charm!
     

Share This Page