Version: , by Mas*Mind
Developer Last Online: Sep 2003
Version: 2.0.x
Rating:
Released: 06-16-2001
Last Update: Never
Installs: 21
No support by the author.
UPDATE 18/7 22:23 (Dutch Time)
Changelog:
deleted some unnecesary htmlspecialchars() and htmlentities()-calls
Fixed the problem that you couldn't move to a forum in which no threads can be posted.
Only re-upload spinner.php (newly attached) and you're done
Description: This hack allows mods/admins to selectively delete/open/close/move/copy/movewredirect threads in a certain forum at once!
VBversions: tested with 2.01 but will probably work on all versions
Features: Certain features are only shown when the particular mod has the rights for it. EG: When a mod can't close threads the 'close' option won't be shown.
$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();
}
}
Note: If you've renamed spinner.txt to spinner.php3 then you have to change
When I take some actions using this awesome script, the ModLogActivities hack won't log them. If I use the standard procedure (using vB standard actions) to delete, close threads actions DO get logged by ModLog hack.
I haven't had the chance to take a look at the code Mas*Mind, and I wondered if you simply call vB functions or does the hack actually make the modifications itself (that would explain why ModLog hack doesn't "trap" the actions).
Thanks for you're work Mas*Mind, you made 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?
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
hmm...might be a little late for this, but I just like to add something to that....if you are going to use that in the admin cp, all you have to do is put in the following instead of the above:
put that somewhere in your admin/index.php file (along with the other links), and it'll just go into the mod folder to get the file (along with any other thing it needs).....if you want to know a good place (well..I didn't really put it in a good place, but it's a good place)...here's what you do: