PDA

View Full Version : Administrative and Maintenance Tools - Quick User Management 1.2.2


Koroku
11 Apr 2008, 05:25
Regarding Updates
I don't plan on getting vB4 unless someone buys it for me. :D
3.8.x version can be found here (http://www.vbulletin.org/forum/showthread.php?t=233610).

Quick User Management
Current Version: 1.2.2
Created by: Greg M & Pawit P
Versions: 3.6.x+ probably? Whenever the hook for the postbit dropmenu was added... (Verified to work on 3.6.8PL2 at least - post if you have it working on a lower version please!)

What It Does
It adds links to the postbit drop down menu with "Edit User" "View User's Infractions" "Ban/Moderate User" and "Delete User", and you can determine which user groups get to see it via options in the AdminCP.

Optionally, there is a "Manage User" header that will appear over them. Usergroups that see this can be determined in the AdminCP.

Pretty simple, eh?

See screenshots if you're still not sure. The various ones were taken with different usergroups, one that could see just the "Ban/Moderate User", one that could see that as well as the "Edit User", one that could see all three, and then a final one that couldn't see any of them. :) With 1.2, there is now a "View User's Infractions" which is also displayed in one of the screenshots.

Just to note, this follows usergroup permissions. So just because a usergroup could see the Edit User link... they would still need to have permissions to actually be able to do anything. All this does is add a link to the forum.


Version History
1.2.2 (May 18, 2008) - Fixed a bug where the links would be dead on PMs, and also set it so that it'll appear below the "View Blog" link. Changed the "onClick" to "onclick" and set all the globalling to one line. AKA cleaning up the code release. :)
1.2.1 - Internal mucking around
1.2 (April 13, 2008) - A bunch of stuff! Added a "View User's Infractions" option, added a Header option, and added the ability to decide whether or not you want the Ban/Moderate User to be a pop-up or not. And finally, the admincp/modcp are now determined by your config.php file.
1.1.x - Internal testing/debugging/feature adding
1.0 (April 11, 2008) - Okay, added links!
0.9 (April 11, 2008) - Doing 0.9 so that I can get thread info, 1.0 will come out right afterwards.


Support / Requests
Sure, post in this thread and we'll try to help you as best we can. You don't have to click the Install link, but that'd be pretty cool if you did.

If you can think of some random feature that this could use, feel free to suggest it and we might add it.


Special Thanks
To daPLAYBOY's mod (http://www.vbulletin.org/forum/showthread.php?t=133257) which was the inspiration for this. In fact, this is basically an extention of his - turned into a product with Edit/Delete links added... and AdminCP control.
Also to Boofo for giving me the rather obvious answer to getting the AdminCP/ModCP links to be dynamic. And for prompting me to make the Ban/Moderate User pop-up optional. :) And for giving me other random coding tips, since I don't code enough anymore. ;)


Like it?
Then please click the "Installed" links (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=175797) or maybe perhaps send me a dollar or two? PayPal's jkaizer@gmail.com

Koroku
11 Apr 2008, 05:30
Additional screenshot showing the header.

DJ XtAzY
11 Apr 2008, 06:17
Very useful. I hate going thru their profile just to edit users.

KURTZ
11 Apr 2008, 11:04
absolutely installed!!!!!!!

Magnumutz
11 Apr 2008, 12:40
Sweet, there was a similar hack at the beginning of 3.6 but the author didn't supported it.

Installed :D

dotJoel
11 Apr 2008, 14:22
Fantastic!

Skavenger
11 Apr 2008, 18:10
1. Works fine on 3.6.9
2. If you have renamed admincp directory, this will not work unless you change the path in the product
3. Something like this would be nice to separate from other options:

<tr><td class="thead">Manage $post[username]</td></tr>

4. You could add a "View Infractions" link too

<a href='$vboptions[bburl]/admincp/admininfraction.php?$session[sessionurl]do=dolist&amp;startstamp=1&amp;endstamp= 1171601735&amp;infractionlevelid=-1&amp=$post[userid]' target='_blank'>View User Infractions</a>

Nice mod (Y)

princeedward
11 Apr 2008, 20:49
Thanks Bro...Work fine to vB 3.6.8 PL2

it would be nice if we have enable/disable options to acp control...

;)

