XF 1.2 Conditional Statement issue

Moddis

Active member
I am using the beautiful resource on conditional Statements but ran into an issue with combining one of them:

How can I show content after post x on every page in a thread or conversation?
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == x">
This content will show after post x on every page
</xen:if>

<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 20 OR {$post.position} == 0">
TEXT
</xen:if>

Ideally that should show me the TEXT in the first post of every page of a thread. 20 is the correct number of post that i have set up per thread page so it should work. is there another variable I am missing?

Thanks!
 
Last edited:
I checked the database today, looked at table Conversation_message and found the following columns:

message_id, conversation_id, message_date, user_id, username, message mediumtext, attach_count, ip_id

Can one of those be used to identify a conversation item at being the first one in a series and could that be used in a conditional statement?
 
Top Bottom