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

Ad positioning

Discussion in 'XenForo Questions and Support' started by Diablotic, Jul 20, 2012.

  1. Diablotic

    Diablotic Active Member

    I have added an ad between first and second post but would like to display it only if there are at least two posts in the thread.

    I am using this conditional to display it but at the moment it displays even when there is only one post:

    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0">
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Try this:

    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$thread.reply_count} > 0">
    Diablotic likes this.

Share This Page