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

how to put user id in postbit above registration date

Discussion in 'XenForo Questions and Support' started by Nasr, Nov 6, 2010.

  1. Nasr

    Nasr Well-Known Member

    I'm trying to add user id above registration date. I already know how do put it there, i just dont know what variable to call. it's something to do with

    <xen:: (something here) $user.(id?) />

    another question I have is with user groups.

    If i have someone assigned two user groups. The two user groups have two different colors. How do I make that user be assigned one of the two user groups color. I tried putting the primary group as main color but it takes the color of the group with higher permissions.

    For example, if a user is a support and a moderator, and i put support as a primary group, he'll be assigned the color of moderator instead.

    Thanks
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Edit this template:

    Admin CP -> Appearance -> Templates -> message_user_info

    Add this code:

    Code:
    				<dl class="pairsInline">
    					<dt>Userid:</dt>
    					<dd>{$user.user_id}</dd>
    				</dl>
    
    ...as shown below:

    Code:
    	<xen:if hascontent="true">
    		<div class="extraUserInfo">
    			<xen:contentcheck>
    			
    				<dl class="pairsInline">
    					<dt>Userid:</dt>
    					<dd>{$user.user_id}</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>
    
    That is controlled by the group priority:

    Admin CP -> Users -> List User Groups -> [click a group] -> Display Styling Priority

    Make sure the priority numbers of the different groups are different or it will be ambiguous.
     
    McKel and Nasr like this.
  3. Nasr

    Nasr Well-Known Member


    Thank you very much sir. That worked wonderful.
     

Share This Page