• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

Usergroup conditional in plug in

Hey guys,

I know I am off here.

This is a plug in that shows 123flashchat stats on the forum home. I want to only show this to certain usergroups. I know a regular conditional will not work here. Can anyone help?

This is the plug in with the conditional that will not work. I have tried a few different ways.
PHP:
<vb:if condition="!in_array($user[usergroupid], array(6,7,36))">
$template_hook['forumhome_wgo_pos4'] .= vB_Template::create('fchat_wgo_status')->render();
</vb:if>

Thanks
 
This shoul do it:

PHP:
if (is_member_of($vbulletin->userinfo, 6,7,36))
{
    $template_hook['forumhome_wgo_pos4'] .= vB_Template::create('fchat_wgo_status')->render();
}
 
Back
Top