Is it possible to get the primary group ID?

Daniel 'RTRD'

Well-known member
Is it possible to get the primary group ID?

I am currently using this code:
Code:
<xen:if is="{xen:helper ismemberof, $user, 3}">
Content here
</xen:if>

I have already read this thread but I can't seem to find a solution. Anyone got a solution?
 
If you want to get the primary group ID of a user:
$visitor.user_group_id (current logged in user)
$user.user_group_id (user whose details you're looking at)

I cant make this work:
Code:
<xen:if is="{$user.user_group_id} == {xen:property SomePropertyNameHere}">
 
CONTENT HERE
 
</xen:if>
 
Technically if you use the permissions as XenForo wants, ie inheritance, then everyone's primary usergroup should be Registered.

Nevertheless, ensure the user var is available in your template and double check the xen:property syntax, I would myself but I'm mobile right now.
 
Technically if you use the permissions as XenForo wants, ie inheritance, then everyone's primary usergroup should be Registered.

Nevertheless, ensure the user var is available in your template and double check the xen:property syntax, I would myself but I'm mobile right now.
I sent you a PM.
 
Top Bottom