Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quick (inline) User Editor Details »»
Quick (inline) User Editor
Version: 2.0, by Alan @ CIT Alan @ CIT is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.5.4 Rating:
Released: 12-11-2005 Last Update: 05-15-2006 Installs: 57
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Quick (Inline) User Editor
Version 2.0


What does this do?
This mod adds an inline user editor to your forums. This means that you can edit your users directly from their posts, without ever having to enter the Admin CP!

Ok... I'm interested, tell me more...
It is fully controlled via the Usergroup system. This means that you can allow Admininistrators to edit all parts of a users account, allow Super Moderators to do everything but change usernames, and delete accounts, and allow Moderators to only change profile fields and the users options. The choice is entirely yours!

The full list of Usergroup Permissions that can be used are:
  • Can Use Quick User Editor
    (this stops the usergroup using any part of the Quick User Editor)
  • Can Edit Usernames
  • Can Change Passowrds
  • Can Edit Email Addresses
  • Can Edit Profile Information
    (location / birthday / usertitle / etc)
  • Can Edit Custom Profile Fields
  • Can Edit Instant Messaging Details (includes support for Skype)
  • Can Edit Usergroups (primary and secondary)
  • Can Edit User Options
  • Can Delete User Accounts
  • Can Delete Avatars
  • Can Delete Profile Pictures
These permissions allow you as the forum administrator to delegate some user management tasks to your moderators without having to give them access to the Admin CP. See the screenshots below for examples of editing with limited permissions.

Sounds great! How do I install?
  1. Upload the contents of the upload folder to your forum
  2. Import the Product XML as normal
  3. Edit the postbit / postbit_legacy template:
Find:
Code:
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
Directly below this, add:
Code:
<!-- Quick User Editor -->
<if condition="$can_use_que">
<tr><td class="vbmenu_option"><a href="que.php?$session[sessionurl]do=edit&userid=$post[userid]" target="_blank"><phrase 1="$post[username]">$vbphrase[que_edit_x_account]</phrase></a></td></tr>
</if>
<!-- / Quick User Editor -->
And to upgrade?
Please read the "Upgrade" section of the install.txt file contained in the zip.


All done! Now what?
Before anyone can use the Quick User Editor you will need to set the Usergroup Permissions.

Security Note: This mod allows people to edit their usergroups if you give them permissions to - this means that your mods could upgrade themselves to an Administrator if you give them permission to change Usergroups.

Please ONLY give your staff permission to edit usergroups if you REALLY trust them. If in doubt, don't give them access to change usergroups

Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though See you all in early September!

Show Your Support

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

Comments
  #32  
Old 01-19-2006, 12:33 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Moosa
but it doesnt compatible with Unalterable Admins Can Edit Themselves any way?

It would be great to see this work with that hack.
Reply With Quote
  #33  
Old 01-27-2006, 10:26 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be intergrated with AJAX?
Reply With Quote
  #34  
Old 02-06-2006, 06:25 PM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod.

I just wish the security risk could be resolved so that mods would not be able to upgrade themselves to admins

Quote:
Security Note: ...your mods could upgrade themselves to an Administrator if you give them permission to change Usergroups.
Does this also mean that moderators could degrade admins by putting them to the moderators usergroup?
Reply With Quote
  #35  
Old 02-06-2006, 10:22 PM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stark427
Nice mod.

Does this also mean that moderators could degrade admins by putting them to the moderators usergroup?
in your config.php file set admin(s) ( usernumber/s ) to unalterable
then adding :::::this mod::::: can work ( just a wild guess )
Reply With Quote
  #36  
Old 02-15-2006, 11:54 AM
DkHelmet's Avatar
DkHelmet DkHelmet is offline
 
Join Date: Jan 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick bug:

When editing a user's profile, changing the "Custom User Title" field to "Yes, Admin Set" doesn't have any affect. I can go freely from "Yes, User Set" to "No" and vice-versa. I suspect this is due to the account only having mod and not admin privs?

Any workarounds/common sense that I am missing?
Reply With Quote
  #37  
Old 02-16-2006, 01:42 AM
andrefedalto andrefedalto is offline
 
Join Date: Dec 2005
Location: Brazil
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stark427
Nice mod.

I just wish the security risk could be resolved so that mods would not be able to upgrade themselves to admins

Does this also mean that moderators could degrade admins by putting them to the moderators usergroup?
here is a fix for security, because on my forums i allow admins, supermods and mods to edit users, so i had to add some security fixes, so the users cant get auto-promotted.

