Version: 1.00, by Xenon
Developer Last Online: Oct 2023
Version: 3.0.0
Rating:
Released: 01-10-2004
Last Update: Never
Installs: 47
No support by the author.
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
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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":
PHP Code:
// ############################### Start Edit User Note ##########################
if ($_REQUEST['do'] == 'editnote') { if ($noteinfo['posterid'] == $bbuserinfo['userid'] AND $permissions['genericpermissions'] & CANEDITOWNUSERNOTES) { // User has permissions to edit any notes that have posted no matter what the other manage permissions are set to.. } else { if ($viewself AND !($permissions['genericpermissions'] & CANMANAGEOWNUSERNOTES)) { print_no_permission(); } else if (!$viewself AND !($permissions['genericpermissions'] & CANMANAGEOTHERSUSERNOTES)) { print_no_permission(); }
And Add The Following Below That:
PHP Code:
else if (!in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY))) { $noteuser = $DB_site->query_first("SELECT usergroupid FROM " . TABLE_PREFIX . "user WHERE userid='$noteinfo[posterid]'"); if (in_array($noteinfo['posterid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY))) { print_no_permission(); } else if ($noteuser['usergroupid']==6) { print_no_permission(); } else if (($noteuser['usergroupid']==5 OR $noteuser['usergroupid']==7) AND $bbuserinfo['usergroupid']!=6) { print_no_permission(); } }
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).
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?