Page 1 of 1

Xenforo usergroup permission intergration

PostPosted: 29 Jun 2011, 16:27
by GSoares
Is it possible to intergrate the usergroup permission to arrowchat? If not, how can I temporarily enable just to certain usergroups in my board?

PostPosted: 29 Jun 2011, 16:46
by Jason
In the Xenforo template, this should do it....

Code: Select all
<xen:if is="{xen:helper ismemberof, $user, x} AND {$user.is_admin} OR {$user.is_moderator}">

ARROWCHAT FOOTER CODE

</xen:if>


Replace X with the group ID. You can place it around the ArrowChat header code if you want too. You can add as many AND conditions as you want or remove the admin/moderator.

PostPosted: 30 Jun 2011, 13:59
by GSoares
Thank you, although the above code works on certain templates in xenforo, it does not work on the PAGE_CONTAINER template, to the correct code is:

Code: Select all
<xen:if is="{xen:helper ismemberof, $visitor, x} OR {$visitor.is_admin} OR {$visitor.is_moderator}">

ARROWCHAT FOOTER CODE

</xen:if>

Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.