PDA

View Full Version : Disallow Super mod to prune Forums and threads


Drache
10-30-2004, 01:06 AM
Is there a way to disallow Supermod to prune threads and forums? I know this require hacking. Could someknoe kindly teach me how to do it?

Drache
11-03-2004, 05:22 AM
Bump* Any help on this please? i am sure there are alot other ppl would want to know how to do this.

Bozkurtum
11-03-2004, 07:43 AM
Yes, share pls :(

Drache
11-13-2004, 01:43 AM
it's been 2 weeks still no reply. So i am bumping this thread again. Am i the only one that wants this hack? :(

Colin F
11-13-2004, 08:03 AM
As this is done in the moderator control panel, it might already be enough if you just remove the php files needed to do these actions.

Drache
11-14-2004, 12:05 AM
Thanks for the reply :) could you please tell me which lines i should remove from the mod/index.php?

MickDoneDee
11-17-2004, 06:37 AM
Inside the modcp folder open the index.php file. Look for this code and delete the section in yellow:

// *************************************************
$canmass = false;
if (can_moderate(0, 'canmassmove'))
{
$canmass = true;
construct_nav_option($vbphrase['move'], 'thread.php?do=move', '<br />');
}
if (can_moderate(0, 'canmassprune'))
{
$canmass = true;
construct_nav_option($vbphrase['prune'], 'thread.php?do=prune');
}
if ($canmass)
{
construct_nav_group($vbphrase['thread']);
construct_nav_spacer();
}

print_nav_panel();

echo "</div>\n";
// *************************************************T his removes the Prune link in the Threads section of the Navbar. Without the link they can't access thread.php to do the prune. This is not full-proof since a clever mod can call-up the prune function by typing /modcp/thread.php?do=prune in the address field of their browser.

As an additional security measure, either remove thread.php from the modcp folder, as Colin suggested or simply rename the thread.php file. I renamed it to threed.php so "The page cannot be found" appears when Prune or Move is clicked in the navbar. That is the downside of this suggestion - it also prevents Move threads, as well.

I suppose you could password protect that page using .htaccess (http://www.webmaster-toolkit.com/htaccess-generator.shtml) or a hack like Password protect non vb pages (https://vborg.vbsupport.ru/showthread.php?t=64914).

Warning: .htaccess appears to only password protect directories (not individual pages) and is hidden when uploaded to your FTP server so can't be deleted. I had to delete the contents of the .htaccess and .htpasswd files and re-upload them to enable mod access again.

Drache
11-17-2004, 10:33 AM
thanks for the detailed reply I got it now. thanks again.