![]() |
Quote:
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. |
Sounds like a plan Palmer, just not sure if I have quite the technical prowess to do that. Would doing what you suggested, allow PPN's hack to work in its current state?
Thanks again for everyone's help! |
It requires adding a few things in a lot fo different files...
I ended up having to edit 8 different files in the end to make the sig editor with forced suspend work... in addition to a database modification. |
ok i've checked my code and it all looks fine
$perms=getpermissions(0, $userid); that gets the permission for forumid 0 for the userid which is specified, it then does a check to see the permissions of that user if($perms[ismoderator] || $perms[cancontrolpanel] || $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$userid")) { then checks to see which one they are, if i've taken the getpermissions function wrong then could someone please tell me |
Quote:
|
the suspend sig thing is simply another feature it isn't a bug..
i'm trying to deal with the error people are getting when they try and edit the signature of a user. |
I'm going to try again from home (instead of from behind the firewall at work) to make sure it wasn't on my end.
|
Thanks alot! :) Being a newbie to vbulletin, I appreciate you making this very easy to install. I installed it and have yet to encounter any problems! :D
|
Very nice ... definately a good admin tool.
|
Any progress on allowing Admins to edit the signature of other moderators or admin??
It would be especially useful to have the main admin (userid=1) able to edit the sigs of other admin/mods. |
All times are GMT. The time now is 08:04 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:
|