Version: 1.2.1, by Xenon
Developer Last Online: Oct 2023
Version: 3.0.6
Rating:
Released: 02-09-2004
Last Update: 06-01-2005
Installs: 119
No support by the author.
Ok, another one of my vb2 Hacks has been ported over and Optimized
This hack allows mods and Admins to restrict the edit permissions on a levelbased system.
Admins can disallow everyone to edit that post, while mods just can restrict editing by the author. Supermods can restrict editing by normal moderators as well.
Admins also have additional features:
- Editing the Timestamp of that Post
- Editing the Author
- Editing the IP
Nothing more to explain i think, look at the screenies if you need more infos.
Please don't forget to click install
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I am using your Editing Hierarchy Hack (quite happily, I might add) , and as such - I have no need or desire to install the Edit Permissions portion of this particular hack.
However, I do need the other features - specifically, the ability to edit the Author, Timestamp, IP, etc...
What portions would I need to keep/remove from your Instructions in order to do this?
Thanks!
Hmm... well, since this will only be used for Admins, I think I can trim out quite a bit more in order to keep things efficient.
For example, I think I can remove the entire Permission Checking routines (in addition to the Database Modification), by simply enclosing the Template additions like so:
Code:
<if condition="is_member_of($bbuserinfo,6)">
<!-- code goes here -->
</if>
Yes?
If so, than I should be able to remove a good section of this hack.
I have made an absolutely amateurish attempt at doing so. If you happen to have the time, and are in the mood to do so - I would be grateful if you could look over my revised version, and tell me just how badly I screwed up. <grin>
erm, you shouldn't hardcode the usergroupids, that's why i used the editlevel things.
as for the rest, there is no need to struck out much, the better efficiency is not remarkable, especially not for the prize to work on that more time than really needed to achieve the goal
erm, you shouldn't hardcode the usergroupids, that's why i used the editlevel things.
as for the rest, there is no need to struck out much, the better efficiency is not remarkable, especially not for the prize to work on that more time than really needed to achieve the goal
Well, I have several Admin-only hacks that are access controlled in the same way, so adding this one really is not a problem.
So, keeping that in mind - did I actually alter the original code correctly? Or did you notice something that I missed?
(p.s. thanks for taking any time at all to look at it! )
well it seems you trimmed way too much, as there is an ending } but not an opening one....
as said, just do the changes i suggested and you will be fine.
Well, I guess I'm just uncomfortable adding what, for me, is an unnecessary subsystem. I took out the extra "}" (oops!), but I still ended up with problems. (If I went in to edit a message, but didn't change anything and didn't hit Submit, all the Advanced Info ended up getting blanked out anyway. No User, no IP, marked as being posted in 1965, etc...).
So, clearly, I must have missed something. I guess I'll just have to spend some more time on it when I get the chance.
Great hack, though! I can't wait until I get this ready for use. (Yeah, I know - I'm making this hard on myself - I can't help it. :nervous: )
well i wish you good luck then
Your way will be very hard, but then on the other hand you will know each line of the code afterwards, good for upgrades
well i wish you good luck then
Your way will be very hard, but then on the other hand you will know each line of the code afterwards, good for upgrades
Very true.
However, if, 20 or 30 years from now, you should happen to choose to ruin my "fun" by telling me what I missed - I just want you to know that you shouldn't feel too bad about it - I won't hold it against you.