PDA

View Full Version : "is_member_of($bbuserinfo, 1,2,3,4)


Murtific
07-30-2011, 08:55 AM
<vb:if condition="is_member_of($bbuserinfo, 5,6,7,9,10,11,12)">

Is there anyway way to be able to do a variable for the numbers? I'm trying to keep my board dynamic and if i delete all the usergroups i have to go back into the template and change the values of these lines for my custom templates.

<vb:if condition="is_member_of($bbuserinfo, {vb:raw accessNumbers}">

thows an error....

<vb:if condition="is_member_of($bbuserinfo, $accessNumbers}">
doesn't work either.

Yes, i've registered the variable.
Any ideas?

kh99
07-30-2011, 10:01 AM
This:

<vb:if condition="is_member_of($bbuserinfo, $accessNumbers)">


should work if $accessNumbers is an array.

Murtific
07-30-2011, 10:06 AM
I'll try it, installing the new board atm...