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.
bsmither
Registered User
Posts: 42
Joined: Sat Dec 06, 2008 8:20 am

Re: ACP Add User MOD

Post by bsmither »

rklesla wrote:Added a password and confirm new password field. These fields will start auto-populated with the default password.

Open: /includes/acp/acp_add_user.php
For the life of me, I cannot figure out where the {DEFAULT_PASS} gets its value. In the $template->assign_vars() section, these placeholders are not getting filled.

I'm going to fill them and see what happens.
bsmither
Registered User
Posts: 42
Joined: Sat Dec 06, 2008 8:20 am

Re: ACP Add User MOD

Post by bsmither »

OK, got it all working (I hope).

Next problem is in the file:
/includes/acp/acp_add_user.php

Find the line:

Code: Select all

if ($config['require_activation'] == USER_ACTIVATION_ADMIN && !$admin_activate)
Where 'U-USER_DETAILS' is getting its assigned variable for $messenger, there is:

Code: Select all

mode=viewprofile&u=$user_id
That doesn't work for me. The '&' gets copied "as is" to my browser address field, then phpBB complains about a user not found.
User avatar
Ricky_Racer
Registered User
Posts: 609
Joined: Wed Feb 12, 2003 10:02 pm

Re: ACP Add User MOD

Post by Ricky_Racer »

Howdy bsmither, I have made some adjustments to rklesla's code, and think it may be working like I think it should. :D

Code: Select all

#
#------[ SQL ]------------------------------------------------
#
# COMMENT: If using the following default_password, "Default Password, Please Change",
#         you will have to increase pasword character limit to 32 charactaers.
#
# NOTE: If phpbb_ is not your database's prefix_ adjust accordingly.
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('default_password', 'Default Password, Please Change');
#
#------[ OPEN ]-----------------------------------------------
#
includes/acp/acp_add_user.php
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
/**
* acp_add_user
* New User Registration
* @package acp
*/
#
#------[ BEFORE, ADD ]----------------------------------------
#
# Tip: Add these lines on a new blank line before the preceding line(s) to find.
#
/**
* @ignore
* --------------------------
*  Installed Modifications :
* --------------------------
* -- mod : default/add password for acp add user v.1.0.1 [rklesla] -------------
*/
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
		$data = array(
#
#------[ BEFORE, ADD ]----------------------------------------
#
# Tip: Add these lines on a new blank line before the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
		$default_pass = $config['default_password'];
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
			'new_username'		=> utf8_normalize_nfc(request_var('username', '', true)),
#
#------[ AFTER, ADD ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
			'new_password'		=> request_var('new_password', '', true),
			'password_confirm'	=> request_var('password_confirm', '', true),
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
			'bday_year'			=> request_var('bday_year', 0),
#
#------[ AFTER, ADD ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
			'default_password'  => request_var('default_password', $default_pass),
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
		// lets create a wacky new password for our user...
		$new_password = str_split(base64_encode(md5(time() . $data['new_username'])), $config['min_pass_chars'] + rand(3, 5));
#
#------[ REPLACE WITH ]---------------------------------------
#
# Tip: Replace the preceding line(s) to find with the following lines.
#
//-- mod replace : default/add password for acp add user v.1.0.1 [rklesla] -----
		// lets create a wacky new password for our user...
		// since we will no longer be creating a random password we comment the following lines...
//		$new_password = str_split(base64_encode(md5(time() . $data['new_username'])), $config['min_pass_chars'] + rand(3, 5));
//		$data['new_password'] = $new_password[0];
		$new_password = $data['new_password'];
		$password_confirm = $data['password_confirm'];
		if($data['new_password'] == '')
		{
			$data['new_password'] == $default_pass;
		}
		else
		{
			$data['new_password'] == $new_password;
		}
		if($data['password_confirm'] == '')
		{
			$data['password_confirm'] == $default_pass;
		}
		else
		{
			$data['password_confirm'] == $password_confirm;
		}
//-- end replace : default/add password for acp add user v.1.0.1 [rklesla] -----
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
				'new_username'			=> array(
					array('string', false, $config['min_name_chars'], $config['max_name_chars']),
					array('username')),
#
#------[ AFTER, ADD ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
				'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']),
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
			if (!sizeof($error))
			{
#
#------[ AFTER, ADD ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
				if ($data['new_password'] != $data['password_confirm'])
				{
					$error[] = $user->lang['NEW_PASSWORD_ERROR'];
				}
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
				$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 ]----------------------------------------
