For those of you who like to give their mods administrator access to the gallery too, follow these instructions open up includes/contestants.php and find:
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);
after add
define('MOD', 2);
Close includes/contestants.php
Open up includes/auth.php and find
if ($cat_cache[$cat_id][$type] == AUTH_ALL || $user_info['user_level'] == ADMIN) {
return true;
}
after add
if ($cat_cache[$cat_id][$type] == AUTH_ALL || $user_info['user_level'] == MOD) {
return true;
}
close includes/auth.php
open includes/page_header.php
find
"cp_link" => ($user_info['user_level'] != ADMIN) ? "" : "\n<p align=\"center\">[<a href=\"".ROOT_PATH."admin/index.php\">Control Panel</a>]</p>\n",
replace with
"cp_link" => ($user_info['user_level'] != ADMIN && $user_info['user_level'] != MOD) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Control Panel</a>]</p>\n",
close includes/page_header.php
open admin/admin_global.php and then find
if ($user_info['user_level'] != ADMIN
immediatly after that add
&& $user_info['user_level'] != MOD
close and save all files
All mods should have admin access to the gallery now, this is my first time writing some coding instructions so I might have overlooked something, please let me know if it works!