ACP Add User MOD

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29350
Joined: Sat Aug 16, 2003 7:36 am

ACP Add User MOD

Post by Extensions Robot »

Modification name: ACP Add User MOD
Author: phpbbmodders.net
Modification description: Adds a new Module that enables an Administrator to create a new user account through the Administration Control Panel
Adds an extra permission to allow administrator to create a new user account.
Gives the administrator the ability to instantly approve a new member after creation.
Gives the admin the ability to choose password for the new user.
Modification version: 1.1.3
Tested on phpBB version: 3.0.12

Download file: acp_add_user-1.1.3.zip
File size: 152.2 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Tue Jun 18, 2024 8:55 pm, edited 31 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28934
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

ACP Add User MOD

Post by Paul »

Modification validated/released

Notes:
Admins can add a new user easy within the admin panel with this MOD.
User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Bend, OR
Name: David Lewis

Re: ACP Add User MOD

Post by Highway of Life »

Thanks Paul. :)

Features:
  • Auto Installation: MOD Auto-installs and updates itself, no need for manual SQL queries! (note: does not automatically download an update)
  • Easy Installation: Copy 4 files. -- no edits!!
  • Support for multiple forms of user activation depending on board settings.
  • Allows Admins to create users and set user registration to (off) effectively creating a private board.
  • Support for specific add_user permission for those who want to keep adding users seperate from user administration.
  • Support for all *required* profile fields and profile fields set to be shown on registration
  • Support for language and birthday settings
  • Auto generates a password and emails it to the user.
  • If set to user activate, MOD will send the user an activation email containing his username and password as well as the activation key required to activate the account.
Screenshots: (Click thumbnail for full image)
Image

Future: Next update will contain > 10 Additional Translations.

----- ooooOOOoooo -----

To display the users password after it has been created, make this change to the MOD:

OPEN: /includes/acp/acp_add_user.php
FIND:

Code: Select all

$message[] = sprintf($user->lang['CONTINUE_EDIT_USER'], '<a href="' . append_sid("{$phpbb_admin_path}index.$phpEx", 'i=users&mode=profile&u=' . $user_id) . '">', $data['new_username'], '</a>');  
BEFORE, ADD:

Code: Select all

$message[] = 'The new user’s password is: ' . $data['new_password'];  

--------------------------------


To implement custom password functionality, see this post instructions:

Subject: ACP Add User MOD
rklesla wrote:Ok, here it goes. It definitely works since all my users use it flawlessly. This is the first time I posted stuff on here, so let me know if it doesn't work.

Changes Made Summary: Took out the random password generator. Added a password and confirm new password field. These fields will start auto-populated with the default password. The default password can be changed under the board preferences. Everything else is the same...

Open: /adm/style/acp_add_user.html
FIND:

Code: Select all

<!-- IF ERROR -->
        <div class="errorbox"><h3>{L_WARNING}</h3>
                <p>{ERROR}</p>
                </div>
<!-- ENDIF -->
ADD, AFTER

Code: Select all

<fieldset>
        <legend>{L_DEFAULT_PASS}</legend>
        <dl>
                <span>{L_DEFAULT_PASS_EXPLAIN}</span>
        </dl>
         <dl>
                <dt><label for="default_pass">{L_DEFAULT_PASS}:</label></dt>
                <dd>{DEFAULT_PASS}</dd>
        </dl>
</fieldset>
FIND:

Code: Select all

<dl>
                <dt><label for="username">{L_USERNAME}: *</label>
                        <br /><span>{L_USERNAME_EXPLAIN}</span></dt>
                <dd><input class="medium" type="text" id="username" name="username" size="25" maxlength="40" value="{NEW_USERNAME}" /></dd>
        </dl>
AFTER ADD

Code: Select all

<dl>
                        <dt><label for="new_password">{L_NEW_PASSWORD}: *</label><br /><span>{L_PASSWORD_EXPLAIN}</span></dt>
                        <dd><input type="password" name="new_password" id="new_password" size="25" maxlength="255" value="{DEFAULT_PASS}" class="inputbox" title="{L_CHANGE_PASSWORD}" /></dd>
                </dl>
                <dl>
                        <dt><label for="password_confirm">{L_CONFIRM_PASSWORD}: *</label><br /><span>{L_CONFIRM_PASSWORD_EXPLAIN}</span></dt>
                        <dd><input type="password" name="password_confirm" id="password_confirm" maxlength="255" value="{DEFAULT_PASS}" class="inputbox" title="{L_CONFIRM_PASSWORD}" /></dd>
                </dl>
        <dl>
Open: /includes/acp/acp_board.php
FIND:

