I have edited your plugin because I not like that all users view debug information.
With this code I have limited access to Administrators Group:
Code:
if ( $vbulletin->options['zh_debugmode_forum_onoff'] == '1' and $vbulletin->userinfo['usergroupid'] == 6 )
{
$vbulletin->debug = true;
}
else
{
$vbulletin->debug = false;
}
This is for forum view, this is most important because the users access to this part
Thanks for your work