A adwolf1 Active member Feb 1, 2016 #1 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!
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!
P Paul B XenForo moderator Staff member Feb 1, 2016 #2 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. Upvote 0 Downvote
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.
A adwolf1 Active member Feb 1, 2016 #3 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. Upvote 0 Downvote
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.
P Paul B XenForo moderator Staff member Feb 1, 2016 #4 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. Upvote 0 Downvote
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.