• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

warning points in postbit

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> message_user_info

Add the red code:

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.png
 

Jake Bunce

XenForo moderator
Staff member
#7
Could I ask, do you know how I could make this display if they have points, but hide it if they have no points?
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>
 

denisx04

Active member
#8
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?