vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - Quick User Management 1.2.2 (https://vborg.vbsupport.ru/showthread.php?t=175797)

Koroku 04-10-2008 10:00 PM

Quick User Management 1.2.2
 
Regarding Updates
I don't plan on getting vB4 unless someone buys it for me. :D
3.8.x version can be found here.

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 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 or maybe perhaps send me a dollar or two? PayPal's jkaizer@gmail.com

Koroku 04-11-2008 04:30 AM

Additional screenshot showing the header.

DJ XtAzY 04-11-2008 05:17 AM

Very useful. I hate going thru their profile just to edit users.

KURTZ 04-11-2008 10:04 AM

<font color="SeaGreen">absolutely installed!!!!!!!</font>

Magnumutz 04-11-2008 11:40 AM

Sweet, there was a similar hack at the beginning of 3.6 but the author didn't supported it.

Installed :D

dotJoel 04-11-2008 01:22 PM

Fantastic!

Skavenger 04-11-2008 05:10 PM

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:

Code:

<tr><td class="thead">Manage $post[username]</td></tr>
4. You could add a "View Infractions" link too

Code:

<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 04-11-2008 07:49 PM

Thanks Bro...Work fine to vB 3.6.8 PL2

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

;)

Zaiaku 04-12-2008 04:51 AM

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 04-12-2008 04:59 AM

Quote:

Originally Posted by Skavenger (Post 1488405)
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:

Code:

<tr><td class="thead">Manage $post[username]</td></tr>
4. You could add a "View Infractions" link too

Code:

<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 04-13-2008 01:39 AM

Quote:

Originally Posted by Skavenger (Post 1488405)
1. Works fine on 3.6.9

Thanks :)
Quote:

Originally Posted by Skavenger (Post 1488405)
2. If you have renamed admincp directory, this will not work unless you change the path in the product

Hehe >_> Totally didn't think about that. Sorry.
Quote:

Originally Posted by Skavenger (Post 1488405)
3. Something like this would be nice to separate from other options:

Code:

<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~*
Quote:

Originally Posted by Skavenger (Post 1488405)
4. You could add a "View Infractions" link too

Code:

<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...
Quote:

Originally Posted by princeedward (Post 1488552)
Thanks Bro...Work fine to vB 3.6.8 PL2

Okay, thanks!
Quote:

Originally Posted by princeedward (Post 1488552)
it would be nice if we have enable/disable options to acp control...

I'm not sure what you mean here?
Quote:

Originally Posted by Zaiaku (Post 1488826)
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

It'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...
Quote:

Originally Posted by Boofo (Post 1488829)
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 04-13-2008 03:27 AM

Quote:

Originally Posted by Koroku (Post 1489453)
Edit: Hmm, the problem arrises that it would be silly to show that to everyone... *thinks~*

maybe with a conditional
Code:

<if condition="can_moderate()">
Quote:

Originally Posted by Koroku (Post 1489453)
Okay, I've got everything basically now except for the modcp/admincp variables... will release after I figure that out...

try with
Code:

$admincpdir
$modcpdir


Koroku 04-13-2008 04:15 AM

Quote:

Originally Posted by Skavenger (Post 1489492)
maybe with a conditional
Code:

<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.
Quote:

Originally Posted by Skavenger (Post 1489492)
try with
Code:

$admincpdir
$modcpdir


Yeah, got that - had to globalize them.

Koroku 04-13-2008 04:26 AM

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 04-13-2008 04:40 AM

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 04-13-2008 04:57 AM

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 04-13-2008 05:01 AM

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 05-03-2008 11:49 AM

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 05-03-2008 06:06 PM

in this one you don't need to edit any template, just import the product

Koroku 05-04-2008 10:10 PM

Yeah, and mine is done entirely through the admincp, while for his you have to manually edit the template mods.

Thanks for installing :)

Koroku 05-19-2008 04:05 AM

Quote:

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 05-19-2008 04:56 AM

wooooooooooooooowwwww
i was missing this one :)
Thanks allot

Koroku 05-19-2008 04:03 PM

Glad you enjoy it :)

Koroku 05-29-2008 05:46 AM

Would anyone be interested in me extending this to the profile? Adding a tab?

Poppet 05-29-2008 08:11 AM

Excellent Mod:D That would be fantastic if you can...

g0dfather1984 05-31-2008 06:49 AM

Very useful! Thank you!

sjb 05-31-2008 01:42 PM

tnx nice hack

TriMe 08-04-2008 05:33 PM

Installed, Thanks a lot!

troybtj 08-27-2008 07:41 PM

Quote:

Originally Posted by Koroku (Post 1534757)
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 08-28-2008 08:42 AM

cool.

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

GrendelKhan{TSU 08-28-2008 08:57 AM

does this add any queries?

erateinow 12-27-2008 01:23 PM

Thanks allot :)

relaxiha 02-10-2009 05:13 AM

working on 3.8?

thompson 02-10-2009 10:56 AM

can every mod chance userdatas ?

richTV 02-11-2009 01:58 AM

tnx, using it in 3.7.3

richTV 02-11-2009 04:14 AM

Quote:

Originally Posted by Koroku (Post 1534757)
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 02-11-2009 05:59 PM

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 03-21-2009 02:34 AM

works well, thank you.

HMBeaty 03-21-2009 02:40 AM

Whats the difference between yours and mine?

https://vborg.vbsupport.ru/showthread.php?t=140398

KURTZ 03-30-2009 09:55 AM

Quote:

Originally Posted by Redlinemotorsports (Post 1773093)
Whats the difference between yours and mine?

https://vborg.vbsupport.ru/showthread.php?t=140398

any upgrade for the 3.8.x? :p


All times are GMT. The time now is 05:49 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
  • Page Generation 0.01459 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete