- Code: Select all
// define a "dummy user", the profile settings of this user, will be used as default settings for new users
define('DEFAULT_USER_ID', 2);
I have found 2 issues that may have to do with this. In the install instructions it says
- Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$user_id = intval($HTTP_POST_VARS['id']);
#
#-----[ REPLACE WITH ]------------------------------------------
#
$user_id = ($new_user) ? $user_id : intval($HTTP_POST_VARS['id']);
I also have the Attachment MOD (2.3.9) installed and it also insert a line within the same nested if clause(a bit above)
- Code: Select all
if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) || isset($HTTP_GET_VARS[POST_USERS_URL]) || isset( $HTTP_POST_VARS[POST_USERS_URL]) ) )
{
attachment_quota_settings('user', $HTTP_POST_VARS['submit'], $mode);
//
// Ok, the profile has been modified and submitted, let's update
//
if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) || isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) )
{
//$user_id = intval($HTTP_POST_VARS['id']);
$user_id = ($new_user) ? $user_id : intval($HTTP_POST_VARS['id']);
if (!($this_userdata = get_userdata($user_id)))
{
I may also note that I set a new passwd and add an emailaddress before submit the form.
Talking about email, it would be nice with an option to send out an email to the added user with account info and some welcome phrase. I saw this line in the MOD code
- Code: Select all
//send out email notification goes here

