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

Expression and Conditionals Permissions

Discussion in 'XenForo Questions and Support' started by fattony69, Oct 6, 2012.

  1. fattony69

    fattony69 Well-Known Member

    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).

    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.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
    fattony69 likes this.

Share This Page