Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quick User Management 1.2.2 Details »»
Quick User Management 1.2.2
Version: 1.2.2, by Koroku Koroku is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.7.x Rating:
Released: 04-10-2008 Last Update: 05-18-2008 Installs: 214
Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

Regarding Updates
I don't plan on getting vB4 unless someone buys it for me.
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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-13-2008, 01:39 AM
Koroku Koroku is offline
 
Join Date: Oct 2006
Location: Minnesota, USA
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Skavenger View Post
1. Works fine on 3.6.9
Thanks
Quote:
Originally Posted by Skavenger View Post
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 View Post
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 View Post
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 View Post
Thanks Bro...Work fine to vB 3.6.8 PL2
Okay, thanks!
Quote:
Originally Posted by princeedward View Post
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 View Post
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 View Post
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...
Reply With Quote
  #13  
Old 04-13-2008, 03:27 AM
Skavenger Skavenger is offline
 
Join Date: Sep 2005
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Koroku View Post
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 View Post
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
Reply With Quote
  #14  
Old 04-13-2008, 04:15 AM
Koroku Koroku is offline
 
Join Date: Oct 2006
Location: Minnesota, USA
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Skavenger View Post
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 View Post
try with
Code:
$admincpdir
$modcpdir
Yeah, got that - had to globalize them.
Reply With Quote
  #15  
Old 04-13-2008, 04:26 AM
Koroku Koroku is offline
 
Join Date: Oct 2006
Location: Minnesota, USA
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. :^)
Reply With Quote
  #16  
Old 04-13-2008, 04:40 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 04-13-2008, 04:57 AM
Koroku Koroku is offline
 
Join Date: Oct 2006
Location: Minnesota, USA
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 04-13-2008, 05:01 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 05-03-2008, 11:49 AM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #20  
Old 05-03-2008, 06:06 PM
Skavenger Skavenger is offline
 
Join Date: Sep 2005
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in this one you don't need to edit any template, just import the product
Reply With Quote
  #21  
Old 05-04-2008, 10:10 PM
Koroku Koroku is offline
 
Join Date: Oct 2006
Location: Minnesota, USA
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks for installing
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.20187 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (12)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete