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

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

Version: 2.2.x Rating:
Released: 05-23-2002 Last Update: Never Installs: 31
 
No support by the author.

Hi,

Have you ever noticed that Site 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.

I never thought about the aftermath of this default behavior, until one of my SuperModerators peaked into my message and "stole" a hidden BB code from me! Then I have noticed that I really dont need/want ANYONE to edit my messages, even if they are Mods or Super Mods and this hack is born.

After applying the hack default editing permissions in your board will be changed like this:
  • Moderators: Can edit everyone's posts in the board they're assigned, UNLESS author is a SuperMod or a Site Admin.
  • SuperModerators: Can edit everyone's post in all boards UNLESS author is a Site Admin.
  • Site Admins: Can edit eveyone's post in all boards UNLESS user is userid 1. (Why let other Site Admins edit your posts anyway? hehe)
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 vbulletin versions I know..

If you install the hack, please click install, thank you..

Enjoy! \\=^))

Logician

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-28-2002, 11:54 PM
Marshalus's Avatar
Marshalus Marshalus is offline
 
Join Date: Nov 2001
Location: Lawrence, KS
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After I applied this hack, I can no longer edit my own posts.
Reply With Quote
  #13  
Old 07-29-2002, 06:47 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Marshalus
After I applied this hack, I can no longer edit my own posts.
Marshalus, I'm using the hack for weeks without any problems, so are u sure u applied it correctly? Anyway let's trace what's the problem with your editing problem:

In hack's code find:
PHP Code:
show_nopermission(); exit; 
Replace it as:
PHP Code:
echo "My userid=".$bbuserinfo[userid].'<br>';
echo 
"My user group id=".$bbuserinfo[usergroupid].'<br>';
echo 
"Message Owner user group id=".$log_usergroupid[usergroupid].'<br>';
echo 
"Message Owner user id=".$postinfo[userid].'<br>';
exit; 
Then try to edit your post that you say you cant edit and tell me what the hack will display to you.

This code is for debugging purposes only, so after you debugged, revert back to the original hack code.
Reply With Quote
  #14  
Old 07-29-2002, 08:52 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one Logician

Satan
Reply With Quote
  #15  
Old 07-29-2002, 03:59 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi pal!

i have made an upgrade to your code. Permissions are no longer checked per usergroupid but on the normal getpermission base

also i have made some exact error-messages

and a cahnge of permission checks:
why let moderators edit other moderators posts?
normal members cannot edit other members post..

So Mods can edit Membersposts and their own, but no other mod's post

Supermods can edit Members/Moderators/own Posts, but no posts from other supermods... aso...

hope it's ok for ya pal
Reply With Quote
  #16  
Old 07-29-2002, 08:58 PM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

install this hack later
Good idea!
Reply With Quote
  #17  
Old 09-27-2002, 12:29 AM
Ein Ein is offline
 
Join Date: Sep 2002
Location: Michigan, America
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works pretty good, except for two...my co-admin can edit my posts with no problem, but that doesn't really bug me. And one of my Mods can do whatever, too, but don't let it bug you, he's also able to access the Admin Forum for no reason. Good show!

Ohh...yea, I'm using vB version 2.2.8.
Reply With Quote
  #18  
Old 09-27-2002, 10:22 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are you sure your mod isn't in the admin group?

normally that shouldn't happen if you have setup all permissions correctly.

your coadmin can edit your posts?
do you have userid 1?
Reply With Quote
  #19  
Old 09-27-2002, 06:21 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if I don't want the function that no one can edit userid=1's posts? I want it so only admins can edit admins' posts, not no one being able to edit userid=1's posts...so how can I remove that?
Reply With Quote
  #20  
Old 09-27-2002, 06:25 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just remove this block:
Code:
if($postinfo[userid]==1 or $postperms[cancontrolpanel]==1) {
    $editpriority="Root Admin";
    eval("standarderror(\"".gettemplate("error_editpriority")."\");");
    exit;	
  } else
next code should be: if(....
Reply With Quote
  #21  
Old 09-27-2002, 07:46 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician
I never thought about the aftermath of this default behavior, until one of my SuperModerators peaked into my message and "stole" a hidden BB code from me!
Any user should be able to do this by just quoting your message if I'm correct?

This is still a good hack none the less
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 06:08 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.10393 seconds
  • Memory Usage 2,306KB
  • Queries Executed 27 (?)
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
  • (1)bbcode_code
  • (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
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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