hi!
i want that users with user_level 1 AND 2 have admin-access in cpg!
(1 is admin in phpbb and 2 is mod in phpbb)
so i changed following code in phpbbinc.php but it's not correct:
if ($USER_DATA['user_level'] == 1) {
array_push($USER_DATA['groups'], PHPBB_ADMIN_GROUP);
}
changed to
if ($USER_DATA['user_level'] == 1) {
array_push($USER_DATA['groups'], PHPBB_ADMIN_GROUP);
}
elseif ($USER_DATA['user_level'] == 2) {
array_push($USER_DATA['groups'], PHPBB_ADMIN_GROUP);
}
and
define('USER_IS_ADMIN', ($USER_DATA['user_level'] == 1));
changed to
if ($USER_DATA['user_level'] == 1) {
define('USER_IS_ADMIN', ($USER_DATA['user_level'] == 1));
}
elseif ($USER_DATA['user_level'] == 2) {
define('USER_IS_ADMIN', ($USER_DATA['user_level'] == 2));
}
but it's not correct!!! (not secure)
i think the second part is wrong but i'm not sure!
i hope someone can help me!
Bye!
Markus
edit the bridge file - find// Group definitions
define('PHPBB_ADMIN_GROUP', 1);
define('PHPBB_MEMBERS_GROUP', 2);
define('PHPBB_GUEST_GROUP', 3);
define('PHPBB_BANNED_GROUP', 4);
Quote from: GauGau on October 14, 2004, 11:45:19 PM
edit the bridge file - find// Group definitions
define('PHPBB_ADMIN_GROUP', 1);
define('PHPBB_MEMBERS_GROUP', 2);
define('PHPBB_GUEST_GROUP', 3);
define('PHPBB_BANNED_GROUP', 4);
you have forgotten to post the changed code ;D ;D ;D ;D ;D
it's you who's trying to customize the code, not me. I was just giving a hint what code to change. You'll have to figure out for yourself. Making a larger group admin in coppermine is not recommended at all, I srtongly advise you not to commit those changes.
Joachim
okay!
thanks!
i will try...