![]() |
Advanced Editing Options For Mods & Admins
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 :) |
Very nice :) i have the perfect Site for this one (new forum with uber spammers of younge ages ;))
|
Xenon you so rock!
|
Have always kept an eye out for one of these, should come in handy for allowing users to edit link threads e.t.c. Thanks!
|
Nice and easy.
|
Looks great! I'll definitely install once gold gomes out.
|
thanks, but
I'm missing the phrase system :( |
i've planned to add phrases within the next release :)
|
i've been trying to get this to work on RC4 for the last 2 hours and i can't get it to work....
|
be sure to follow the instructions correctly.
the Mod was written for RC4, so it surely does work with it |
ok i might be missing something really small.... i'll give it another go...
Edit - *slaps Self*..... it works i put the main part of the code in editpost.php after not before.... Cool works *hits Install* |
:)
glad you like it :) |
trying to install this and every time i try to run the query i get the following
Code:
Error |
do you have a tableprefix set up?
if yes, you of course have to add that prefix to that query as well. if yopu don't have a table prefix, you have a serious problem, as your post table doesn't exist. all in all, not a problem with the modification itself |
Xenon: How could I integrate this with the other Editing Hierarchy Hack...
What I mean, is that the hierarchy's from your other take presedence over these ones, unless the post is edited... So basically, with the other hack, a Super Mod cannot edit an Admins post with the default Hierarchy - You could alter the hierarchy with this hack, which would mean you could set it so that Super Mods upwards can edit it ;) Could this be done? :) Satan |
Well as you know, everything can be done.
but i don't have any time to do something like that now. I'm sure you'll find out yourself how to get that, it isn't really hard from what i remeber :) |
Unfortunately I don't have the time to investigate :(
Maybe I will find time sometime in the near future :) Satan |
Well, if either one of you 2 extremely busy people find the time to do it, I would appreciate it. I just wish I was a busy as you 2 claim to be. ;)
|
If I find the time, I'll let you know Bob :)
Satan |
im getting this error whenever i try and edit posts now.
Parse error: parse error in /home/alienfi/public_html/forums/editpost.php on line 134 please help |
What is the code on that line?
|
$bbuserinfo['editlevel'] = $editlevel['author'];
thats it. |
This is what it should look like right before and after that line.
PHP Code:
|
PHP Code:
thats what mine looks like. |
Change:
PHP Code:
PHP Code:
Satan |
Thanks, Chris. ;)
|
done this and the error has changed to
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/alienfi/public_html/forums/editpost.php(161) : eval()'d code on line 48 |
Ok, then take the code that is in there right now, and re-add it from the hack install file. That should fix any mistake you might have made the first time. ;)
|
Quote:
|
Yes. Just copy over the code already there. ;)
|
Quote:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/alienfi/public_html/forums/editpost.php(158) : eval()'d code on line 48 line 48 is PHP Code:
|
regarding your posts before, it seems either your downloaded install file was corrupted during the download, or your upload corrupts the files.
redownload the install file, then use an original editpost.php and apply the hack then. there is nothing wrong with the hack itself. @Bob: hmm, no problem, i allow you to do my tests so you can become that busy as well ;) |
I'll whip those tests out for you. Bring 'em on! ;)
|
@Xenon
I think this hack has a major bug: The advanced editing options do not show up on preview. So if you first click preview and then submit the values will be empty ... |
Damn preview....
yeah you are right. I've uploaded a bugfixed version. it's jsut a copy paste, as a part of the script has to be on another part in editpost.php |
OK. It does show up on preview now, but it still doesn't work correctly.
Example: I click edit, change the username, click preview. Now it still displays the original username (it should display the new one). I decide to stop editing, but when I visit the thread again the username has been changed (it should only be changend when submitting). Furthermore, your template code isn't fully XHTML-compliant: it should be selected="selected" instead of just selected. |
thx, for finding out :)
i'll do some changes at that WE, but i'm currently very very busy... |
ok, i've uploaded a new version again.
it should be working now without problems. |
How do i update it from v. 1.00?
regards |
just restart with a unmodified editpost.php and apply it again.
as the preview functions could be decided in do update, i have had to change the script too much to provide easy upgrade txts. the template should be overwritten as well |
All times are GMT. The time now is 12:11 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|