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

Expression and Conditionals Permissions

fattony69

Well-known member
#1
I am using the Widget Sidebar, but I am having issues with the Expression permissions. I can't figure out how to show to multiple usergroups, also avoiding others. For instance, I am trying to create this to work with all registered members, but not my premium members (which are a secondary usergroup).

Code:
XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 2)
I also want to do this with conditionals which I was unable to figure out how to do multiple usergroups for some while avoiding others.
 

Jake Bunce

XenForo moderator
Staff member
#2
Code:
if (XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 2) AND !XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 4))
{

}
If member of group 2 and not member of group 4.