Help
General ArrowChat talk that doesn't fit any other forum.
User avatar
GSoares
Customer
 
Posts: 9
Joined: 29 Jun 2011, 08:11

 

by GSoares 29 Jun 2011, 16:27

Is it possible to intergrate the usergroup permission to arrowchat? If not, how can I temporarily enable just to certain usergroups in my board?
User avatar
Jason
Customer
 
Posts: 2330
Joined: 12 Dec 2009, 16:06

 

by Jason 29 Jun 2011, 16:46

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.
User avatar
GSoares
Customer
 
Posts: 9
Joined: 29 Jun 2011, 08:11

 

by GSoares 30 Jun 2011, 13:59

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>
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 07 Nov 2012, 12:40

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.