Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.6
Component:
user data
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 16:04 UTC
Updated:
1 Oct 2009 at 08:04 UTC
The Realname module enable users to choose a "nickname" for display instead of the Drupal username. According to the author, it is easy for other modules to be compatible with it, just "use theme('username', ...) rather than just grabbing the user name from some object".
I find that in views, if you check "Link this field to its user or an author's homepage", then it will display the Realname. Otherwise it displays Drupal username.
I hope you can fix it so that it is possible to display Realname without linking to the user's homepage.
Many thanks!
Comments
Comment #1
merlinofchaos commentedThat would be a job for realname module, not Views.
Comment #2
BettyJJ commentedWell, according to the author of Realname module, use theme('username', ...) is the Drupal way.
Besides, views is inconsistent in itself. Why is the name displayed differently with and without a linking?
For example, say, my username is BettyJJ and I set my Realname to be Lulu. Views displays me as BettyJJ if it is plain text and as LuLu if it's linked to my user page. What's the logic?
Comment #3
merlinofchaos commentedWhen it's a link, it goes through theme('username'). Since I cannot order a theme('username') not to provide a link, I cannot use theme('username') for that purpose, and instead just display the username. In core, this provides the same name, so this works nicely. Since realname module is changing the behavior of theme('username') and the result of it no longer matches the database, this is the cause of the inconsistency you see.
Therefore, you need realname module to provide the ability to get a username without a link. In an ideal world, it would provide this data as a field to Views. Since the author of the realname module has stated under no uncertain terms that she does not like working with Views, I would not expect that she will implement this for you, but that's not my decision, nor my problem.
Comment #4
BettyJJ commentedThank you very much.
I think the realname module contributors want to work with views, too. There is a patch that is said to be able to provide the realname data as a separate field to views (http://drupal.org/node/391666), but it does work for me... Now I have put some nasty code in views to make it temporarily fit my needs. Hope some better solution come out sooner or later...