Muel, are you saying that :
$user_id = wp_create_user( $user_login, $password, $user_email ); needs to be changed to something like
$user_id = wp_create_user( $user_login, $password, $user_email, $user_name, $user_url );
Also, by “-add url-parsing (exists…)” did you mean changing the form to include something like this::
<p><label for=”user_name”><?php _e(‘Namer:’) ?></label>
<input type=”text” name=”user_name” id=”user_name” size=”20″ maxlength=”100″ value=”<?php echo wp_specialchars($user_name); ?>” /></p>
<p><label for=”user_url”><?php _e(‘Web Site:’) ?></label>
<input type=”text” name=”user_url” id=”user_url” size=”20″ maxlength=”100″ value=”<?php echo wp_specialchars($user_url); ?>” /></p>
Well I did this and it worked I also modified registration-functions.php by changing the following code::
This line-
function wp_create_user( $username, $password, $email, = ”) {
global $wpdb;
$user_login = $wpdb->escape( $username );
$user_email = $wpdb->escape( $email );
$user_pass = $password;
$userdata = compact(‘user_login’, ‘user_email’, ‘user_pass’);
return wp_insert_user($userdata);
}
to this-
function wp_create_user( $username, $password, $email, $firstname, $lastname, $url = ”) {
global $wpdb;
$user_login = $wpdb->escape( $username );
$user_email = $wpdb->escape( $email );
$user_pass = $password;
$userdata = compact(‘user_login’, ‘user_email’, ‘user_pass’);
return wp_insert_user($userdata);
}
and this –
function create_user( $username, $password, $email ) {
return wp_create_user( $username, $password, $email );
}
to this-
function create_user( $username, $password, $email, $firstname, $lastname, $url ) {
return wp_create_user( $username, $password, $email, $firstname, $lastname, $url );
}
seems to work, but the form field is still a bit wonky.
I parsed the three new lables the same as the default ones were parsed, and still the form fields are smaller. Why?