• 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

hterrag

Active member
#1
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.
 

Brogan

XenForo moderator
Staff member
#2
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
</xen:if>


https://xenforo.com/community/resources/conditional-statements.1604/

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