Zaiaku
12 Apr 2008, 05:51
I think I was needing this a few some time ago, forgot what I needed it for but will go ahead and keep an eye on this one. thx

Boofo
12 Apr 2008, 05:59
1. Works fine on 3.6.9
2. If you have renamed admincp directory, this will not work unless you change the path in the product
3. Something like this would be nice to separate from other options:

<tr><td class="thead">Manage $post[username]</td></tr>

4. You could add a "View Infractions" link too

<a href='$vboptions[bburl]/admincp/admininfraction.php?$session[sessionurl]do=dolist&amp;startstamp=1&amp;endstamp= 1171601735&amp;infractionlevelid=-1&amp=$post[userid]' target='_blank'>View User Infractions</a>

Nice mod (Y)

OK, I got these two things added and a setting made for the view infractions, if anyone is interested. I'm now working on a way to get the admincp and modcp directory names from the config file.

Koroku
13 Apr 2008, 02:39
1. Works fine on 3.6.9Thanks :)
2. If you have renamed admincp directory, this will not work unless you change the path in the productHehe >_> Totally didn't think about that. Sorry.
3. Something like this would be nice to separate from other options:

<tr><td class="thead">Manage $post[username]</td></tr>Sure, that sounds fine.

Edit: Hmm, the problem arrises that it would be silly to show that to everyone... *thinks~*4. You could add a "View Infractions" link too

<a href='$vboptions[bburl]/admincp/admininfraction.php?$session[sessionurl]do=dolist&amp;startstamp=1&amp;endstamp= 1171601735&amp;infractionlevelid=-1&amp=$post[userid]' target='_blank'>View User Infractions</a>I guess that would be fine. Didn't think of it as we don't use infractions at my forum for the most part...Thanks Bro...Work fine to vB 3.6.8 PL2Okay, thanks!it would be nice if we have enable/disable options to acp control...I'm not sure what you mean here?I think I was needing this a few some time ago, forgot what I needed it for but will go ahead and keep an eye on this one. thxIt's useful when you have a problem with spammers - we did for awhile and were constantly putting "suspicious" usernames into a moderated usergroup - it was a pain in the ass to have to go to the profile each time...OK, I got these two things added and a setting made for the view infractions, if anyone is interested. I'm now working on a way to get the admincp and modcp directory names from the config file.:)


---

Okay, I've got everything basically now except for the modcp/admincp variables... will release after I figure that out...

Skavenger
13 Apr 2008, 04:27
Edit: Hmm, the problem arrises that it would be silly to show that to everyone... *thinks~*
maybe with a conditional <if condition="can_moderate()">

Okay, I've got everything basically now except for the modcp/admincp variables... will release after I figure that out...

try with $admincpdir
$modcpdir

Koroku
13 Apr 2008, 05:15
maybe with a conditional <if condition="can_moderate()">Then it would appear in forums that moderators... well, mod in. And they likely wouldn't be seeing any of these options.try with $admincpdir
$modcpdirYeah, got that - had to globalize them.

Koroku
13 Apr 2008, 05:26
VERSION 1.2
Lots this time! Or at least "lots" relatively...

- AdminCP/ModCP links are now determined by your config.php, you don't have to manually change them.

- The Ban/Moderate User pop-up is now optional. You can change it to just have a normal link.

- There is now a "View User's Infractions" link, which shows all the infractions between December 31, 1969 and January 18, 2038. End date is, of course, random. ^_^

- You can now set a header for the section if you want one. Determined by usergroups like rest of the options.

And finally, I cleaned up the code a bit so it makes a bit more sense. :)


Feel free to post responses/whatnot. I tried to make sure everything worked, but I may have missed something - let me know and I can always fix.

As before, always welcome to new suggestions. :^)

Boofo
13 Apr 2008, 05:40
2 things on the new version:

onClick need to be onclick to pass XHTML validation.

And the globals should look like this:

global $vbulletin, $admincpdir, $modcpdir;

Other than that, it looks good. ;)

Koroku
13 Apr 2008, 05:57
Oh, I wasn't aware that you could globalize variables more than one at a time... :)

I'll fix those and anything else that pops up in a few days time :)

Boofo
13 Apr 2008, 06:01
Yep, you can. ;)

