****UPDATE***
Ok, finally figured it out, had to pass in usergroups in the $show variable from the plugin.
So in the plugin:
$show[gm_ugs] = explode(',', trim($vbulletin->options['gm_user_groups_allowed']));
and in the template, the condition is:
<vb:if condition="is_member_of($bbuserinfo, $show[gm_ugs])">
I'm sure that's obvious to most of you, but... just incase someone else has the same question, hopefully that helps.
--------------------------
How do you check multiple usergroups in a template?
Such as:
<vb:if condition="is_member_of($bbuserinfo, $usergroups)">
where $usergroups = "6,15,10"
Specifically:
<vb:if condition="is_member_of($bbuserinfo, array($vboptions['gm_user_groups_allowed']))">
Is what I am trying, but it only seems to work if $vboptions['gm_user_groups_allowed'] is not an array and is a single value.
|