vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Quick (inline) User Editor (https://vborg.vbsupport.ru/showthread.php?t=102789)

Alan @ CIT 12-11-2005 10:00 PM

Quick (inline) User Editor
 
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! :D

Alan @ CIT 12-12-2005 01:25 PM

Known Bugs:

* Integration with Marco's username history mod doesn't work as planned - it's commented out in que.php at the moment

Alan @ CIT 12-12-2005 01:29 PM

Notes:

The Quick User Editor respects the un-editable users variable in the config.php, so it is recommended that you add your user account to it - just in case :)

jesus likes pie 12-12-2005 01:49 PM

<3

:d

nexialys 12-12-2005 02:03 PM

looks like the best user editor so far.. ;)

michaelbenson 12-12-2005 03:08 PM

Looks nice, couple of things:
1) Is it possible to merely EDIT user avatars, profiles, or signatures instead of delete.
2) There is an option to tick Recieve Private Messages, could this incorporate sending them too?
3) The "Edit This User" would look better as "Edit $username's Account"

/me installs.

Mastar 12-12-2005 03:45 PM

Quote:

Originally Posted by michaelbenson
Looks nice, couple of things:
1) Is it possible to merely EDIT user avatars, profiles, or signatures instead of delete.
2) There is an option to tick Recieve Private Messages, could this incorporate sending them too?
3) The "Edit This User" would look better as "Edit $username's Account"

[high]* michaelbenson installs.[/high]

Good suggestions!

Does the edit user include admins?

Look Promising though.

Alan @ CIT 12-12-2005 06:40 PM

Quote:

Originally Posted by michaelbenson
Looks nice, couple of things:
1) Is it possible to merely EDIT user avatars, profiles, or signatures instead of delete.
2) There is an option to tick Recieve Private Messages, could this incorporate sending them too?
3) The "Edit This User" would look better as "Edit $username's Account"

[high]* michaelbenson installs.[/high]

Anwsers: :)

1) It's possible to edit signatures, but not avatars / profiles - I hadn't planned to add that in, but might add it to the todo list.

2) It only incorporates features that are already a part of vB. ie, the "Recieve Private Messages" is selectable by the user in their User CP. As such, it would require a seperate mod that limited sending of messages before I could add an option to Que.

3) Added to the todo list :)

Alan @ CIT 12-12-2005 06:41 PM

Quote:

Originally Posted by Mastar
Does the edit user include admins?

Sorry, I'm not sure what you mean. Any user can be edited using Que, it's just like the regular user editor in that respect.

Mastar 12-12-2005 06:57 PM

[QUOTE=Alan @ CIT][QUOTE=Mastar]Does the edit user include admins?
Quote:


Sorry, I'm not sure what you mean. Any user can be edited using Que, it's just like the regular user editor in that respect.
I installed and working great. Lovin' it.

Alan @ CIT 12-12-2005 07:46 PM

Good to hear :)

Remeber folks, it's only a Beta still, so is still in development and may have bugs :)

Mike Gaidin 12-12-2005 07:52 PM

Nice, will check it out.

/me clicks install.

ugmphelon 12-12-2005 09:23 PM

very nice, i will install

eXaulz 12-12-2005 10:18 PM

Looks very good as usual, Alan. Also, you might ant to change:

Edit User

To:

Edit _user_

_user_ being the current user's name, of course.

Alan @ CIT 12-13-2005 07:53 AM

eXaulz: It's on the todo list :)

Emmy2 12-13-2005 11:01 AM

great modification! I love it!

the only thing I noticed missing, that would benefit my setup greatly, is to add editing of custom profile fields. The regular fields are there, but I use the custom fields to add member merit badges and things like that and it would be nice to let my Mods do that using this feature.

any chance of that being added?

Alan @ CIT 12-13-2005 11:26 AM

Yep, I'll add it to the todo list

Emmy2 12-13-2005 01:23 PM

woohoo, happy camper here! :P

Snake 12-13-2005 02:04 PM

Hey I like this hack but ever thought of integrating it with AJAX? :p

