The cookie only gets set when the member views a thread or forum. If you try to test this by clearing your cookies then logging into an *already banned* account, it won't work.... because you don't have the cookie.
It would, however, work for the person that was banned, because they would (presumably) have viewed at least one thread before they got banned, and thus would have the cookie set.
If you *really* want it to work for banned users who have cleared their cookies previously, you could add something like the following to the plugin definitions :
Code:
<plugin active="1">
<title><![CDATA[NGB System [Profile Start Check]]]></title>
<hookname>global_start</hookname>
<phpcode><![CDATA[
if ($userinfo['usergroupid'] == 8) {
($hook = vBulletinHook::fetch_hook('ngb_plugin')) ? eval($hook) : false;
}
]]></phpcode>
</plugin>
Doing this would, however, probably be pointless, because if the banned person has cleared their cookies once since they last viewed a thread, the odds are they will just clear their cookies again if you re-set the cookie when they login with a banned account.