• Resolved badkarma9000

    (@badkarma9000)


    Hi-

    I’m using WP 1.5.2

    I’ve edited my wp-register.php file to include “first name” and “last name” fields as a requirement.

    However, the info that users put in those fields does not seem to carry over into the profile page, (profile.php located in the admin folder)… Yet clearly the login name does… What function causes the profile.php page to recall the user login… I’d like to apply that function to the “first name” and “last name” fields.

    Thanks,
    Eric

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter badkarma9000

    (@badkarma9000)

    Nevermind, figured it out…

    It’s actually lines of code in the wp-register.php file that passes it on to profile.

    Hi bK9000,

    What did you figure out with this?

    I’m trying to do the same and having problem…

    Thread Starter badkarma9000

    (@badkarma9000)

    I changed the stuff around line 73 to feature the firstname and lastname stuff… I changed it to:

    $result = $wpdb->query(“INSERT INTO $wpdb->users
    (user_login, user_pass, user_nickname, user_email, user_ip, user_browser, user_registered, user_level, user_idmode, user_nicename, user_firstname, user_lastname)
    VALUES
    (‘$user_login’, MD5(‘$password’), ‘$user_nickname’, ‘$user_email’, ‘$user_ip’, ‘$user_browser’, ‘$now’, ‘$user_level’, ‘nickname’, ‘$user_nicename’, ‘$user_firstname’, ‘$user_lastname’)”);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Profile.php — Calling previously entered info’ is closed to new replies.