XF 1.5 Postbit/User info Query: Group and Member No.

Hizen

Member
Hello XenForo,

I want to edit the message user info area to add in new fields. I figured out custom user fields, but I want to display two things in the user block part: 'Group' and 'Member No.'.

m8iISRx.png


E.g. where the green arrow (above) is situated, it would read as follows.
Code:
Joined:
Posts:
From:
Group:
Member No.:

Thank you in advance for any help.

Edit: sort of like this, but the group and member no. would automatically be detected (I just wrote in plain text the words group and member no.).
qMybTUo.png


Edit 2: I figured out member no.! In my message_user_info template I added a new phrase for Member No. and the code:
Code:
                <dl class="pairsJustified">
                    <dt>{xen:phrase member_number}:</dt>
                    <dd>{$user.user_id}</dd>
                </dl>

Still can't find the $usergroup value :(
 
Last edited:
All I need to know is what value to put in my template to display Group name.
Example: {$user.user_id} displays the User's ID.
{$user.user_group_id} displays the Usergroup's ID.

What is the equivalent for Usergroup name?
 
Top Bottom