Quote:
Originally posted by Intex
I've now figured out that this problem occurs only for people in certain user groups.
My test user was in the 'Registered' user group and this was fine. I have also created my own groups in vBulletin, one of which is called 'Full Member', which most people are a part of. I changed somebody that was having the problem from 'Full Member' to 'Registered' and it worked perfectly, so it must be to do with the user group permissions. I'm just not sure where to change this.
|
Near the top of proarcade.php, find this code:
PHP Code:
case "gameover":
if (($bbuserinfo[usergroupid] != 2) and
($bbuserinfo[usergroupid] != 5) and
($bbuserinfo[usergroupid] != 6) and
($bbuserinfo[usergroupid] != 7)) {
show_nopermission();
}
break;
To add additional usergroups, just add a corresponding line for that usergroupid. For example, if you wanted to add the usergroup with id 20, your code would end up looking like:
PHP Code:
case "gameover":
if (($bbuserinfo[usergroupid] != 2) and
($bbuserinfo[usergroupid] != 5) and
($bbuserinfo[usergroupid] != 6) and
($bbuserinfo[usergroupid] != 20) and
($bbuserinfo[usergroupid] != 7)) {
show_nopermission();
}
break;
To figure out which group belongs to which ID, when you move the mouse over a group name in the Admin CP, look in your browser's status bar for where it says "...&usergroupid=##" and the ## will be your ID.