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

XF 1.1 Show user_id on user_info

Discussion in 'XenForo Questions and Support' started by wichern.k, Aug 20, 2012.

  1. wichern.k

    wichern.k Member

    I want show User_id in user_info , Help me edit css file?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> message_user_info

    Add the red 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>
  3. Chris D

    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>

Share This Page