<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
<xen:if is="!{$post.position} == 0">
<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
</xen:if>
You will need to apply some custom css though otherwise there will be a blank space where the message user info should be.
<div class="messageInfo primaryContent">
<xen:if is="!{$post.position} == 0">
<div class="messageInfo primaryContent">
<xen:else />
<div style="margin:0">
</xen:if>
<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
<xen:if is="{$post.position} == '0'">
<xen:if is="{$forum.title} != 'One for Testing'">
<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
<xen:else />
include the template containing the CSS over-ride here
</xen:if>
<xen:else />
<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
</xen:if>
Works for thread_view template, not the message template. Been too long, grrrr. Still testing.
ok, got it: in the message template (not thread_view), find:
**codes here**
Change the forum title to the forum's title you do not want the posters info block to appear.
As Brogan stated you do need to change the css to reclaim the unused white space.
<xen:if is="{$post.position} == '0'">
<xen:if is="!in_array({$forum.node_id}, array(1,2,51,52))">
<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
</xen:if>
<xen:else />
<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
</xen:if>
i changed a line for useful using
HTML:<xen:if is="{$post.position} == '0'"> <xen:if is="!in_array({$forum.node_id}, array(1,2,51,52))"> <xen:include template="message_user_info"> <xen:map from="$message" to="$user" /> </xen:include> </xen:if> <xen:else /> <xen:include template="message_user_info"> <xen:map from="$message" to="$user" /> </xen:include> </xen:if>
<xen:if is="{$post.position} == '0'">
<xen:if is="!in_array({$forum.node_id}, array(1,2,51,52))">
<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
<xen:else />
include the template containing the CSS over-ride here
</xen:if>
<xen:else />
<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
</xen:if>
CTA Featured Threads & Portal [Paid]I'm not sure I understand.
You can use conditional statements and custom CSS/templates to achieve it, but it's not built in.
I customize the css as the first message? to introduce code to recognize the plantilla.css?Excellent, thanks! I been away from XenForo for a couple of months and checking for node_id slipped my mind.
Code:<xen:if is="{$post.position} == '0'"> <xen:if is="!in_array({$forum.node_id}, array(1,2,51,52))"> <xen:include template="message_user_info"> <xen:map from="$message" to="$user" /> </xen:include> <xen:else /> include the template containing the CSS over-ride here </xen:if> <xen:else /> <xen:include template="message_user_info"> <xen:map from="$message" to="$user" /> </xen:include> </xen:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.