Closed (fixed)
Project:
Real Name
Version:
7.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 08:17 UTC
Updated:
23 Feb 2012 at 15:00 UTC
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
Comment #1
ellen.davis commentedDid 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.
Comment #2
somatics commentedI 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]Comment #3
ellen.davis commentedHow 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
Comment #4
dave reidComment #5
somatics commentedSo, 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.
Comment #6
ellen.davis commentedI 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.