Alan @ CIT 12-13-2005 02:54 PM

Aftermath: In what respect? I've got a simaler idea to this that involves Ajax, but that's top secret at the moment :)

Alan @ CIT 12-14-2005 09:14 AM

Version 1.0 - Beta 2 has been released!

This release makes 2 changes.

1) Changes the phrase used in the postbit dropdown menu to "Edit {usernames} Account" (see install.txt for details on the change)

2) Adds support for Custom Profile Fields. It supports all the standard vB types, which are:
  • Textbox
  • Textarea
  • Radio Buttons
  • Radio Buttons with Optional Input
  • Single-Select Menu
  • Single-Select Menu with Optional Input
  • Multi-Select Menu
  • Checkboxes
Enjoy, and let me know if you notice any bugs or have any suggestions for future improvments :)

Thanks,
Alan.

michaelbenson 12-14-2005 11:57 AM

Thanks for the update :) Also whats the status of protection provided to users in the Administrator group? Ideally it could be nice for users of the Administrator group not to have their details editable by anyone but an Administrator themselves, also do the settings in the ./includes/config.php file of "uneditable" users still apply here?

Emmy2 12-14-2005 03:20 PM

great job Alan! thank you so much! I've installed the update and it's exactly what I needed! :)

Alan @ CIT 12-15-2005 10:56 AM

Hi all,

Anymore bugs noticed before I take this out of beta tomorrow?

Thanks,
Alan.

Emmy2 12-15-2005 02:42 PM

Alan, my Mods have been using it without problem. It's really great for me as they can now take over a lot of functions for me...like changing usernames, changing passwords, giving out medals (I use the custom fields for this)...just a lot of different little member-assistance functions. The Modcp is rather strange here, it is very limited in what it will let mods do...they can SEE all the profile fields of a user but they can't SAVE any changes they make to those fields (so it's kinda like, what's the point of that anyway?). About all my mods could do before was change avatars and ban users. Now they can do just about all the mod functions I want them to do (I guess some would qualify these as admin functions, but to me they're just functions to ensure the smooth-running of the board, and I'm happy to let the mods do them).

Sorry for the long-winded post. Just saying "I love this modification" and it's working without a hitch on my forums.

yessir 12-30-2005 11:58 PM

Still beta? Just trying to get a feel for where this is at. It is a tremendous concept.

Xplorer4x4 01-05-2006 08:06 AM

Havent got to use it much but I love it so far.

Alan @ CIT 01-08-2006 07:41 PM

Hi all,

I have now returned from my holidays, hope you all had a good <insert-seasonal-holiday-name-here> :)

I'll start answering any questions, fixing any bugs, and adding any new features next week, but I've got a lot of hacks to update, so it might not be immediate :)

Thanks,
Alan.

VBUsers 01-12-2006 12:43 AM

great hack works great thanks just what i needed

IrPr 01-12-2006 08:43 AM

Really Nice Work!

same here, hope u had a good <insert-seasonal-holiday-name-here>, LOL

does work on 3.5.3 ?

Edit: tested on 35.3 and works fine !
but it doesnt compatible with Unalterable Admins Can Edit Themselves any way?

Xplorer4x4 01-19-2006 12:33 PM

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

Snake 01-27-2006 10:26 AM

Can this be intergrated with AJAX?

stark427 02-06-2006 06:25 PM

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?

hiiped 02-06-2006 10:22 PM

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 )

DkHelmet 02-15-2006 11:54 AM

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?

andrefedalto 02-16-2006 01:42 AM

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 :D :D :D

Jimmy101 02-18-2006 03:49 PM

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!

mrcrx 02-22-2006 11:57 AM

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 :D :D :D

where do I find que.php. I want to install this but not without your mod to it.

Gaskell 02-22-2006 12:26 PM

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 :)

Jimmy101 02-22-2006 01:43 PM

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?


All times are GMT. The time now is 09:27 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.01355 seconds
  • Memory Usage 1,844KB
  • 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
  • (6)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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