This part smells kind of funny...
Code:
// Edit to set user roles for different vB usergroups
function getRoles($usergroupid) {
switch($usergroupid) {
case 5:
case 6:
return ROLE_ADMIN; // Chat Staff //
case 2:
case 7:
case 8:
return ROLE_USER; // Allowed Users //
default:
return ROLE_NOBODY; // Unauthorised Users (i.e. everyone else) //
}
}
On my unhacked 3.0.7 vBulletin system, usergroupid 8 is the banned group. The regular users are all usergroupid 2. Why are you returning a ROLE_USER for case 8?