News:

Wondering if this will always be free?  See why free is better.

Main Menu

Register.php problem - changing realName

Started by jfh, February 15, 2006, 10:22:53 PM

Previous topic - Next topic

jfh

In Register.php  I'm having what has to be a simple problem modifying this section:


// Some of these might be overwritten. (the lower ones that are in the arrays below.)
$register_vars = array(
'memberName' => "'$_POST[user]'",
'emailAddress' => "'$_POST[email]'",
'passwd' => '\'' . md5_hmac($_POST['passwrd1'], strtolower($_POST['user'])) . '\'',
'posts' => 0,
'dateRegistered' => time(),
'memberIP' => "'$user_info[ip]'",
'is_activated' => empty($modSettings['registration_method']) || (!isset($_POST['emailActivate']) && $user_info['is_admin']) ? 1 : 0,
'validation_code' => !empty($modSettings['registration_method']) && $modSettings['registration_method'] == 1 ? "'$password'" : "''",
'realName' => "'$_POST[user]'",
'personalText' => '\'' . addslashes($modSettings['default_personalText']) . '\'',
'im_email_notify' => 1,
'ID_THEME' => 0,
'ID_POST_GROUP' => 4,
'first_name' => "'$_POST[first_name]'",
'last_name' => "'$_POST[last_name]'",
);


For the life of me, I can't figure out how to modify 'realName' => "'$_POST[user]'",
so that I can get realName to be first_name, last name.

Tired of getting parsing and database errors when all I want to do is make a user's default display name first+last ...

Thanks in advance for any help.

Advertisement: