Trek
07-27-2009, 07:00 PM
So I'm doing a really simple check to see if a member has a specific usergroup, but it's failing. Here's the code I'm using:
<if condition="is_member_of($vbulletin->userinfo, $vbulletin->options['gm_ugl_view_chars'])">
The value is set within the options like any other mod.
If the value contains only a single number, it works fine. If the value has more than one group, the condition fails for all groups. So, using "6" works fine, using "6, 15" fails.
Seems to work ok if I hardcode the values 6, 15 however. So I'm not really sure where my problem is. Since this is an array, I'm not sure how to print out the value of $vbulletin->options['gm_ugl_view_chars'] to test it (even though the value is good in the settings).
Thanks for your help!
<if condition="is_member_of($vbulletin->userinfo, $vbulletin->options['gm_ugl_view_chars'])">
The value is set within the options like any other mod.
If the value contains only a single number, it works fine. If the value has more than one group, the condition fails for all groups. So, using "6" works fine, using "6, 15" fails.
Seems to work ok if I hardcode the values 6, 15 however. So I'm not really sure where my problem is. Since this is an array, I'm not sure how to print out the value of $vbulletin->options['gm_ugl_view_chars'] to test it (even though the value is good in the settings).
Thanks for your help!