vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Message Editing Hierarchy (https://vborg.vbsupport.ru/showthread.php?t=38988)

Logician 05-23-2002 10:00 PM

Message Editing Hierarchy
 
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

Smoothie 05-24-2002 08:25 AM

Great idea, this is a must have!! Will install after I get some sleep.
BTW, on the subject of userid's, can a userid be changed?

Logician 05-24-2002 08:35 AM

Quote:

Originally posted by Smoothie
Great idea, this is a must have!! Will install after I get some sleep.
BTW, on the subject of userid's, can a userid be changed?

You mean in this hack, right? Sure very easily.. In hacks code, find:
($bbuserinfo[usergroupid]==$admin_usergroup_id AND $bbuserinfo[userid]!=1

And replace 1 with anyuserid you want.. But userid with 1 may not like this change :D

Smoothie 05-24-2002 08:51 AM

Do I have to change both instances where 1 appears?
PHP Code:

$admin_usergroup_id AND $bbuserinfo[userid]!=AND $postinfo[userid]==1)) 


Logician 05-24-2002 09:04 AM

Quote:

Originally posted by Smoothie
Do I have to change both instances where 1 appears?
PHP Code:

$admin_usergroup_id AND $bbuserinfo[userid]!=AND $postinfo[userid]==1)) 


Yep all 1s (there is two of them actually) will be replaced with your new userid

Xenon 05-24-2002 11:03 AM

very good idea !!

but, to steal hidden vb-code someone could just quote a post to see it ;)

Webmasta XT 05-24-2002 12:49 PM

Nice work man, I was looking for this for a long time, cuz if I am the one who made the forums, and I make someone else a admin, and they come out to be untrust worthy and delete me from MY OWN BOARDS?? and I am userid1, lol than it sucks..

RDX1 05-24-2002 04:05 PM

what if i want two usersname sto be void to editing

Logician 05-25-2002 03:31 PM

Quote:

Originally posted by NerdNations
what if i want two usersname sto be void to editing
In hack find the line:

PHP Code:

    if (($bbuserinfo[usergroupid]==$moderator_usergroup_id  AND ($postinfo[usergroupid]==$smoderator_usergroup_id OR $postinfo[usergroupid]==$admin_usergroup_id)) OR ($bbuserinfo[usergroupid]==$smoderator_usergroup_id AND $postinfo[usergroupid]==$admin_usergroup_id) OR ($bbuserinfo[usergroupid]==$admin_usergroup_id AND $bbuserinfo[userid]!=AND $postinfo[userid]==1)) 

Replace it as:

PHP Code:

    if (($bbuserinfo[usergroupid]==$moderator_usergroup_id  AND ($postinfo[usergroupid]==$smoderator_usergroup_id OR $postinfo[usergroupid]==$admin_usergroup_id)) OR ($bbuserinfo[usergroupid]==$smoderator_usergroup_id AND $postinfo[usergroupid]==$admin_usergroup_id) OR ($bbuserinfo[usergroupid]==$admin_usergroup_id AND $bbuserinfo[userid]!=AND $postinfo[userid]==1) OR ($bbuserinfo[usergroupid]==$admin_usergroup_id AND $bbuserinfo[userid]!=AND $postinfo[userid]==2)) 

Replace 1 and 2 for the 2 Site Admin you want to grant untouchablitity.

BTW Why to have so many Site Admins in the first place? I really suggest granting your power users Super Moderator status only. Does your site really need so many Site Admins?

Regards,
Logician

Smoothie 05-25-2002 05:00 PM

/me says "click install" this hack. Good one.


All times are GMT. The time now is 12:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01162 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete