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.
User avatar
Ahri89
Registered User
Posts: 525
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain

Re: ACP Add User MOD

Post by Ahri89 »

Thanks for this MOD!!!

My Spanish translation:
es.zip
You can add it to your MOD in new versions.

Thanks again.
You do not have the required permissions to view the files attached to this post.
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD
User avatar
rklesla
Registered User
Posts: 23
Joined: Thu Jan 22, 2004 2:02 pm

Re: ACP Add User MOD

Post by rklesla »

I have a modified version of this MOD where instead of a random password it actually has an area where you can put in the password. I also have a default password that it will use if you don't change the password. That default password can be changed as well.

Would this be of any interest to people. It disables the random password generator though.

And would this be considered a separate MOD basically?
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry

Re: ACP Add User MOD

Post by DragonMaster1 »

would be a nice addition
Aleksandar
Registered User
Posts: 147
Joined: Tue Feb 01, 2005 8:23 pm

Re: ACP Add User MOD

Post by Aleksandar »

Awesome work on this. I wish all mods were this easy to install. ;)
User avatar
rklesla
Registered User
Posts: 23
Joined: Thu Jan 22, 2004 2:02 pm

Re: ACP Add User MOD

Post by rklesla »

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
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry

Re: ACP Add User MOD

Post by DragonMaster1 »

Does the old version need to be un-installed and then add this code?
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 rklesla, I added that to the third post. :)
User avatar
rklesla
Registered User
Posts: 23
Joined: Thu Jan 22, 2004 2:02 pm

Re: ACP Add User MOD

Post by rklesla »

DragonMaster1 wrote:Does the old version need to be un-installed and then add this code?
No, install this mod, then use my changes after that. If I have time, I'll add setting where you can check a box to enable the random password generator again.

And Highway of Life, this mod is a beauty! Thanks for getting this created.
ctfb
Registered User
Posts: 3
Joined: Mon Nov 17, 2008 10:53 pm

Re: ACP Add User MOD

Post by ctfb »

does it work with version 3.0.3?
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 »

Yes, usually MODs for 3.0.0, 3.0.1, and 3.0.2 are going to be compatible with 3.0.3
FDCP_NEO
Registered User
Posts: 7
Joined: Tue Dec 26, 2006 11:38 pm

Re: ACP Add User MOD

Post by FDCP_NEO »

EDIT: NEVER MIND
Veronika7747
Registered User
Posts: 18
Joined: Tue Nov 11, 2008 6:05 am

Re: ACP Add User MOD

Post by Veronika7747 »

I installed those 4 files, but still I don't see "Add Users" under Users & Groups. I have phpbb3.0.3, do I have to do something else to see the add user mod?
Tx
Veronika
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 »

Look under the DIY in the install instruction file (install.xml)
gamarski
Registered User
Posts: 6
Joined: Fri Jun 13, 2008 1:11 pm

Re: ACP Add User MOD

Post by gamarski »

Thank you very much.
Best Regards,

Ricardo
IncrediBody.com
Registered User
Posts: 3
Joined: Sat Nov 29, 2008 6:12 am

Re: ACP Add User MOD

Post by IncrediBody.com »

Highway of Life wrote:Users & Groups, then Users... it was a typo.

The Module will be listed in the top drop-down menu on the right.
Just a suggestion - this should be corrected in the instructions. I just spent more time than I would have liked figuring out what to do and didn't find the answer until seeing this post.

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