Easy... first find the userid's of whoever you want to have permission.
Say it was here and I wanted you to have permission... your userid is 2722.
Change all the
PHP Code:
if ($bbuserinfo[usergroupid]==6)
type statements to
PHP Code:
if ($bbuserinfo[userid]==2722)
.
Add ORs for whoever else you want to allow.
You should change moderator.php as well
PHP Code:
if ($action=="points") {
$userid = verifyid("user",$userid);
$permissions=getpermissions();
if ($permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid]")) {
header("Location: mod/points.php?s=$session[sessionhash]&action=points&userid=$userid");
} else {
show_nopermission();
}
exit;
}
should be replaced by
PHP Code:
if ($action=="points") {
if ($bbuserinfo[userid]==2722 {
header("Location: mod/points.php?s=$session[sessionhash]&action=points&userid=$userid");
} else {
show_nopermission();
}
exit;
}
Replace the similar statement in points.php the same way.