Quote:
Originally posted by desi
ok guys .. my appology.. but i really needed to fix this hack cause my forum members were eating my brains off ...
well as suggested i've checked everything .... all the games work fine for admins only ...
but when i try to activate the game... i just doesn't do it ..
i have checked the code over and over again ... but its all as in the install text ....
cheers
|
open proarcade.php
look for this code :
Quote:
if (($bbuserinfo[usergroupid] != 2) and
($bbuserinfo[usergroupid] != 5) and
($bbuserinfo[usergroupid] != 6) and
($bbuserinfo[usergroupid] != 7) and
|
those are user group id's. ANY user group that you want to be able to play ,has to be added to this portion , for example , my code looks like this :
Quote:
if (($bbuserinfo[usergroupid] != 2) and
($bbuserinfo[usergroupid] != 5) and
($bbuserinfo[usergroupid] != 6) and
($bbuserinfo[usergroupid] != 7) and
($bbuserinfo[usergroupid] != 8) and
($bbuserinfo[usergroupid] != 9) and
($bbuserinfo[usergroupid] != 10) and
($bbuserinfo[usergroupid] != 11) and
($bbuserinfo[usergroupid] != 12) and
($bbuserinfo[usergroupid] != 13) and
($bbuserinfo[usergroupid] != 14) and
($bbuserinfo[usergroupid] != 15) and
($bbuserinfo[usergroupid] != 16) and
($bbuserinfo[usergroupid] != 17) and
($bbuserinfo[usergroupid] != 18) and
($bbuserinfo[usergroupid] != 21) and
($bbuserinfo[usergroupid] != 22) and
($bbuserinfo[usergroupid] != 23) and
($bbuserinfo[usergroupid] != 24)) {
show_nopermission();
}
break;
default:
// if no action specified, go to arcade page
$action = "arcade";
break;
}
|
because of all the custom sections and levels we have. He can't put it in the php as a general user group clearance because he doesn't know how many user groups you have , or which ones you wish to allow usage of the arcade , so you have to modify that portion of proarcade.php yourself to fit your individual forum.