Code: Select all

 'legend2'                               => 'WARNINGS',
                                                'warnings_expire_days'  => array('lang' => 'WARNINGS_EXPIRE',           'validate' => 'int',    'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),
AFTER, ADD

Code: Select all

'legend3'                               => 'DEFAULT_PASS',

                                                'default_password'                             => array('lang' => 'DEFAULT_PASS',                         'validate' => 'string', 'type' => 'text:30:255', 'explain' => false),
Open: /includes/acp/acp_add_user.php
FIND:

Code: Select all

$data = array(
BEFORE, ADD

Code: Select all

$default_pass = $config['default_password'];
FIND:

Code: Select all

'bday_year'             => request_var('bday_year', 0),
AFTER, ADD

Code: Select all

'default_password'      => request_var('default_password', $default_pass),
FIND:

Code: Select all

$new_password = str_split(base64_encode(md5(time() . $data['new_username'])), $config['min_pass_chars'] + rand(3, 5));
REPLACE

Code: Select all

//$new_password = str_split(base64_encode(md5(time() . $data['new_username'])), $config['min_pass_chars'] + rand(3, 5));
FIND:

Code: Select all

'new_username'                  => array(
                                        array('string', false, $config['min_name_chars'], $config['max_name_chars']),
                                        array('username')),
AFTER, ADD

Code: Select all

'new_password'          => array(
                                        array('string', false, $config['min_pass_chars'], $config['max_pass_chars']),
                                        array('password')),
                                'password_confirm'      => array('string', false, $config['min_pass_chars'], $config['max_pass_chars']),
FIND:

Code: Select all

if ($data['email'] != $data['email_confirm'])
                                {
                                        $error[] = $user->lang['NEW_EMAIL_ERROR'];
                                }
AFTER, ADD

Code: Select all

if ($data['new_password'] != $data['password_confirm'])
                                {
                                        $error[] = $user->lang['NEW_PASSWORD_ERROR'];
                                }
Open: /language/en/mods/info_acp_add_user_mod.php
FIND:

Code: Select all

'CONTINUE_EDIT_USER'            => '%1$sClick here to the manage %2$sâs profile%3$s', // e.g.: Click here to edit Joeâs profile.
AFTER, ADD

Code: Select all

        'DEFAULT_PASS'                          => 'Default Password',
        'DEFAULT_PASS_EXPLAIN'                  => 'Default password is already populated in the password fields.',
        'DEFAULT_PASS_CHANGE_EXPLAIN'           => 'Password used for the add user page.',
        'PASSWORD_EXPLAIN'      => 'Create new password if you decide not to use the default password as above.',
User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: ACP Add User MOD

Post by WhiteWolfSix »

Highway of Life: Simple but great MOD - congrats
Image
WhiteWolfSix (WW6)
notsa
Registered User
Posts: 253
Joined: Sat Jul 28, 2007 7:37 pm

Re: ACP Add User MOD

Post by notsa »

nice one thanks :) :)
User avatar
funowner
Registered User
Posts: 109
Joined: Sat May 26, 2007 4:29 pm
Location: Germany

Re: ACP Add User MOD

Post by funowner »

sorry Highway! My translation was too late. I posted it at startrekguide. I hope you can still have a use of it.
Live your life as long as possible ;)
notsa
Registered User
Posts: 253
Joined: Sat Jul 28, 2007 7:37 pm

Re: ACP Add User MOD

Post by notsa »

if board email is disables and the registration validation is set to none, how do i set the password for the user or how does the user login?
User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Bend, OR
Name: David Lewis

Re: ACP Add User MOD

Post by Highway of Life »

funowner wrote:sorry Highway! My translation was too late. I posted it at startrekguide. I hope you can still have a use of it.
Its not too late, I decided to give the translators some more time. Your translation will be included shortly. :)
notsa wrote:if board email is disables and the registration validation is set to none, how do i set the password for the user or how does the user login?
For now, your e-mail has to work for the users to get the password, OR after creating the user, click on the link to continue editing the user's profile, and set the password for that user in the overview screen.
notsa
Registered User
Posts: 253
Joined: Sat Jul 28, 2007 7:37 pm

Re: ACP Add User MOD

Post by notsa »

oh ok thanks mate.
User avatar
r4wMUnt34q
Registered User
Posts: 167
Joined: Sat Aug 19, 2006 5:41 am
Location: Hard to explain :)

Re: ACP Add User MOD

Post by r4wMUnt34q »

I would like to make a feature request for the next version, if possible :).

If e-mails are disabled on a board, there should be an ability for an admin to set the users password, because right now with this setting the admin has to go to user administration and change newly created user's password... Correct me if Im wrong...
User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Bend, OR
Name: David Lewis

Re: ACP Add User MOD

Post by Highway of Life »

r4wMUnt34q wrote:I would like to make a feature request for the next version, if possible :).

If e-mails are disabled on a board, there should be an ability for an admin to set the users password, because right now with this setting the admin has to go to user administration and change newly created user's password... Correct me if Im wrong...
Sure thing, will do. -- Should be a quick fix, so I’ll release it with the extra Translations you guys provided. :)
User avatar
UncleVIBES
Registered User
Posts: 64
Joined: Sat Jun 09, 2007 5:08 am
Location: France

Re: ACP Add User MOD

Post by UncleVIBES »

I wish also another feature. (if possible)

I like to define a special group during this registration. It's not often the administrator create new users or in special circumstances. In my case I create users to convince some distributors to follow the forum & we give them special rights.
What do you think of this addon?
User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Bend, OR
Name: David Lewis

Re: ACP Add User MOD

Post by Highway of Life »

I’m not quite sure I follow. Can you elaborate and/or give me an example?
User avatar
UncleVIBES
Registered User
Posts: 64
Joined: Sat Jun 09, 2007 5:08 am
Location: France

Re: ACP Add User MOD

Post by UncleVIBES »

Yes of course... We are making software for bedroom & pro dj's & we try to make more than since 2003. Now with phpbb3 we manage the download of updates & we feel in a safe aera to open forums for our distributors to give them the idea to follow their clients on the site. On these forum nothing need a challenge to hack the security but they need to be confidential, what phpbb3 does very well today.
I like your mod because these people need to be feed. They don't have the time, you know the story, time is money ;) so I can register them with their email adress & I think with a click it will be quick & easy to give them the extra-powers their very important function need.
:)
User avatar
IHMUN
Registered User
Posts: 138
Joined: Tue Jun 26, 2007 11:10 pm

Re: ACP Add User MOD

Post by IHMUN »

Thanks for the great mod. Wish more mods were as easy to install :p

Return to “[3.0.x] MOD Database Releases”