Version: , by bira
Developer Last Online: Jun 2013
Version: 2.2.x
Rating:
Released: 04-13-2001
Last Update: Never
Installs: 26
No support by the author.
Three additional tools for administrators/moderators - one written by wluke (I hope he does not mind me bundling it with the other two I wrote).
Download the zip file attached. Each hack has its own txt file with exact instructions on how to install it.
Hacks description:
Redirect Removal: Allows you to delete the "Moved" redirect to a thread.
Multi Posts Editing: Allows you to conveniently edit several posts in one thread at once, in one page and with one submit button (good for occassions where a thread gets out of hand and people are overboard).
Place User's Posting under Moderation: Allows you to place a user under moderation, whereby his posts and threads will be queued until an admin/moderator validates them. (written by Wluke).
Cheers,
Bira
UPDATE MAY 3rd:
* Added to the zip-file a fourth tool for mass-prune redirects ("moved:" links) older than x days (with ability to select which to delete and which to leave).
* fixed a bug in the user-under-moderation hack, which allowed threads with a poll to go unmoderated.
:knockedout: I was looking at my local copy and not the server copy. Apparently I didn't have all the files locally. Anyway, I DO have the mod folder, and here is what is shown around line 128:
5. Open admin/index.php.
Find:
<a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=move"> Move </a>
Below it add:
<br> <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prunered"> Mass Prune Redirects</a>
to
Code:
5. Open admin/index.php.
Find:
makenavoption("Mass Move","thread.php?action=move","<br />");
Below it add:
makenavoption("Mass Prune Redirects","thread.php?action=prunered","<br />");
in thread-php-addition.txt, change
PHP Code:
// ###################### Start Prune Redirects #######################
if ($action=="prunered") {
$perms=getpermissions();
if (!$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmassprunered=1")) {
echo "<p>You do not have permission to do this!</p>";
exit;
}
doformheader("thread","prunereddate");
maketableheader("Prune redirects by date");
makeinputcode("Delete redirects older than x days:","daysdelete","");
makemodchoosercode(-1,-1,'','All forums','In forum',0);
doformfooter();
}
to
PHP Code:
// ###################### Start Prune Redirects #######################
if ($action=="prunered") {
$perms=getpermissions();
if (!$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmassprunered=1")) {
echo "<p>You do not have permission to do this!</p>";
exit;
}
doformheader("thread","prunereddate");
maketableheader("Prune redirects by date");
makeinputcode("Delete redirects older than x days:","daysdelete","");
makeforumchooser("forumid",-1,-1,"","----- all -----","Forum:");
makeyesnocode("Include sub forums","subforums");