#
# Tip: Add these lines on a new blank line before the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
				$message[] = 'The new user\'s password is: ' . $data['new_password'];
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
			'NEW_USERNAME'		=> $data['new_username'],
#
#------[ AFTER, ADD ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
			'CONFIRM_PASSWORD'	=> $data['password_confirm'],
			'DEFAULT_PASSWORD'	=> $data['default_password'],
			'NEW_PASSWORD'		=> $data['new_password'],
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ OPEN ]-----------------------------------------------
#
includes/acp/acp_board.php
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
/**
* @ignore
*/
#
#------[ REPLACE WITH ]---------------------------------------
#
# Tip: Replace the preceding line(s) to find with the following lines.
#
/**
* @ignore
* --------------------------
*  Installed Modifications :
* --------------------------
* -- mod : default/add password for acp add user v.1.0.1 [rklesla] -------------
*/
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
						'legend2'				=> 'WARNINGS',
						'warnings_expire_days'	=> array('lang' => 'WARNINGS_EXPIRE',		'validate' => 'int',	'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),
#
#------[ AFTER, ADD ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
						'legend3'				=> 'DEFAULT_PASSWORD',
						'default_password'		=> array('lang' => 'DEFAULT_PASSWORD',			'validate' => 'string',	'type' => 'text:30:255', 'explain' => false),
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ OPEN ]-----------------------------------------------
#
language/en/mods/info_acp_add_user_mod.php
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
/**
* @ignore
*/
#
#------[ REPLACE WITH ]---------------------------------------
#
# Tip: Replace the preceding line(s) to find with the following lines.
#
/**
* @ignore
* --------------------------
*  Installed Modifications :
* --------------------------
* -- mod : default/add password for acp add user v.1.0.1 [rklesla] -------------
*/
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
	'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 ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
	'DEFAULT_PASS'				  => 'Default Password',
	'DEFAULT_PASS_CHANGE_EXPLAIN' => 'Password used for the add new user page.',
	'DEFAULT_PASS_EXPLAIN'		  => 'Default password is already populated in the password fields.',
	'DEFAULT_PASSWORD'			  => 'Default Password',
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
	'LOG_USER_ADDED'			=> '<strong>New user created</strong><br />» %s',
#
#------[ AFTER, ADD ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
//-- add mod : default/add password for acp add user v.1.0.1 [rklesla] ---------
	'PASSWORD_EXPLAIN'          => 'Create new password if you decide not to use the default password as above.',
//-- end add : default/add password for acp add user v.1.0.1 [rklesla] ---------
#
#------[ OPEN ]-----------------------------------------------
#
adm/style/acp_add_user.html
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
<!-- IF ERROR -->
	<div class="errorbox"><h3>{L_WARNING}</h3>
		<p>{ERROR}</p>
		</div>
<!-- ENDIF -->
#
#------[ AFTER, ADD ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
<!-- Start mod : default/add password for acp add user v.1.0.1 -->
<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_PASSWORD}</dd>
        </dl>
</fieldset>
<!-- Finish mod : default/add password for acp add user v.1.0.1 -->
#
#------[ FIND ]-----------------------------------------------
#
# Tip: This may be a partial find and not the whole line.
#
		<dd><input class="medium" type="text" id="username" name="username" size="25" maxlength="40" value="{NEW_USERNAME}" /></dd>
	</dl>
#
#------[ AFTER, ADD ]-----------------------------------------
#
# Tip: Add these lines on a new blank line after the preceding line(s) to find.
#
<!-- Start mod : default/add password for acp add user v.1.0.1 -->
	<!-- IF DEFAULT_PASSWORD -->
	  <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_PASSWORD}" 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" size="25" maxlength="255" value="{DEFAULT_PASSWORD}" class="inputbox" title="{L_CONFIRM_PASSWORD}" /></dd>
	  </dl>
	<!-- ELSE NEW_PASSWORD -->
	  <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="{NEW_PASSWORD}" 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" size="25" maxlength="255" value="{CONFIRM_PASSWORD}" class="inputbox" title="{L_CONFIRM_PASSWORD}" /></dd>
	  </dl>
	<!-- ENDIF -->
