PDA

View Full Version : Restricting who can remove warnings


Abe Babe
06-18-2005, 03:42 PM
I am wondering if there is a way so that only admins [and maybe smods] can remove warnings.

I can do it through the templates using conditionals, but mods can still remove warnings through the mod cp.

Abe Babe...

sv1cec
06-19-2005, 05:37 AM
LoL, quite a few things here:

1. Moderators and Supermods can only "remove" warnings. Remove means "artificially mature" sooner than the normal maturity date.
2. Only Admins can "Completely Remove" a warning, i.e. make it look as if it was never issued.

What you want is that mods and supermods cannot even "artificially mature" a warning?

If so, you need to add those conditionals in the templates, and in mod_warn.php, find:


$y="<a href='{$vboptions[bburl]}/Warn.php?do=RemoveWarning&id={$warn[wid]}'>Remove</a>";


Replace that with:


$y='';


That will remove the ... "Remove" link from the modcp table.

To do it more properly, I need to come up with a more elaborate permissions scheme, where you define what the smods and mods can and cannot do. However, given that vBulletin 3.5 is out, and a lot of people have asked for this hack to be ported to 3.5, I have too much work to do, just checking if this can be done, so I do not have time for such changes in the existing version.

Rgds

Abe Babe
06-23-2005, 03:38 PM
Thanks John. That worked. Quick fix is fine for what I need at the moment. :)

Abe Babe...

sv1cec
06-23-2005, 08:34 PM
Most welcome Sir, most welcome.