The onClick is all small letters now, the same as onFocus and onSubmit. They all have to be small letters to pass validation now (onclick, onfocus, onsubmit, etc.). Just a heads up for any future coding you might do. ;)

Also, you don't need to add the enddate= in the infractions link. It will default to today's date as the enddate if there is no no enddate in the link.

I'll go through the code and if I find anything I will PM you.

Black Tiger
03 May 2008, 12:49
Looks very nice, I tagged it!
But what's the difference between this mod and the User Management in Postbit and Profile v2 mod from Redline?

Skavenger
03 May 2008, 19:06
in this one you don't need to edit any template, just import the product

Koroku
04 May 2008, 23:10
Yeah, and mine is done entirely through the admincp, while for his you have to manually edit the template mods.

Thanks for installing :)

Koroku
19 May 2008, 05:05
1.2.2 (May 18, 2008) - Fixed a bug where the links would be dead on PMs, and also set it so that it'll appear below the "View Blog" link. Changed the "onClick" to "onclick" and set all the globalling to one line. AKA cleaning up the code release. :)Finally got around to it. Surprisingly, it was thanks to vB that I was able to fix the first one - had to move the hack to a different hook, but it worked just fine. And doing that also fixed the second little bug with no problem. Nifty.

tafreeh
19 May 2008, 05:56
wooooooooooooooowwwww
i was missing this one :)
Thanks allot

Koroku
19 May 2008, 17:03
Glad you enjoy it :)

Koroku
29 May 2008, 06:46
Would anyone be interested in me extending this to the profile? Adding a tab?

Poppet
29 May 2008, 09:11
Excellent Mod:D That would be fantastic if you can...

g0dfather1984
31 May 2008, 07:49
Very useful! Thank you!

sjb
31 May 2008, 14:42
tnx nice hack

TriMe
04 Aug 2008, 18:33
Installed, Thanks a lot!

troybtj
27 Aug 2008, 20:41
Would anyone be interested in me extending this to the profile? Adding a tab?

Yes! A quick button in the profile page and/or on the member roster page.

thompson
28 Aug 2008, 09:42
cool.

if it could be done that mods could work with the userprofil, then it would be perfekt.

GrendelKhan{TSU
28 Aug 2008, 09:57
does this add any queries?

erateinow
27 Dec 2008, 14:23
Thanks allot :)

relaxiha
10 Feb 2009, 06:13
working on 3.8?

thompson
10 Feb 2009, 11:56
can every mod chance userdatas ?

richTV
11 Feb 2009, 02:58
tnx, using it in 3.7.3

richTV
11 Feb 2009, 05:14
Would anyone be interested in me extending this to the profile? Adding a tab?

Hi, would love to see this too. :)

this way if a Staff member clicks on an actual link to the member.php they would also see Manage User as a tab too.

Firestar.chkn
11 Feb 2009, 18:59
It's working (almost) fine on 3.8.1. See screenshot.

I'm on a user that has permissions to do everything cept delete the user (too scared to have that option too close by, so nobody can do that from here, only in admincp. However, all the other things should be visible, but aren't. Also, the second option is supposed to show "Ban $user" but it only shows the user name.

GSeybold
21 Mar 2009, 03:34
works well, thank you.

HMBeaty
21 Mar 2009, 03:40
Whats the difference between yours and mine?

http://www.vbulletin.org/forum/showthread.php?t=140398

KURTZ
30 Mar 2009, 10:55
Whats the difference between yours and mine?

http://www.vbulletin.org/forum/showthread.php?t=140398

any upgrade for the 3.8.x? :p

mgurain
24 Dec 2009, 10:47
Hi Koroku,

Any upgrade to vb4.0 ? We are using this useful mod.

Thanks,,

mgurain
06 Jan 2010, 15:27
does this add any queries?

Does it ? If not, then it should be a standard feature.
Thanks,,

Koroku
20 Jan 2010, 09:17
any upgrade for the 3.8.x? :pWorks fine on 3.8.xHi Koroku,

Any upgrade to vb4.0 ? We are using this useful mod.

Thanks,,Probably not, I don't think I'll be upgrading to 4.0 myself.

And no, it shouldn't add any queries.

KURTZ
16 Mar 2010, 12:03
@ Koroku any chance to get this onto vB 4.x? :)