<!-- Finish mod : default/add password for acp add user v.1.0.1 -->
#
#------[ DIY INSTRUCTIONS ]-----------------------------------
#
# Tip : These are manual instructions that cannot be performed automatically.
#       You should follow these instructions carefully.
#
 At the Administration Control Panel "Purge" the cache.
#
#------[ SAVE/CLOSE ALL FILES/UPLOAD/ENJOY !!! ]--------------------------------
#
# EoM
#
# You have finished the installation for this MOD.
# Upload all changed files to your website.
# If the installation went bad, simply restore your backed up files.
#
# EoF
# ..:: -= END =- ::..
Good Luck & Happy phpBB`ing !!! :mrgreen:
User avatar
MGadAllah
Registered User
Posts: 1062
Joined: Sat Sep 01, 2007 6:50 pm
Location: EGYPT - Cairo
Name: Mohamed GadAllah

Re: ACP Add User MOD

Post by MGadAllah »

Hi,
I've just installed it in my new board 3.0.4 and edited the code to display the password and everything working perfectly.
Would you like to know more about ISLAM ?
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: ACP Add User MOD

Post by eyesociety »

I have downloaded this mod dumped the files into my /store/mod directory then to my forum and automod clicked the install said every think was installed.

then followed this text. Navigate to:
Administration Control Panel > System > Module Management :: Administration Control Panel > Users > Groups > Users
Select “Add User Account” from the Module drop-down menu and click “Go”.
Then click “Enable” on the Module.
Browse to ACP > Users & Groups > Add Users and confirm install!

but cannot find the menus in red. my forum is version 3.0.4 :?:
User avatar
MGadAllah
Registered User
Posts: 1062
Joined: Sat Sep 01, 2007 6:50 pm
Location: EGYPT - Cairo
Name: Mohamed GadAllah

Re: ACP Add User MOD

Post by MGadAllah »

eyesociety wrote:but cannot find the menus in red. my forum is version 3.0.4 :?:
What menus in red you are talking about?
Would you like to know more about ISLAM ?
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: ACP Add User MOD

Post by eyesociety »

these are the instructions to follow
User avatar
MGadAllah
Registered User
Posts: 1062
Joined: Sat Sep 01, 2007 6:50 pm
Location: EGYPT - Cairo
Name: Mohamed GadAllah

Re: ACP Add User MOD

Post by MGadAllah »

Can you see the link in the left side?
Would you like to know more about ISLAM ?
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: ACP Add User MOD

Post by eyesociety »

No there is no option to add a user account
I have messed it up 6 times now trying to get it to work.

I know the mod is installed.
User avatar
mej284
Registered User
Posts: 1126
Joined: Fri Nov 02, 2007 11:38 am

Re: ACP Add User MOD

Post by mej284 »

eyesociety wrote:I have downloaded this mod dumped the files into my /store/mod directory then to my forum and automod clicked the install said every think was installed.

then followed this text. Navigate to:
Administration Control Panel > System > Module Management :: Administration Control Panel > Users > Groups > Users
Select “Add User Account” from the Module drop-down menu and click “Go”.
Then click “Enable” on the Module.
Browse to ACP > Users & Groups > Add Users and confirm install!

but cannot find the menus in red. my forum is version 3.0.4 :?:
Follow this Navigation
Administration Control Panel > System > Module Management :: Administration Control Panl > Users and Groups > Users
I do not respond to unsolicited PM's

Skin-lab styles
SubMerged Style
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: ACP Add User MOD

Post by eyesociety »

Hi
Sorry i have been threw every list but cannot find users and groups > users.

Please see attached image
You do not have the required permissions to view the files attached to this post.
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 »

You need to go to the USERS AND GROUP TAB at the top

an THEN you will see it on the left column
Last edited by DragonMaster1 on Mon Dec 29, 2008 1:40 pm, edited 1 time in total.
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: ACP Add User MOD

Post by eyesociety »

Still no option to set. THIS MOD DOES NOT WORK for me.
I wish i could give you permission to enter my forum with admin rights so you could check it out.

I used automod to install the mod and it does say its installed.
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Re: ACP Add User MOD

Post by Gremlinn »

The only thing need for this mod is to put the files in place. Then add the modules to the ACP. Add the modules anywhere you would like them.
frost702
Registered User
Posts: 14
Joined: Thu Dec 04, 2008 3:19 pm

Re: ACP Add User MOD

Post by frost702 »

So what is the finial way to get the password mod working? I have updated and copied over all files, is there more editing that I need to do?

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