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

Is it possible to get the primary group ID?

Daniel 'RTRD'

Well-known member
#1
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?
 

Daniel 'RTRD'

Well-known member
#4
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>
 

James

Well-known member
#7
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.
 

Daniel 'RTRD'

Well-known member
#8
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.