Stagehandspace
02-16-2009, 04:47 PM
I'm trying to create a mod with usergroup permissions, I have placed
$vboptions[xx_xx_group]
within a conditional
<if condition="is_member_of($bbuserinfo,$vboptions[xx_xx_group])">
CONTENT
<else />
OTHER CONTENT
</if>
as a replacement for:
<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
<if condition="in_array($bbuserinfo[usergroupid],array(6,15))">
<if condition="is_member_of($bbuserinfo,array(6,15))">
and none seem to work.
Please help me!!
$vboptions[xx_xx_group]
within a conditional
<if condition="is_member_of($bbuserinfo,$vboptions[xx_xx_group])">
CONTENT
<else />
OTHER CONTENT
</if>
as a replacement for:
<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
<if condition="in_array($bbuserinfo[usergroupid],array(6,15))">
<if condition="is_member_of($bbuserinfo,array(6,15))">
and none seem to work.
Please help me!!