-
Hi,
I selected in UserPro backend “Display name = Full name”
when a users registers using his facebook accounts, everything works ok and in database Display Name is his full name.
but when a users registers manually using UserPro form, Display name is his email address.
I’m doing something wrong?My UserPro settings are
Permalink -> Full Name
Display name -> Full NamePlease help me
Thank you in advance
Tomasops: I previously posted this with the wrong account in the wrong section. Please, delete that post.
You first have to answer us what is Full Name. How does full name creates it self if lets say user don’t use name and last name and it’s blank.
Full Name means = Name + Last Name. What else it can show when there is no such info entered? I just change dmy settings to yours-all works good.
Make Name and last name mandatory fields. Or just name.
That fields are requested in my site registration form.
The problem is:
-> if you create an user with Facebook, display name will be “Paul Smith”
-> if you creare an user manually in UserPro, display name will be @hello.com">paul.smith@hello.com
I really need to solve this, UserPro let you to choice Full Name as permalinks and display name, but that doesn’t seem to work with manual registration..Yes it works. I dont use that stupid facebook in my test website, all users created manually via UserPro registration form. and if u choose Full Name It shows my Name + LastName. IT DOESNT change permalink, only display text.
Can you go to WP user managment and make sure that user really have Name ANd Last Name fields filled? Maybe you changed Name and Last name fields code? Those fields MUST be first_name, last_name.
The display name will be his email address if he does not have a FB username or name, UserPro chooses email as display name. here’s the code:
PHP12345678910111213141516171819/* begin display name */if ($name && $name != 'undefined') {$display_name = $name;} else if ($first_name && $last_name && $first_name != 'undefined' && $last_name != 'undefined' ) {$display_name = $first_name . ' ' . $last_name;} else if ($email) {$display_name = $email;} else {$display_name = $username;}if ($display_name) {if ($userpro->display_name_exists( $display_name )){$display_name = $userpro->unique_display_name($display_name);}$display_name = $userpro->remove_denied_chars($display_name);wp_update_user( array('ID' => $user_id, 'display_name' => $display_name ) );update_user_meta($user_id, 'display_name', $display_name);}Ok, when you create an account manually, the display name will be his username if he didn’t provide display name. You can try it here.
PHP123456$display_name = $username;if ($this->display_name_exists( $display_name )){$display_name = $this->unique_display_name($display_name);}wp_update_user( array( 'ID' => $user_id, 'display_name' => $display_name ) );update_user_meta($user_id, 'display_name', $display_name);Hi Ahmed and thanks for your answers,
my problem is
– User register manually with UserPro. He has to insert First Name, Surname, Mail, Password
– then his display_name is his email address
Also checked is mysql and display_name is email address.
If user create profile with Facebook login, everything works as it’s supposed to doBut that’s not how its supposed to work. Try to register a new account here (manual) and do not provide a display name…
Wait, do you ask for his username during registration? Or not?
SO maybe user entered in Display Name field his email, so that’s why you see email. I don’t think that USERpro changes display name field, it only uses some fields depending on settings, that’s it.
Display name = nickname in registration.
No, I’m asking only First Name and Surname.
User can’t change/insert his username or display name.
Nether in registration or in profile editI start to find why, you do not ask the users for their username right? So their email address is automatically assigned as their USERNAME, and therefore also display name becomes username (which is email) YEA that’s it!! 🙂
Makes sense..
Then that’s why 😀 So basically..
no username, so up registers him with EMAIL (not username)
-> automatic -> display name not filled = display name = username = EMAIL
See? 🙂
You must be logged in to reply to this topic.