View Full Version : Message Editing Hierarchy
Logician
05-23-2002, 10:00 PM
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
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?
$admin_usergroup_id AND $bbuserinfo[userid]!=1 AND $postinfo[userid]==1))
Logician
05-24-2002, 09:04 AM
Originally posted by Smoothie
Do I have to change both instances where 1 appears?
$admin_usergroup_id AND $bbuserinfo[userid]!=1 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..
what if i want two usersname sto be void to editing
Logician
05-25-2002, 03:31 PM
Originally posted by NerdNations
what if i want two usersname sto be void to editing
In hack find the line:
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]!=1 AND $postinfo[userid]==1))
Replace it as:
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]!=1 AND $postinfo[userid]==1) OR ($bbuserinfo[usergroupid]==$admin_usergroup_id AND $bbuserinfo[userid]!=2 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.
Marshalus
07-28-2002, 11:54 PM
After I applied this hack, I can no longer edit my own posts.
Logician
07-29-2002, 06:47 AM
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:
show_nopermission(); exit;
Replace it as:
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.
Chris M
07-29-2002, 08:52 AM
Nice one Logician:)
Satan
Xenon
07-29-2002, 03:59 PM
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 ;)
inetd
07-29-2002, 08:58 PM
install this hack later
Good idea!
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.
Xenon
09-27-2002, 10:22 AM
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?
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?
Xenon
09-27-2002, 06:25 PM
just remove this block:
if($postinfo[userid]==1 or $postperms[cancontrolpanel]==1) {
$editpriority="Root Admin";
eval("standarderror(\"".gettemplate("error_editpriority")."\");");
exit;
} else
next code should be: if(....
NTLDR
09-27-2002, 07:46 PM
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 :)
Xenon
09-28-2002, 09:36 AM
NTLDR: look at this: ;)
https://vborg.vbsupport.ru/showthread.php?postid=254015#post254015
logician, you always do a great job with your hacks.
this is my first hack i install from your list. congrats on your fine work.
floren.
Logician
09-28-2002, 10:52 AM
@Ein: Just like Xenon stated: Are you sure this Mod isnt in Site Admin group? If not it shouldnt be editing Site Admin's messages..
@NTLDR&Xenon: Right. In my board I removed the default "quote" link, so they cant do it via quoting and my Mod stole it by editing it. :) But when writing the hack instructions I should have remembered that other boards have quote hehe.. Maybe I should edit my instructions..
@Teck: Thank you. I appreciate your kind words..
And by the way: Do you remember my comments in Site Feedback area about "forgotten hacks" and full releases section's becoming an iceberg? This thread is a very good example. Please check the hack release date. I released this hack in May and saved it to hack db too. It just got 20 installers and 14 replies in 5 months. And its forgotten since then.. Then Ein bumped the thread by asking a question and in 2 days it receive 4 more installers (one is you who is always around) and 7 more replies. It is a very good example of "forgotten hacks" and people's tend to fish hacks in full releases bumping threads, dont you think? :)
Da`Nacho
09-28-2002, 06:16 PM
Came in very handy, thanks so much for this quick and easy hack. This is something vBulletin should have built in already... :p
Boofo
02-23-2003, 12:37 AM
Sinan, I made a small addition/change to your version of this hack. I hope you don't mind. ;)
I replaced:
show_nopermission();
With (thanks to Xenon for this):
eval("standarderror(\"".gettemplate("error_hierarchy")."\");");
and added this (again thanks to Xenon):
create new template "error_hierarchy":
--------------- cut----------------------------
<center>Message Edit Hierarchy Rule! You are not high enough on the food chain to edit this post.<br />You may only edit posts of those who are of equal or lesser value than yourself.</center>
--------------- cut----------------------------
This is the template message I use but you can change it to whatever you want. :)
Bison
04-03-2003, 11:13 PM
Nice ... :D
trinitym
01-11-2004, 12:50 AM
I feel like a goober bumping an old thread, but I'm wondering if something like this exists for vb3? I'm pretty new to vb in general so I might just be overlooking the obvious - so, sorry in advance. Thanks!
Xenon
01-11-2004, 01:38 AM
nope, Logician hasn't released a vb3 version yet.
But i think he will do, and if not i'll ask him, if i can write it :)
muse.mu
01-20-2004, 01:34 PM
Will this ack work with vB 2.3.4? or is it only for the 2.2.x series.
Thank you.
Logician
01-20-2004, 02:21 PM
yes it should work in all 2.x.x versions.
muse.mu
01-20-2004, 04:45 PM
Ok.
thanks a lot, ill try it and let you know
muse.mu
01-20-2004, 08:24 PM
tested on vBulletin 2.3.4 and works like a charm.
you can rename this
[2.x.x] now :p
acegames
12-06-2006, 06:59 PM
I know its an old thread but im looking for this mod for 3.64 , can anyone help please ?
akanevsky
12-06-2006, 08:37 PM
The latest is for 3.5...
https://vborg.vbsupport.ru/showthread.php?t=82599
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.