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

Any Chance of ismemberof Accepting Multiple Usergroup IDs in 1.1?

Brogan

XenForo moderator
Staff member
#3
Do you mean like this?

<xen:if is="!{xen:helper ismemberof, $visitor, 3} AND !{xen:helper ismemberof, $visitor, 4}">

Or do you mean as an array?
 

James

Well-known member
#4
Do you mean like this?

<xen:if is="!{xen:helper ismemberof, $visitor, 3} AND !{xen:helper ismemberof, $visitor, 4}">

Or do you mean as an array?
Like this:
<xen:if is="{xen:helper ismemberof, $visitor, 3, 4, 5,}">

Where 3,4,5 represent IDs. Of course, that's the vB approach and they may choose something like:
<xen:if is="{xen:helper ismemberof, $visitor, {xen:array 3,4,5}}">