Resource icon

Add usergroups to Staff online now

Secondary usergroup ids are stored as a comma separated list. You should use {xen:helper ismemberof, $onlineusersvariable, usergroupid, usergroupid2}
 
Secondary usergroup ids are stored as a comma separated list. You should use {xen:helper ismemberof, $onlineusersvariable, usergroupid, usergroupid2}
Thank you James... but can you explain more with an example piece of code?
Something like <xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {$user.secondary_group_ids} == 37" OR {xen:helper ismemberof, $onlineusersvariable, 2, 37}>
 
Sorry, I was on my mobile and didn't have time/effort to reply with it all.

You should be able to just add the helper as an other OR:
Rich (BB code):
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, x, y, z}">
Where x, y, z are a comma-separated list of user group IDs.
 
Sorry, I was on my mobile and didn't have time/effort to reply with it all.

You should be able to just add the helper as an other OR:
Rich (BB code):
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, x, y, z}">
Where x, y, z are a comma-separated list of user group IDs.
? z,y,z is primary user group?
 
Sorry, I was on my mobile and didn't have time/effort to reply with it all.

You should be able to just add the helper as an other OR:
Rich (BB code):
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, x, y, z}">
Where x, y, z are a comma-separated list of user group IDs.

Thank you James for directions...
Is correct something like this?
Rich (BB code):
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, 2,13, 2,13,37, 2,13,37,48}">
 
Thank you James for directions...
Is correct something like this?
Rich (BB code):
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, 2,13, 2,13,37, 2,13,37,48}">
No, you don't need to repeat groups:
Rich (BB code):
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, 2, 13, 37, 48}">

Remember, these are usergroup IDs and not user IDs.
 
No, you don't need to repeat groups:
Rich (BB code):
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, 2, 13, 37, 48}">

Remember, these are usergroup IDs and not user IDs.
Great James! Work perfectly!
Thank you so much! Genius!
 
Doesn't work for me either.

Code:
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {$user.user_group_id} == 15 OR {$user.user_group_id} == 4 OR {$user.user_group_id} == 16">

Edit:

Did this:

Code:
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, 2, 13, 37, 48}">

Not working. :/

http://forums.zelda-sanctuary.net/
 
Doesn't work for me either.

Code:
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {$user.user_group_id} == 15 OR {$user.user_group_id} == 4 OR {$user.user_group_id} == 16">

Edit:

Did this:

Code:
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, 2, 13, 37, 48}">

Not working. :/

http://forums.zelda-sanctuary.net/
Do usergroups 2, 13, 37 and 48 exist on your forum...?
 
Back
Top Bottom