View Full Version : Message Editing Hierarchy
Hi,
Have you ever noticed that Admins and Super Moderators can edit/delete/peak everyone's messages in your forum? This also applies to Moderators for the board they are assigned.
Normally this shouldn't be a problem, but on bigger sites with a lot of Mod's it could lead to problems sometimes, so that's the reason, why i ported over Logicians vb2 hack, changed it to use actual vb3 variables and permission systems.
So great Thanks to my Pal Logician, who's intro post has been rewritten by me as well ;)
After applying the hack default editing permissions in your board will be changed like this:
Moderators: Can edit everyone's posts in the forum they're assigned, UNLESS author is another Moderator, SuperMod or Admin.
SuperModerators: Can edit everyone's post in all boards UNLESS author is another SuperMod or Admin.
Admins: Can edit eveyone's post in all boards UNLESS user is another Admin
SuperAdmins: Can edit eveyone's post in all boards (Superadmins are defined in config.php)
So the hack will apply a "message editing hierarchy" in your board and everyone will be able to edit messages for ones who are below him and cant touch messages of his superiors..If they try, they'll get no permission page. This will apply for editing the messages, deleting the message via edit message or just peaking inside it. But be warned: messages can still be deleted via "Delete Thread / Posts" menu..
The hack is VERY EASY to install with 1 single modification and will work in any vbulletin3 versions I know..
If you install the hack, please click install, thank you..
Enjoy!
Xenon
Since I seem to be having a lot better luck getting your hacks to work on vB3 than I did on vB2 (without a lot of coaching and re-modifications from you, sir ;)), I will give this a shot. ;)
:)
well vb3 hacks are a lot easier to write, once you got familar to it's system :)
Yes, sir, they are. I have to admit, as first I was really hesitant to move up to vB3, but it is the best thing I ever did. ;)
With this hack, is there a way to have it display a message instead of just the no-permissions page? Might save a lot of pms asking what is going on from other mods and admins (if your board has more than one admin, that is).
Zelda-King
11 Jan 2004, 18:39
Installed! I'll just have a little editing contest with my staff and inform you of anything interesting. :D
FleaBag
11 Jan 2004, 18:49
Very handy hack, especially for Mods who might not like each other very much!
Zachery
11 Jan 2004, 19:26
Very handy hack, especially for Mods who might not like each other very much!
so out of wondering, does this include edits? ive had problems with posts that i edit, then a member will redit the post >.<
Zelda-King
11 Jan 2004, 19:37
My results are positive. Everything seems in order. Also people can't edit posts of those of the same rank. ie, supermod VS supermod or admin VS admin. Super admins can do anything though. I like it like this. :)
I'm not exactly requesting this but I thought I'd throw it in as feedback anyway: It'd be nice if there was a section where we could set up the original admin as all-powerful so no other super admins could touch him/her.
so out of wondering, does this include edits? ive had problems with posts that i edit, then a member will redit the post >.<
nope faranth, this is just based on post-author.
But i also have plans to port over my more functions in editpost when admin hack, and such things were possible with that hack :)
@Zelda: i've thought of this myself, and actually it's not hard to add (just one if clause added, but normally superadmins are those, wo can edit files as well normally, so this would be useless ;)
Zachery
11 Jan 2004, 22:28
nope faranth, this is just based on post-author.
But i also have plans to port over my more functions in editpost when admin hack, and such things were possible with that hack :)
@Zelda: i've thought of this myself, and actually it's not hard to add (just one if clause added, but normally superadmins are those, wo can edit files as well normally, so this would be useless ;)
ah give me a ring when you get the otherone going then :D
Yes, sir, they are. I have to admit, as first I was really hesitant to move up to vB3, but it is the best thing I ever did. ;)
With this hack, is there a way to have it display a message instead of just the no-permissions page? Might save a lot of pms asking what is going on from other mods and admins (if your board has more than one admin, that is).
hmm, it's possible of course :)
You have to replace the print_no_perm with standarterror and create a new phrase for this error :).
But as editpost uses standard no permission i choosed the same.
Just tell your mods what was happening, it's easier ;)
Zelda-King
12 Jan 2004, 01:29
@Zelda: i've thought of this myself, and actually it's not hard to add (just one if clause added, but normally superadmins are those, wo can edit files as well normally, so this would be uselessHmm, I hadn't thought of that. Yeah.
trinitym
13 Jan 2004, 01:33
Yay it's here! *L* I was really looking forward to this hack since I was rather uncomfortable with other admins/mods being able to edit my posts. Excellent job Xenon and Logician for the original. :)
*bounces*
Ryan Ashbrook
17 Jan 2004, 02:32
Thanks! This looks like a great hack. :)
Bulent Tekcan
09 Feb 2004, 15:13
Is is compatible for RC4 ?
as you don't have to change code, just add code, yes it is
Oblivion Knight
26 Mar 2004, 00:27
Thanks Xenon,
Once again, an excellent and useful hack :)
teksigns
10 Apr 2004, 01:54
hmmmm
what good is it if this is so ?
But be warned: messages can still be deleted via "Delete Thread / Posts" menu..
does that not defeat the purpose of having the hack ....
if moderators can still use the delete thread in the menu to delete
a administrators post then i dont see the point.....
please correct me if im reading this wrong
the main point of this hack is prevent editing of Admins posts, as the title already states.
the deletion prevention is just a automatic thing which belongs to it as edit and delete are on the same screen when clicking on edit.
Loyalty4Life
14 Apr 2004, 08:43
Xenon - Great hack. I'm using it as we speak.
/me clicked install some time ago :)
Will this apply to user note editing as well or just to post editing?
Just Post editing.
Okay, I'll just have a look at the usernote file and add the code in the right place. ;)
:)
it should work there as well :)
After a quick look.. I decided ther permision would only need to be checked within the editpost action (as the other relevant actions are POST). So, here's what I came up with quickly..
Message Edit Hierarchy Add-On :: User Notes
Version: 1.0
vBulletin Version: 3.0.0 'Gold' (Should Work w/Others, But That's WHat I Have)
Developer: Majik™
File Changes: 1/usernote.php
Find in "/usernote.php":
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And Add The Following Below That:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
The permisison checking can be changed as desired and is only checked provided that the other standard permissions have passed.. These new settings won't have an effect on those without permission currently.
I have it setup so that SuperAdmins can edit anyone's notes, SuperAdmins'/Admins' notes can only be edited by SuperAdmins, and Mods'/SuperMods' notes can only be edited by Admins/SuperAdmins. If desired, you can change the last elseif statement and add others as needed (or any of them for that matter). ;)
not bad :)
i will modify it a bit, so it won't user usergroupid's but use the correct permissions and then edit the hack itself :)
you'll be mentioned :)
not bad :)
i will modify it a bit, so it won't user usergroupid's but use the correct permissions and then edit the hack itself :)
you'll be mentioned :) Ya, that's just what I did the first time quickly. I was going to make some changes to it, but yep.. do whatever you like with it. ;)
the Sandman
21 Apr 2004, 19:54
Any problem installing this hack if the Advanced Editing Options For Mods & Admins hack is already installed (vB 3.0.1)?
the Sandman
21 Apr 2004, 20:26
Hmm - I went ahead and installed it without waiting for a reply since it's so simple and elegant. I'm a SuperAdmin and am able to edit everyone's posts. However, I made a SuperModerator testuser and with that account I cannot edit any post made by a Moderator or higher? Is this a conflict between the two hacks, and is there a solution?
hmm, yeah there could be a conflict between both hacks.
i have not tested them on the same board.
maybe i have to do so when i get more time :)
the Sandman
21 Apr 2004, 22:49
OK - thanks. I uninstalled the Message Editing Hierarchy Hack for now - lemme know when you have a chance to look at it. :)
the Sandman
02 May 2004, 21:09
I posted in the Advanced Editing Options For Mods & Admins Thread that I had resolved my problem with Message Edit Hierarchy but I never updated this Thread. The reason my Super Moderators can not edit my Moderator's Posts is that I gave my Moderator Usergroup the permission "Can Moderate All Forums (is Super Moderator)" - so my Moderators are Super Moderators. It was never a problem with either hack - they work fine together.
House_of_Crazed
23 Jul 2004, 01:57
Xenon -
Can you verify that this will work with 3.0.3 for me please? :)
Because one of my Admins cannot delete a post made by a SuperMod, so, this is the only hack I've added in regards to editing permissions.
HoC
as it is just an additional piece of code, there shouldn't be problems with 3.0.3, just make sure you placed the code on the correct place.
House_of_Crazed
23 Jul 2004, 18:26
I think I know why.
I realized it like hours after I posted this, lol
Tell me this tho :)
If a supermod has access to the admincp, it would prevent the admin from altering any of the supermod's posts, right?? Just verifying what i think it is. lol
Cuz I'm in the middle of rewriting the modcp before I close down access to admincp to the supermods.
HoC
Malacia
24 Jul 2004, 07:09
Very nice hack, just the thing i need. I will be installing when i get my new forum set up
@House: exactly, if you give your supermod acces to the admincp my hack will consider his posts as admin posts, and therefore just super admins can edit those posts ;)
House_of_Crazed
26 Jul 2004, 03:46
*laughs*
Okay, just what I thought. *laughs*
I modified it a bit :) Cuz I hate it when people just go off editing my posts. So, I removed some code from that to only prevent them from editing my posts. :)
So, I'm happy now :) *laughs*
HoC
Hi!
Xenon, are there any problems running this hack on vB 3.0.4?
:)
i don't think so as code just gets added, but right now i didn't have the time to upgrade my testboards, so i cannot say for sure
laborer75
25 Mar 2005, 18:42
Clicked install. Sweet Hack!!!!! Thanx for sharing bro....:)
Hi!
Xenon, are there any problems running this hack on vB 3.0.4?
:)
To ease any concerns, I've readded this hack to every installation between 3.0.1, and the most recent 3.0.7, with zero issues. : )
Oddly enough, I've just lost the use of this as a moderator edited one of my posts the other day.
Is there a problem I overlooked earlier?
there shouldn't be a problem, as i made every possible testscenario.
are you sure, everything is set up correctly?
the Sandman
28 May 2005, 15:57
Can this hack be modified to prevent staff from replying to threads closed by higher ranking staff?
uhm, sorry nope.
that would require to make DB changes to store WHO closes a thread and so on.
There is a super close hack out there, maybe that one can help you
Mikecp421
02 Jan 2006, 18:28
awesome mod, thanks man!!
This is almost what I was looking for, but too bad it does not completely work for 3.6.x
I used it in conjuction with the other plugin from Xenon
http://www.vbulletin.org/forum/showthread.php?t=82599
I tested it in my forum (3.6.5) and came out with partial results.
The quick edit is well covered as moderators were not allowed to edit or delete threads by superior users(admins, supermods etc..)
But there were two problems
- The first was with the post Moderation dropdown menu. When you select an Admins post/thread, you can delete/move/copy/merge it with no problems.
- The second is the Thread Tools. A moderator is still able to delete/edit/move... an Admins thread..
Can anyone make a port of this beautiful hack for 3.6.x
Clicked install and waiting for some updates.. :)
acegames
14 Aug 2007, 13:35
This would be awesome for 3.6.x :)
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.