PDA

View Full Version : Remove Physical Delete for UserGroups


Mrquarter
03-06-2008, 09:59 AM
Hello,

I had a hacking on my forums where somebody hacked one of the head moderators.

I wanted to take away the priveledge of physical deletion from everybody but Administrators.

Can anybody help me?

I have a UserGroup for G-mods and Head Moderators. Head mods have some admin priveledges but I want to remove Physical Delete from G-mods and Head Mods.

Can anybody help me?

snakes1100
03-06-2008, 10:06 AM
Yes, you can wrap a "if conditional" statement around the code, edit the editpost template


<if condition="in_array($bbuserinfo[usergroupid],array(6))">
<label for="rb_del_hard"><input type="radio" name="deletepost" value="remove" id="rb_del_hard" tabindex="1" />$vbphrase[physically_remove_message]</label></if>

Mrquarter
03-06-2008, 10:51 AM
Thakn you, but I am a little confused.

Boofo
03-06-2008, 11:09 AM
In the Admin CP:

Forums and Moderators -> Show All Moderators -> Super Moderators -> Edit Permmissions for each Moderator you want to edit.

snakes1100
03-06-2008, 11:13 AM
Thakn you, but I am a little confused.

Confused how?

As the resident bear stated, you can do it manually one by one, but what i posted above will do it globally in one shot, my way makes it so no one except an admin can physically see the option when editing a post.

Boofo
03-06-2008, 11:17 AM
But, if they know the link on how to do it, wrapping a conditional like that won't stop them. It will only stop the option from showing.

Mrquarter
03-06-2008, 03:41 PM
Thanks Boofo. it worked :p

mangmel
02-26-2012, 03:39 AM
ok.....