Quote:
Originally posted by WhiteKnight
Long time passed, but it's still a great hack.
I installed it on 2.2.1 and it works fine for admins and supermods. But it gives me some problems with moderators, because they cannot access the spinner via Admin Options. I guess it's in the permissions, rather than the hack, but I haven't had the time yet to test it thoroughly. Maybe someone could point me to the right direction.
One more thing: how can I add a link to the spinner in the admin/mod cp?
|
i got it work for my mods in 2.2.1 with this modification:
in root/moderator.php search for:
PHP Code:
if ($action=="spinthreads") {
$permissions=getpermissions();
if ($permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmoderateattachments=1")) {
header("Location: mod/index.php?s=$session[sessionhash]&loc=moderate.php?s=$session[sessionhash]%26action=attachments");
} else {
show_nopermission();
}
}
and replace it with this code:
PHP Code:
if ($action=="spinthreads") {
$permissions=getpermissions();
if ($permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmoderateattachments=1")) {
header("Location: mod/index.php?s=$session[sessionhash]&loc=spinner.php?s=$session[sessionhash]%26parentid=$forumid");
} else {
show_nopermission();
}
}
It worked for my mods smoothly. I hope this helps you