vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - MODCP User Administration (renamed from Username/Usergroup Changes) (https://vborg.vbsupport.ru/showthread.php?t=204787)

nestaron 02-08-2009 10:00 PM

MODCP User Administration (renamed from Username/Usergroup Changes)
 
1 Attachment(s)
Nestaron's MODCP User Administration


This mod will allow for limited User Profile Edding changes in the MODCP. There are 6 options that can be set via the vBulletin Options/Settings:

Features:
  1. Change Usernames
  2. Change/Set Custom User Titles
  3. Change Usergroups
  4. Set Access Mask
  5. View Current Access Mask
  • Enables/Disables the product.
  • Enable/Distable ModCP Index Page Search Box
    [*Protected Users - Set by entering userids, separate user with commas.
  • Restricted Usergroups - Set by entering usergroupids, separate usergroups with commas. (default groups are Super Moderators, Administrators, Moderators, Banned Users).
  • Usergroups Allowed to Use mod - Set by entering usergroupids, separate usergroups with commas. (default groups are Super Moderators & Administrators).
  • Restricted Forums - This is for the access mask feature. Set by entering forumids, separate forums using commas.

Please mark installed to get support help.


Usergroup Restrictions: The default settings are going to be fine for a majority of sites. Upon install the following usergroups are restricted: Moderator, Administrator, Super Moderator & Banned Users.

It's important that the banned usergroup is included since this mod does not handle bans. There is no option to set a length or reason for bans via this mod. Moderators will still be able to ban via the normal MODCP ban user menu.

Installation Instructions:
  1. Upload the files in the upload/modcp/ folder to the modcp folder on your site.
  2. Import that product XML File via the AdminCP.
  3. Set your options for restricted users and usergroups.
  4. Set the CANVIEWPROFILE setting to YES for Moderator to Access this Mod, Set to NO to deny access to this mod.

Special note: Moderator setting of "Can View Whole Profile" is required for some features of this mod.

Special note (re: access mask): Super Moderators can no give themselves access to restricted forums. HOWEVER, if they already have an access mask set for a restricted forums they are able to change it. User Usergroup permissions to deny access to forums for Super Moderators instead of access mask.

This mod has been tested on versions 3.7.2 and 3.8.0 of vBulletin.
Report Bugs & request additions here or via PMs.

Version 1.1 Update: Fixed an issue where a Moderator could still assign a restricted group. If two or more additional groups are selected, including a restricted group the mod was able to assign the group. This has been fixed in the 1.1 update.

Version 1.2 Update:
  • Added search form to ModCP index page. Option to turn this on/off in settings.
  • Changed Permission to use a vb option setting for who can use this mod. The "canviewprofile" setting is still required; However, now you can set "canviewprofile" to yes for people who you don't want to use this mod without giving them the ability to change user settings.
  • Cleaned up phrases and error messages.

Version 1.3 Update:
  • Consolidated User Editor Form to include both usergroups, username and title edits.
  • Added Access Mask Control.
  • Fixed several permission check issues
  • Added more settings in vb Options.
  • Cleaned up phrases, consolidated forms & update code.

Spank 02-09-2009 07:35 PM

I've been looking for something like this for a while. I'll test out later on.

jesus likes pie 02-09-2009 10:13 PM

Seems useful! Not for me but in general. Nice job.

nestaron 02-10-2009 04:12 AM

I Just fix an issue that was discovered while performing a live test. Please be sure to update to version 1.1 if you have downloaded/installed this mod.

dvbusuario 02-10-2009 05:42 AM

Install!!! Nominated! Excellent Mod!!!

Thank you!

Super Jinni 02-11-2009 09:53 PM

OK, this mod has some of what I was looking for (but not exactly what I need though)

what I need is to allow super moderator(s) to choose any specific user as a moderator of any forum(s).

using this mod a super moderator can change a user's usergorup, so he can make any user moderator depending on permissions in admincp, but he can't make him a moderator of a forum(s).

can you add such feature?

thanks for your nice work :)

nestaron 02-11-2009 11:50 PM

Quote:

Originally Posted by Super Jinni (Post 1741273)
OK, this mod has some of what I was looking for (but not exactly what I need though)

what I need is to allow super moderator(s) to choose any specific user as a moderator of any forum(s).

using this mod a super moderator can change a user's usergorup, so he can make any user moderator depending on permissions in admincp, but he can't make him a moderator of a forum(s).

can you add such feature?

thanks for your nice work :)

That might be something I could add later on down the line. I'll need to look into the way moderators are assigned in the code before I can commit to adding such a feature.

The next update will include the ability to grant access to forums via Access Mask and Customer User Titles.

Sweeks 02-12-2009 12:21 AM

Tested this and an additional protected user is not being protected from having the avatar etc changed although the protected user with userid 1 is protected against this. Any ideas?
________
ECKANKAR DICUSSION

nestaron 02-13-2009 12:27 AM

Quote:

