Quote:
Originally posted by Sunmoon
This hack looks perfect for what I need.
Everything seems to work, except that no matter what user I try it on (and with me logged in as Administrator,) I get the following when I click Edit signature in teh popup box.
"Farghan Shadehunter is an admin and you are unable to edit their signature. "
Help?
|
I have the same problem...
For some reason, the code is checking who *I* am... because I get told that I'm editing an admin (no matter who I edit) and one of our super mods gets told the same person is a mod.
BTW... there is a mind-numbingly easy way to do the forced suspend sig... I implemented it myself as I hacked this in (mind you, I didn't touch the code that checks for editsig_error, so that's not the reason why)
Add a field to the user table called "suspendsig"
Change the query in the editor that updates the sig to change suspendsig to 1 if suspend was checked,
THEN, in the buildpostbit part of functions.php... after all the code that sets sigs...
Add an eval that sets $post[signature] to equal editsig_suspended
They're old sig is intact, and in fact they can edit it.
It just doesn't get displayed!
Thus you don't clutter up the DB with a second sig field. Just one extra INT.
Of course, you have to add the settings in the CP and that too, as well as whatever else... but it's your hack... I just let you know how I would do it.