do the following:
open que.php and find (around line 121):
Code:
	// Merge the options with the users details
	$getoptions = convert_bits_to_array($user['options'], $vbulletin->bf_misc_useroptions);
	$user = array_merge($user, $getoptions);
now, BEFORE that, add:
Code:
	//Only administrators can edit administrators
	if ($vbulletin->userinfo['usergroupid'] != 6 && $user['usergroupid'] == "6" ) {
		eval(standard_error("Sorry, but you can't edit administrators!"));
	}

	//Super-moderators cant edit super-moderators
	if ($vbulletin->userinfo['usergroupid'] == "5" && $user['usergroupid'] == "5" ) {
		eval(standard_error("Sorry, but you can't edit super-moderators!"));
	}

	//Moderators cant edit super-moderators
	if ($vbulletin->userinfo['usergroupid'] == "7" && $user['usergroupid'] == "5" ) {
		eval(standard_error("Sorry, but you can't edit super-moderators!"));
	}
	
	//Moderators cant edit moderators
	if ($vbulletin->userinfo['usergroupid'] == "7" && $user['usergroupid'] == "7" ) {
		eval(standard_error("Sorry, but you can't edit moderators!"));
	}
Now only admins can edit admins, supermods cant edit other supermods and mods cant edit supermods or either mods.

now the mod is working fine for me...

//me clicks install
Reply With Quote
  #38  
Old 02-18-2006, 03:49 PM
Jimmy101 Jimmy101 is offline
 
Join Date: Jul 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a custom hack installed that automatically ads a special category to my user manager within AdminCP, if I were to search and edit them from within AdminCP I would see this section and fields. It then displays the output of what is entered here in their profiles. However, this hack does not allow me to edit my custom hack, even if all the options are turned on(the custom hack does now show up at all.) How can I add it? Thanks!
Reply With Quote
  #39  
Old 02-22-2006, 11:57 AM
mrcrx mrcrx is offline
 
Join Date: Jun 2004
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by andrefedalto
here is a fix for security, because on my forums i allow admins, supermods and mods to edit users, so i had to add some security fixes, so the users cant get auto-promotted.

do the following:
open que.php and find (around line 121):
Code:
	// Merge the options with the users details
	$getoptions = convert_bits_to_array($user['options'], $vbulletin->bf_misc_useroptions);
	$user = array_merge($user, $getoptions);
now, BEFORE that, add:
Code:
	//Only administrators can edit administrators
	if ($vbulletin->userinfo['usergroupid'] != 6 && $user['usergroupid'] == "6" ) {
		eval(standard_error("Sorry, but you can't edit administrators!"));
	}

	//Super-moderators cant edit super-moderators
	if ($vbulletin->userinfo['usergroupid'] == "5" && $user['usergroupid'] == "5" ) {
		eval(standard_error("Sorry, but you can't edit super-moderators!"));
	}

	//Moderators cant edit super-moderators
	if ($vbulletin->userinfo['usergroupid'] == "7" && $user['usergroupid'] == "5" ) {
		eval(standard_error("Sorry, but you can't edit super-moderators!"));
	}
	
	//Moderators cant edit moderators
	if ($vbulletin->userinfo['usergroupid'] == "7" && $user['usergroupid'] == "7" ) {
		eval(standard_error("Sorry, but you can't edit moderators!"));
	}
Now only admins can edit admins, supermods cant edit other supermods and mods cant edit supermods or either mods.

now the mod is working fine for me...

//me clicks install
where do I find que.php. I want to install this but not without your mod to it.
Reply With Quote
  #40  
Old 02-22-2006, 12:26 PM
Gaskell's Avatar
Gaskell Gaskell is offline
 
Join Date: Sep 2004
Location: Land of the Prince Bishop
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

que.php is in the .zip download for this mod, or if you have already installed it it will be in your forum root folder
Reply With Quote
  #41  
Old 02-22-2006, 01:43 PM
Jimmy101 Jimmy101 is offline
 
Join Date: Jul 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, does anyone know how to add ALL fields that are in the admincp to this yet? I have custom fields in admincp, but I do not know how to make them show and be save-able here... I'm not talking about custom profile fields, I'm talking about 100% custom sections such as a Computer Spec input section. How do I make these added fields be save-able with this mod?
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:16 PM.


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.05100 seconds
  • Memory Usage 2,328KB
  • 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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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