Originally Posted by Sweeks (Post 1741371)
Tested this and an additional protected user is not being protected from having the avatar etc changed although the protected user with userid 1 is protected against this. Any ideas?

This mod doesn't handle avatars.

As for the protection of user 1 that is most likely because it is listed as an unalterable user in the config.php file.

Sweeks 02-13-2009 11:03 PM

Thank you, forgot to add all the admins to the config so nobody can edit their avatars etc :) Works a treat and ties in with all the other permissions for mods well too :)
________
BBW PLUMP

nestaron 02-14-2009 12:42 AM

I'll have an update sometime next week that will add the ability to allow mods to set access mask. There will also be a redesign of the username/usergroup forum which will also add the custom title field.

After this update unless there are bug fixes I will be working on other projects for the site I originally created this mod. I'll probably get back to this in a month or so and probably add a few other features at that time.

Super Jinni 02-14-2009 11:20 AM

Quote:

Originally Posted by nestaron (Post 1741358)
That might be something I could add later on down the line. I'll need to look into the way moderators are assigned in the code before I can commit to adding such a feature.

Yeah, I think that will need some work to do, and that will be just what a lot of people looking for, as I see in vb.com there are a lot of requests about that.
super moderators should have the ability to nominate forum moderators without via MODCP without loging-in to ADMINCP.

thanks for looking into my request and appreciate your work.

:)

adom7 02-14-2009 05:47 PM

That's all I want a super moderator do. :D
Thank you, nestaron.

PS. Protected Users option doesnt work regular. I tested it on a test supermod and even I prevented changes moderators group, a test supermod could change it.

IR15H 02-14-2009 06:19 PM

Nice! Thanks.

As a future request, would it possible to have it so that you can have set user groups controlling different moveable groups?

eg;
If user is in group x, can change usergroups a, b, c.
If user is in group y, can change usergroups a, d, e etc.

nestaron 02-14-2009 07:26 PM

Quote:

Originally Posted by adom7 (Post 1744061)
That's all I want a super moderator do. :D
Thank you, nestaron.

PS. Protected Users option doesnt work regular. I tested it on a test supermod and even I prevented changes moderators group, a test supermod could change it.

What exactly could they change? I'm about to upload a update but if there is a bug I'd like to fix it before I upload the new changes.

adom7 02-14-2009 07:56 PM

Quote:

Originally Posted by nestaron (Post 1744149)
What exactly could they change? I'm about to upload a update but if there is a bug I'd like to fix it before I upload the new changes.

the test super mod cant change the root admin's username and group, thats Okay but he can change the mods' names and usergroups, also he can move a user to super moderators group.
Thats why, I changed the vbulletin options/nestoran mod settings as I want but it didnt work. I think there is a mistake on vb options/nestoran settings.

Version 1.2

Skyrider 02-14-2009 07:59 PM

I love this! I waited for a plugin like that so the usergroup can only edit a persons usergroup... Thanks! Possible you can serperate the "Access Mask" though with an option so the user can / cannot use this function?

adom7 02-14-2009 08:12 PM


Version 1.3 Update:
  • Consolidated User Editor Form to include both usergroups, username and title edits.
  • Added Access Mask Control.
  • Fixed several permission check issues
  • Added more settings in vb Options.
  • Cleaned up phrases, consolidated forms & update code.
Love it :)
Everything is ok now.
Thank you, nestaron

Skyrider 02-14-2009 08:19 PM

I'm so gonna love this plugin, awesome thanks! VB really needs enhanced features of what people can or can't do. I wonder if you are able to add specific access of specific people able to edit description of forums / sections rather than editing the whole section of what it can or can't do. Mostly this user is asking for access so he can edit description for events. But I don't want him able to edit the whole section. But then again, this is user administration plugin.. Not outside it ^^.

Spank 02-14-2009 09:00 PM

Hi. I have private custom user fields that I want my super mods to be able update, is this possible?

nestaron 02-15-2009 01:00 AM

Quote:

Originally Posted by Spank (Post 1744215)
Hi. I have private custom user fields that I want my super mods to be able update, is this possible?

Not at this time, but perhaps in a future update.

wo0kie 06-21-2009 12:29 AM

The ability to restrict usergroups (as opposed to original userid) from being editable would be a great feature to add to this mod.

Works as expected.

al7or2008 07-14-2009 06:59 AM

i want it to change the password also

al7or2008 07-14-2009 07:00 AM

with email

nestaron 07-14-2009 05:21 PM

If you're referring to sending the user their password via email, I was not able to get that to work. It would require created a new script with how the email is sent and how it redirects you back to the modcp.

Something maybe for future update.

indiancinema 07-17-2009 02:03 AM

can you add the function to change the password of users

TheLastSuperman 11-05-2009 12:37 AM

Well hey hey now it's Nestaron from TOG!

:D I didn't know you had released anything yet but nice work imo it reminds me of something from a while back *cough *cough

[high]* TheLastSuperman marks as installed ;)[/high]

owning_y0u 02-20-2010 07:06 AM

