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

XF 1.4 Displaying using conditional statement

Discussion in 'Styling and Customization Questions' started by hterrag, Dec 30, 2014.

  1. hterrag

    hterrag Active Member

    Hello, How can I display something below the first post of the first page in each thread of a specific forum by using conditional statements? Please guide me.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    How can I show content after post x on every page in a thread, only in forums y and z?
    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == x AND in_array({$thread.node_id}, array(y, z))">
    This content will show after post x on every page, only in forums y and z


    To make it appear on the first page only, drop the % {$xenOptions.messagesPerPage}
    hterrag likes this.
  3. hterrag

    hterrag Active Member

    I must have missed that when I went through the link. Thanks!

Share This Page