Firefox PHP

disable delete for moderators

Posted by nevasport 
disable delete for moderators
October 07, 2008 01:15AM
Hello everybody.

I need to disable the "delete post" function for moderators, if possible keep it alive for admins, which is the easiest way to do it?

Thank you very much.

Pepe
Re: disable delete for moderators
October 07, 2008 01:24AM
One basic way could be to edit the templates (list*.tpl and read*tpl, possibly some control center stuff too) and simply hide the delete links. That won't disable it functionally, but it would take a really evil moderator to forge and call the delete URLs manually. You can use some conditional code to hide the link for non admins.
{IF USER->admin}...show delete link...{/IF}


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: disable delete for moderators
October 07, 2008 01:27AM
great, thanks a million!

pepe
Re: disable delete for moderators
October 15, 2008 10:23AM
by the way, is there an easy way to disable this functionality directly in the code? chanching this issue in each template is not a good solution when you have more than 20 different templates ;)

Pepe
Re: disable delete for moderators
October 15, 2008 10:27AM
You want the link to be not visible in the interface I think. Otherwise you're offering a feature that doesn't work to the mods. The most basic solution to hide the link would be to override the related language string with an empty string from a bit of module code in case the user is not an admin.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: disable delete for moderators
October 15, 2008 09:49PM
ok, i´ve hacked a little the moderation.php and works fine now!

thanks

pepe
Sorry, only registered users may post in this forum.

Click here to login