Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Message Editing Hierarchy Details »»
Message Editing Hierarchy
Version: 1.00, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

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.

Comments
  #22  
Old 04-14-2004, 06:43 AM
Loyalty4Life's Avatar
Loyalty4Life Loyalty4Life is offline
 
Join Date: Oct 2003
Location: Eugene, OR
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xenon - Great hack. I'm using it as we speak.

[high]* Loyalty4Life clicked install some time ago [/high]
Reply With Quote
  #23  
Old 04-15-2004, 07:03 PM
Majik?'s Avatar
Majik? Majik? is offline
 
Join Date: Mar 2004
Location: Thunder Bay, ON, Canada
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this apply to user note editing as well or just to post editing?
Reply With Quote
  #24  
Old 04-15-2004, 07:58 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just Post editing.
Reply With Quote
  #25  
Old 04-15-2004, 09:07 PM
Majik?'s Avatar
Majik? Majik? is offline
 
Join Date: Mar 2004
Location: Thunder Bay, ON, Canada
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
Just Post editing.
Okay, I'll just have a look at the usernote file and add the code in the right place.
Reply With Quote
  #26  
Old 04-15-2004, 10:11 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



it should work there as well
Reply With Quote
  #27  
Old 04-15-2004, 11:45 PM
Majik?'s Avatar
Majik? Majik? is offline
 
Join Date: Mar 2004
Location: Thunder Bay, ON, Canada
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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, -1PREG_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, -1PREG_SPLIT_NO_EMPTY)))
{
    
print_no_permission();
}
else if (
$noteuser['usergroupid']==6)
{
    
print_no_permission();
}
else if ((
$noteuser['usergroupid']==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).
Reply With Quote
  #28  
Old 04-16-2004, 11:21 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 04-16-2004, 04:01 PM
Majik?'s Avatar
Majik? Majik? is offline
 
Join Date: Mar 2004
Location: Thunder Bay, ON, Canada
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
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.
Reply With Quote
  #30  
Old 04-21-2004, 05:54 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any problem installing this hack if the Advanced Editing Options For Mods & Admins hack is already installed (vB 3.0.1)?
Reply With Quote
  #31  
Old 04-21-2004, 06:26 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05383 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete