warning points in postbit

optrex

Well-known member
Is there a way to display a users current warning points level in the postbit or message element?
 
Admin CP -> Appearance -> Templates -> message_user_info

Add the red code:

Rich (BB code):
	<xen:if hascontent="true">
		<div class="extraUserInfo">
			<xen:contentcheck>
			<xen:hook name="message_user_info_extra" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">

				<dl class="pairsInline">
					<dt>Warning Points:</dt>
					<dd>{$user.warning_points}</dd>
				</dl>

				<xen:if is="@messageShowRegisterDate">
					<dl class="pairsInline">
						<dt>{xen:phrase member_since}:</dt>
						<dd>{xen:date $user.register_date}</dd>
					</dl>
				</xen:if>

Screen shot 2013-04-21 at 2.11.27 AM.webp
 
Could I ask, do you know how I could make this display if they have points, but hide it if they have no points?

Rich (BB code):
	<xen:if hascontent="true">
		<div class="extraUserInfo">
			<xen:contentcheck>
			<xen:hook name="message_user_info_extra" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">

				<xen:if is="{$user.warning_points}">
				<dl class="pairsInline">
					<dt>Warning Points:</dt>
					<dd>{$user.warning_points}</dd>
				</dl>
				</xen:if>

				<xen:if is="@messageShowRegisterDate">
					<dl class="pairsInline">
						<dt>{xen:phrase member_since}:</dt>
						<dd>{xen:date $user.register_date}</dd>
					</dl>
				</xen:if>
 
Rich (BB code):
<xen:if hascontent="true">
<div class="extraUserInfo">
<xen:contentcheck>
<xen:hook name="message_user_info_extra" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">

<xen:if is="{$user.warning_points}">
<dl class="pairsInline">
<dt>Warning Points:</dt>
<dd>{$user.warning_points}</dd>
</dl>
</xen:if>

<xen:if is="@messageShowRegisterDate">
<dl class="pairsInline">
<dt>{xen:phrase member_since}:</dt>
<dd>{xen:date $user.register_date}</dd>
</dl>
</xen:if>


On mine it displays at the top of the avatar, anyway to bring it down to the postbit?
 
Back
Top Bottom