In vb3.7, how would one define a navbar link to only show for specified usergroups? I'm currently using <if condition="in_array($bbuserinfo['usergroupid'], array(6))"> wrapped around the navbar link but I have additional usergroups setup for various things. I found the additional usergroups are stored in the membergroupids field. I tried changing $bbuserinfo['usergroupid'] to $bbuserinfo['membergroupids'] but it doesn't work. What am I doing wrong?
/edit
Scratch this question. I found my answer. I needed to use <if condition="is_member_of($bbuserinfo, 5, 6, 7)">. I hope this helps someone.
|