![]() |
Mods can edit Users
With this Hack your Mods can edit really everything of a user account, nearly as much as an Admin can! (Changing usergroups....)
But it is very customizable, too. If you don't want em to change usergroups, then they can't. Or you can define which usergroups they can move the users into.. Also if you add if-clauses in the front section to the hack, you can customize it to which of your mod can modify which fields.. this block in front of the hack code defines nearly everything you need to customize the hack: $canedit[profilefields]=1; $canedit[timefields]=0; $canedit[options]=1; $canedit[addresses]=1; // HP, Email, ICQ, AIM ... $canedit[signature]=1; $canedit[title]=0; $canedit[name]=1; $canedit[avatars]=1; // 0 Cant edit, 1 Can edit, 2 Can upload custom avatars $canedit[changegroups]=0; // Mods can move users from one group to another (just groups included in $canedit[usergroupids]) $canedit[usergroupids]="1 2 3 4 10 11"; // Which usergroups can be edited Screenshots in following Posts |
nearly an admin panel:
|
old style:
|
usergroup changer (to which a mod is allowed) :)
|
Very nice, I might install it:) My forums are a bit new and I havent got very many mods =/
|
I like it :)
as usual...i have one question *blush* Is there a way to set this so that different mod usergroups have a different set of usergroups they can move users to? We have in essence, two totally different userlevel systems on my site...one for ladies, one for gentlemen. Thus, lady mods handle female stuff, male mods handle male stuff. I would prefer not to have lady mods accessing male stuff and vice versa. Or......now that i think about this.... could i set up a separate mod panel for women and men, and then have the two configured differently? |
Good job :).
|
Very nice hack Xenon, particulary usefull for large boards.
|
a ladyfire:
very easy, instead of this line PHP Code:
PHP Code:
|
Looks nice. I'll probably disable being able to change the username but I might install this later ^^
|
man it looks like you are reading my mind :) ... i was looking for these things for my mods
but one thing I tried changing the title for one of my users and it gave Record updated but when I re-checked the user account the title was not changed " and yes I choose "yes" to give a custom title " and also I have this option $canedit[title]=1; set at 1 anyway thank you very very very much for this useful hack :) |
great job!
i was looking for getting me one of these. saved me time :) thanks! |
Nope Xenon, the above didn't work for me :(
This is the exact code I put in...it is giving a parse error. PHP Code:
|
Quote:
PHP Code:
g-force2k2 |
@lady: see what g-force said ^^
@dxb: really? hmm, it worked in my last test, so i think it should work. i've checked the file and all seems fine, but i'll test it again later, k? |
Ok
dxb, you were right, there was a little bug in my file i posted here. i have uploaded a new one, now it should work perfect! changes: doupdate section |
waaaw now it works like a charm
great work thanks alot Xenon :) |
Works fine.
here is a little change, so that you can easy choose, wich MOD can edit an wich not Do the following Query: ALTER TABLE `moderator` ADD `canedituser` SMALLINT( 6 ) DEFAULT '0' NOT NULL ; In /admin/forum.php: FIND PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
FIND PHP Code:
PHP Code:
FIND PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
thanks, i have planned such a thing since a long time, was just to lazy to do ;)
then after i heard about the new permission system in vb3 i decided to wait ^^ |
u added it, where can the mod access that cp?
|
I have attached a screen shot of the cp they see, the save button is still not there.
|
I have also attached the mod/user after i installed the hack
|
in the quick userfinder, if you enter an username then you'll come up with 3 options: [ban] [view] [edit]...
i think you should try the edit link ;) |
this hack doesnt work for me ?
i did everything rite ? iam using 2.2.7 |
the hack works perfect with vb227 and also 228
perhaps you have forgotten to manually set the right permissions in the mod/user.php |
Xenon, I've been running your original version of this hack for most of the year now, and it is working fine with 2.2.8. :) Thanks for the great hack.
|
:)
thanks for the nice words :) but you should upgrade to the newest version, it's much more customizable than the original one |
This hack doesn't allow mods to change admin members does it?
|
no you can specify which usergroups are affacted by this hack.
if you want you can allow to change admin members, but i think you don't want do you? ^^ |
will this work with 2.2.1?
looks great by the way! |
normally it should, because it's just an addition to a file no important changes on original lines...
so i'd say try it, i think it'll work |
First of all thanks for your work Xenon...it's helpful.
One of my moderators reported me this problem: Everything works fine, except that when he edits himself (his own profile), instead of giving an error because I didn't include his groupid in the permissions, vB gives him a db error, I can confirm because an email is sent to me with the error as soon as he does this operation. Here's the mail: Quote:
Could you check on this one please? Thanks again... |
ahh, i see.
well it's always hard to test such things, because there are so many combinations of possibilities..... i think it should work now, download the newest version, i've added a small if-clause within the update part, which should fix this bug.. |
Sorry for the delay Xenon...just wanted to let you know that the fix worked...and thank you very much for your work...really appreciated...:)
|
Good work Xenon! ;)
|
Thanks :)
|
Yes I love this hack since its a pain to have only admin make minor changes the users request sometimes. Well on my forum it seems the users do not want to PM me but they want to ask a mod to do this for them. This does help out alot and is far less work to install than the lesser admin panel. Not saying it not any good but this is just so much easier to install.
|
Hi m8.
Great hack.... but got a error, have any clues ?? Fatal error: Cannot redeclare usergroupchooser() (previously declared in /home/www/forum/mod/user.php:199) in /home/www/forum/mod/user.php on line 456 ??? Cheers, ICe Man_00 |
hmm, maybe you've made something wrong while installing the hack.
reinstall it on a fresh user.php |
Hmm.. i did a fresh copy, then the edit user link din`t work, but the view user work... strange.. but no buttons at the bottom...
hehe.. confused.. |
All times are GMT. The time now is 04:50 PM. |
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:
|