first of all i think i posted this in the wrong forum... i think it should be in /cpg1.3 (bbs) integration/bridging/
my gallery (version 1.3.1) is bridged with invision power board (version 2.0.0)
now to my problem:
i have 2 user in admin group but i only want one of them to get access to the admin menu (upload aproval -> my profile)
is there some code that can fix so only gallery_admin_mode & user_id=1 or user_name=administrator or something like that can get access to it?
the code (i think) for it is this:
function theme_admin_mode_menu()
{
global $cat;
global $lang_gallery_admin_menu, $lang_user_admin_menu;
global $template_gallery_admin_menu, $template_user_admin_menu;
$cat_l = isset($cat) ? "?cat=$cat" : '';
if (GALLERY_ADMIN_MODE) {
$param = array('{CATL}' => $cat_l,
'{UPL_APP_LNK}' => $lang_gallery_admin_menu['upl_app_lnk'],
'{CONFIG_LNK}' => $lang_gallery_admin_menu['config_lnk'],
'{ALBUMS_LNK}' => $lang_gallery_admin_menu['albums_lnk'],
'{CATEGORIES_LNK}' => $lang_gallery_admin_menu['categories_lnk'],
'{USERS_LNK}' => $lang_gallery_admin_menu['users_lnk'],
'{GROUPS_LNK}' => $lang_gallery_admin_menu['groups_lnk'],
'{COMMENTS_LNK}' => $lang_gallery_admin_menu['comments_lnk'],
'{SEARCHNEW_LNK}' => $lang_gallery_admin_menu['searchnew_lnk'],
'{UTIL_LNK}' => $lang_gallery_admin_menu['util_lnk'],
'{MY_PROF_LNK}' => $lang_user_admin_menu['my_prof_lnk'],
'{BAN_LNK}' => $lang_gallery_admin_menu['ban_lnk'],
'{DB_ECARD_LNK}' => $lang_gallery_admin_menu['db_ecard_lnk'],
);
$html = template_eval($template_gallery_admin_menu, $param);
} else {
$param = array('{ALBMGR_LNK}' => $lang_user_admin_menu['albmgr_lnk'],
'{MODIFYALB_LNK}' => $lang_user_admin_menu['modifyalb_lnk'],
'{MY_PROF_LNK}' => $lang_user_admin_menu['my_prof_lnk']
);
$html = template_eval($template_user_admin_menu, $param);
} elseif (USER_ADMIN_MODE) {
$html = '';
}
return $html;
}
and i guess its the "if (GALLERY_ADMIN_MODE)" part is the part i should change but whatever ive changed it to sofar has just given me errors
i use the hardwired theme if it could be of any help
does anyone have a solution for this?
tia
//lilleman
so you trust both of those guys to mess with your board, but you don't trust them to run coppermine properly? An admin is an admin, which basically means: you should only give admin powers to people you fully trust. Removing the admin menu from sight is not an option, he/she would still be able to perform all admin tasks when being in the admin group. You could code a switch that hides the admin menu from a particular user, but imo that's not an option.
i understand that and i trust him... i just dont want it to be shown except if you are an admin AND a member of group 4
if he can type in the address and get to it its ok
//lilleman