0

I am building a Drupal 7 site, and using the Hybridauth module. On my site, users can register with Facebook and Twitter (through the Hybridauth module), or regularly through the registration form.

When I am using a view, and add the field "User: Name", if the user registered through Hybridauth, it will show the full name; if the user registered on the site, and entered the full name in two dedicated fields, the view will show only the first name.

How can I present always the full name in both the cases?

1

It seems the hybridauth module passes the username trough a hook before output an if the user is registered through hybridauth,
You should be able to get your desired outcome by also using the Real name module which Hybridauth seems to integrate with.

| improve this answer | |
  • Thanks. I have the real name module. My problem is that I need one field, that I will chose in views, that will present the full name, regardless the way the user registered to the site (hybridauth or core registration form). Do you think you can help me solve this issue? – EB84 Mar 23 '14 at 15:44
  • Use username as a field in view. – Rupesh Mar 23 '14 at 15:50
  • Did that. When the user registered with hybridauth it present the full name (first name + last name). But, when the user registered with the core registration form, it present what ever he wrote on the user name field. I want it to present the first name + last name.. – EB84 Mar 23 '14 at 16:02
  • There should be a setting for this in the realname module. drupal.org/files/project-images/screenshot_0.png – 2pha Mar 24 '14 at 0:09
1

You have to use Real Name module and configure real name at admin/config/people/realname enter image description here

after that you have to configure HybridAuth at admin/config/people/hybridauth enter image description here

And now Use username as field in view .

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.