PDA

View Full Version : Will this array work?


LostForWords
07-04-2012, 11:21 AM
So I want to use this template modification (https://vborg.vbsupport.ru/showthread.php?t=244946). However instead of just one usergroup and one profile field, I need multiple fields and multiple groups. So if I put in something like this:

<if condition="THIS_SCRIPT != 'profile' OR (!in_array($profilefield[profilefieldid], array(1,2,3,4,5)) OR is_member_of($bbuserinfo, 2,6,7))">

Would it work as I need it to?

kh99
07-04-2012, 11:28 AM
That looks right, but note that the usergroup id list are groups that have permission, not groups that are denied permission.

LostForWords
07-04-2012, 11:52 AM
Excellent, let me try it out and I'll tell you if it works alright.