I'm trying to create a mod with usergroup permissions, I have placed
PHP Code:
$vboptions[xx_xx_group]
within a conditional
PHP Code:
<if condition="is_member_of($bbuserinfo,$vboptions[xx_xx_group])">
CONTENT
<else />
OTHER CONTENT
</if>
as a replacement for:
PHP Code:
<if condition="is_member_of($bbuserinfo, 1,2,3) ">
so to allow options in admincp but it only seems to work if only 1 group is selected otherwise the "else" content is shown.
I've searched high and low and have found different variations of this with and without arrays
PHP Code:
<if condition="in_array($bbuserinfo[usergroupid],array(6,15))">
PHP Code:
<if condition="is_member_of($bbuserinfo,array(6,15))">
and none seem to work.
Please help me!!