View Full Version : Moderators cant delete Admin's posts
Goldfinger
09-24-2001, 06:38 AM
Ok i just wanted to know how to make it so the Moderators on my board can't delete my posts because this gets really annoying. I think it should be a feature in 2.0.4 :D. when you set the user Permissions and such.
KuraFire
09-24-2001, 07:18 AM
Good suggestion, I agree that the new vB version (won't it be 2.1 ?) should have an option where Mods can't delete Admin's posts.... :)
Admin
09-24-2001, 09:35 AM
In editpost.php, add the red part of this code:
if ($postinfo[userid]=="1" and $bbuserinfo[userid]!="1") {
show_nopermission();
}
} else {
// otherwise, post is being edited
This should prevent EVERYONE but you to delete your posts.
what if you have 2 admin's?
Admin
09-24-2001, 09:49 AM
Then you do something like this:
if (($postinfo[userid]=="1" and $bbuserinfo[userid]!="1") or ($postinfo[userid]=="2" and $bbuserinfo[userid]!="2")) {
tubedogg
09-24-2001, 09:52 AM
What I don't understand is why people let people be mods on their boards (and stay mods) when the mods repeatedly do something that makes them so obviously untrustworthy...
Anyway, neogeniseva, please enter your license information in your profile. Thanks!
[QUOTE]Originally posted by tubedogg
What I don't understand is why people let people be mods on their boards (and stay mods) when the mods repeatedly do something that makes them so obviously untrustworthy...
Anyway, neogeniseva, please enter your license information in your profile. Thanks!
Goldfinger
09-24-2001, 10:28 PM
Originally posted by FireFly
In editpost.php, add the red part of this code:
if ($postinfo[userid]=="1" and $bbuserinfo[userid]!="1") {
show_nopermission();
}
} else {
// otherwise, post is being edited
This should prevent EVERYONE but you to delete your posts.
can my mods still delete other peoples posts with this code?
KuraFire
09-25-2001, 11:13 AM
[QUOTE]Originally posted by Goldfinger
can my mods still delete other peoples posts with this code?
Admin
09-25-2001, 12:28 PM
No problem. :)
Everything he said is right.
KuraFire
09-25-2001, 01:19 PM
w00t! I'm starting to learn PHP ^_^
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.