I hope this isn't the dumbest question about this module ever, but I have installed the Real Name module, and it has done nothing: All the user names shown -- on nodes, where an author is displayed and similar, on views where I have a field for a user, etc. etc., it still just shows the standard user name, even though I've set the Real Name to be FirstNameProfileField LastNameProfileField.

I can't find any other settings or permissions, nor any documentation about what else I might need to do. Is this a bug or something I'm setting incorrectly?

Comments

ellen.davis’s picture

Did you populate these fields? I set RealName to use [user:field_firstname] [user:field_lastname], but I noticed the standard username is displayed if firstname and lastname is not entered for a particular user.

somatics’s picture

I double checked my own account and a few others -- those fields are populated, but not replacing the user name as they should.

FYI, here's the exact token code I set in the RealName module settings:

[user:profile-namefirst] [user:profile-namesurname]

ellen.davis’s picture

How did you add the fields?
I went to configuration / people / account settings / manage fields and added fields for firstname and lastname.

Then populated the fields at user/uid-num/edit

dave reid’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Fixed
somatics’s picture

So, I've been using the profile fields, at Configuration / People / Profiles. I added these to the site in Drupal 6 I think. I'm assuming these were somehow supposed to get converted into fields for the new fields paradigm in Drupal 7; do you know if that's true? If so, it appears that perhaps they failed to be converted. I know this issue may be strictly speaking outside the scope of the RealName module, but given that these are the elements within Drupal that it interacts with, perhaps you have some idea about what's going on here.

ellen.davis’s picture

I did a test. I setup a drupal 6 site with realname and firstname,lastname as profile fields. I setup a user and populated the firstname, lastname fields. I created a story node and it displayed correctly. I then updated to drupal7, installed realname and token, and ran update.php. I went to admin/config/people/realname to set the realname pattern to [user:profile-firstname] [user:profile-lastname] by choosing the tokens. THe story node I created in drupal6 still displays the firstname and lastname correctly.

So, it seems it should work fine.

You might try disabling AND uninstalling the realname module. Then enable it again. But note, uninstalling will delete all the data for realname in MySQL. So, you may want to backup your database first. Then, install realname again. I've done this for other modules before, and it seems to help clean up some issues.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.