XF 1.1 Show user_id on user_info

Jake Bunce

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

Add the red code:

Rich (BB code):
	<xen:hook name="message_user_info_text" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
		<h3 class="userText">
			<xen:username user="$user" itemprop="name" rich="true" />
			<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
			<!-- slot: message_user_info_text -->
			<div style="text-align: center;">{$user.user_id}</div>

Chris D

XenForo developer
Staff member
You would probably be better assigning a class to the div rather than doing inline styling... but here's one way. The line Jake highlighted in red, change it to:

<div style="text-align: center; color: #ff6600;">{$user.user_id}</div>