I just install the Mass Redirects Deletion Hack in vB2.7.7 (same in 2.7.8)
some changes need to be made in this hack:
Quote:
3. Open mod/index.php.
Find:
<a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prune"> Mass Prune </a>
Below it add:
<br> <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prunered"> Mass Prune Redirects</a>
|
change to
Quote:
3. Open mod/index.php.
Find:
makenavoption("Mass Prune","thread.php?action=prune");
Below it add:
makenavoption("Mass Prune Redirects","thread.php?action=prunered");
|
Change
Code:
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");
doformfooter();
}