XF 1.5 Remove postbit for first post in a certain forum

adwolf1

Active member
odd case, but wondering if this is possible --

what would the template conditional be to remove the postbit from the first post of a thread, if the thread exists in a certain forum? Any easy way to do that?

thanks!
 
Code:
<xen:if is="{$forum.node_id} == 1 AND {$thread.first_post_id} == {$message.post_id}">
    ...
</xen:if>

Change the 1 to the node ID.

That assumes $forum, $thread and $message are all available in the template you are editing.
 
Thanks!

would message_user_info have all those variables available? I'm just trying to get rid of the MessageUserInfo block on first posts in certain forums.
 
You can check if a variable is available by adding this to the template:
Code:
{xen:helper dump, $variable}

If it returns an array then it's available, otherwise it if returns NULL it's not available.
 
Back
Top Bottom