installed on VB4.0 and it works like a charm :D

toyotas.de 09-07-2010 09:04 PM

Jep, works perfectly on 4.0.6! Thank you!

Konstantinos 11-22-2010 07:31 AM

i want to disable the usergroup and access mask and i want my mods only to be able to use username and usertitle settings . how ? it seems in need to edit useradministration.php but what exactly, removing this caused parse error

PHP Code:

// Create Form - Usergroup Options
    print_table_header($vbphrase['usergroup_options']);
    print_chooser_row($vbphrase['primary_usergroup'], 'user[usergroupid]', 'usergroup', $user['usergroupid']);
    if (!empty($user['membergroupids']))
    {
        $usergroupids = $user['usergroupid'] . (!empty($user['membergroupids']) ? ',' . $user['membergroupids'] : '');
        print_chooser_row($vbphrase['display_usergroup'], 'user[displaygroupid]', 'usergroup', iif($user['displaygroupid'] == 0, -1, $user['displaygroupid']), $vbphrase['default'], 0, "WHERE usergroupid IN ($usergroupids)");
    }
    $tempgroup = $user['usergroupid'];
    $user['usergroupid'] = 0;
    print_membergroup_row($vbphrase['additional_usergroups'], 'user[membergroupids]', 0, $user);
    $user['usergroupid'] = $tempgroup;
    
    ?>
    </table>
    </td>
    </tr>
    <?php

    print_table_break
(''$OUTERTABLEWIDTH);
    
$tableadded 1;
    
print_submit_row($vbphrase['ucm_save_user']);
}


Konstantinos 11-22-2010 07:55 AM

founded it i had to uncomment these lines

PHP Code:

// Create Form - Usergroup Options
//    print_table_header($vbphrase['usergroup_options']);
//    print_chooser_row($vbphrase['primary_usergroup'], 'user[usergroupid]', 'usergroup', $user['usergroupid']);
    if (!empty($user['membergroupids']))
    {
        $usergroupids = $user['usergroupid'] . (!empty($user['membergroupids']) ? ',' . $user['membergroupids'] : '');
//        print_chooser_row($vbphrase['display_usergroup'], 'user[displaygroupid]', 'usergroup', iif($user['displaygroupid'] == 0, -1, $user['displaygroupid']), $vbphrase['default'], 0, "WHERE usergroupid IN ($usergroupids)");
    }
    $tempgroup = $user['usergroupid'];
    $user['usergroupid'] = 0;
//    print_membergroup_row($vbphrase['additional_usergroups'], 'user[membergroupids]', 0, $user);
    $user['usergroupid'] = $tempgroup;
    
    ?>
    </table>
    </td>
    </tr>
    <?php

//    print_table_break('', $OUTERTABLEWIDTH);
    
$tableadded 1;
    
print_submit_row($vbphrase['ucm_save_user']);
}


but how to disable access masks ?

Konstantinos 11-23-2010 06:07 AM

i also found a bug, when access masks are globaly disabled in ACP the hack still allows access masks to be used :/

shzad1 11-24-2010 11:57 AM

Great Work
Really Awesome 1 :)

SEW810 12-12-2011 10:32 PM

Nothing for vbulletin 4.1.x???

C'mon ppl, support this great mod. (or at least, somebody try to make it work with vb 4.)

Regards!!!

oxblood12 12-28-2011 03:00 PM

thanks for add

sailnet 02-03-2012 12:40 PM

my mods also asked if they could edit the "home page" field - can that be added.

we have a lot people accessing our site who are always trying to advertise their businesses for free.

via the username (which my mods can now change due to this great mod) - their signatures (which the mods have always been able to change) and via their Home Page field - which I would also like the mods to be able to edit.

can this be added? - thanks in advance.

sailnet 02-04-2012 12:32 PM

can someone help me out with this - I've modified some of the code in the included php module but can't seem to get it working.

jdwood14 11-04-2012 03:42 PM

I know the mod was designed for 3.8 but it works fine in 4.2 but has one problem. I was wondering if someone could please help with this. When you use the mod in the modcp and add a usergroup to a user or change the usergroup of a user. they will loose all previous rank badges that they have. example: the user is assigned to primary usergroup of junior member and they have a graphic badge for junior member, and you add a secondary usergroup to the user of Elite member, which also adds a graphic badge. but when you change any usergroup of the user through the mod. it will take away all of the graphic badges. the permissions work fine. they just loose the badge. and the only way to correct it, is to go to admincp and just click the user's name and then just click save. and all the graphic badges appear correctly. does anyone know how we could possibly fix this?

katie hunter 12-13-2012 04:56 PM

Hi, I use this mod and it is really great =) but can we add a restriction for super mods not to be able to search ip addresses of the users? Only admin can.

titodj 02-15-2013 07:35 PM

OMG !!!! This is what I needed !!! Thanks !!


All times are GMT. The time now is 07:44 AM.

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.01297 seconds
  • Memory Usage 1,837KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete