Closed (fixed)
Project:
Real Name
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2008 at 21:58 UTC
Updated:
27 Dec 2010 at 13:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
nancydruI used "user: name" with the option to link to the user and you can see what happened in the attached snap shot.
Comment #2
ZippySLC commentedThat's how I have mine configured as well.
Comment #3
nancydruDo you have "Override username theme" enabled?
Comment #4
ZippySLC commentedYes. Additionally I also disabled and re-enabled both modules, unchecked "override username theme", saved the config, and then rechecked it and resaved.
Comment #5
nancydruI am using Views 6.x-2.2 and the most current RealName. As you see in my attached screen shot above, it is working on my system.
Comment #6
ZippySLC commentedWell, as you can see from my screenshots, it's not working for me.
I'm just going to have views display "Profile: Full Name" and not care about the link to the authors profile.
Comment #7
nancydruAre you sure you're using the latest -dev code?
Comment #8
ZippySLC commentedI had tried both the -dev code and the stable code. Same experience with both.
Comment #9
nancydruPlease open an issue against Views asking them to use
theme('username',...). Then RealName will intercept it and show the Real Name.Comment #10
ahaapaka commentedI just experienced the same problem with Views 6.x-2.3 and Realname 6.x-1.1.
However my problem suddenly disappeared... I had an existing view (created before installing the Realname module). When I updated several view settings and after saving them the problem disappeared. I'm very sorry but I don't remember all settings I changed, but I remember that I did rescan template files (Basic settings -> Theme: Information -> Rescan template files).
Comment #11
JamesAn commentedI can confirm ahaapaka's solution, using the same version modules: Views 6.x-2.3 and Realname 6.x-1.1
Just by pressing Rescan template files, the views picked up Realname instead of username.
For more information about that Views button, see #271019: "Rescan template files" button. The screenshot in that issue shows you where the button is located in the Views UI.
Can we consider this bug fixed?
Comment #12
nancydruComment #13
gausarts commentedSorry to reopen, this is the closest issue I have.
I am pulling user picture and username, the views fine with the realname displayed as expected. Now when I created a custom views template, views-view-field--bla--picture.tpl. It works ok with imagecache, see http://drupal.org/node/362991. But the the hardest part is the attributes. Views seem to ignore theme_username, instead uses the login name when it comes to print its row. Any idea how to fix it? Thanks
Comment #14
roball commentedI don't understand why you need any functionality of the RealName module for views.
Comment #15
gausarts commentedI have a concern to hide login name from public, instead use realname for the entire public view. This in return makes realname acts as public or display name. Login name is for the user and site internal usage only. Hope that makes sense. What do you think?
Comment #16
gausarts commentedI can make it work with user_load, but with a single field, I doubt if this is the best way.
Here is the revised code from the above link:
Any suggestion to make it work without user_load? Thanks.
Comment #17
nancydruIn Views, when you select "user: name" there is a check box to "Link this field to its user." If you select that, it should use theme_username.
Comment #18
roball commentedgausarts, I am also using RealName to hide login names from the public and I have also set up a public user view (see https://www.iseki-food.net/drupal/board) that lists some users by their real name. I did not need any of RealName's functionality for this - that's why I am wondering why you do.
Comment #19
gausarts commentedHi,
I did check the box, and as as I said it works fine when views displays it directly (out of the box) on the page, realname shows fine. But the problem comes when I need to give a certain different size and that's why I need to do some override from the default imagecache preset settings. I have to create a specific template for that particular need with particular override. And putting regular call to $row->users_name didn't reflect the realname, it falls back to login name.
There seems to be inconsistency when it comes to template override.
Hope I can make myself clear with that particular situation. Any hint? Thanks
Comment #20
nancydruHave you opened an issue with Views? If so, please post the issue number here so we can track it.
I am not a Views expert by any stretch of the imagination. I have never attempted a template override.
Comment #21
dicreat commentedI have strange situation with Realname module and Views.
I'm using Views to listing recent comments on my site:
author (with link to user profile) -> title of comment (with link to comment)
If option "Override username theme" on Realname module configuration page are enable, then some authors in this listing don't have correct link to profile - only link to main page of site with title "View user's home page.". It's very strange, because on one page I see one author with correct link and with wrong link. If I turn off option "Override username theme", all links are correct.
Comment #22
nancydruI think I need to double check that setting. I don't think "Override username theme" actually does much any more. There is another issue on where the username links to; that is probably the result of no longer doing user_load.
Comment #23
dicreat commentedI was enable "Overwrite user fields in view to show realnames" (this options was set successfully after applying patch from issue #462860: "Overwrite user fields in view" variable not setting in admin page) and I'm still have problem with Views type 'Comment': link to comment author's profile page was replacing with empty value. I thinks, it is because in Views I was enable option "Link this field to its user or an author's homepage" (works fine without Realname module) and Realname module in function realname_username at line 84 (realname_theme.inc) think, that $object->homepage is set and they try to replace comment author's profile link to comment author's website link.
I was change manually default value of 'homepage' to 'FALSE' in function realname_username at line 37 and its temporary solve my problem.
Comment #24
BettyJJ commentedI find that if in views, you check "Link this field to its user or an author's homepage", then it will display the realname. Otherwise it displays drupal username.
Is it possible to display realname without linking to its user homepage?
I have submitted a feature request to the Views module: http://drupal.org/node/591228
Comment #25
nancydruI just applied #579040: Some bugfixes, which has some Views fixes. Please try the new -dev version when it rolls out later today.
Comment #26
brad.bulger commentedi was seeing the same issue as @dicreat in #23 - the comment author name url was an empty string when they had no explicit homepage set.
i am fairly sure it's because isset("") tests as TRUE and views is giving you an empty string for the homepage value. i changed the test of the homepage to !empty() in realname_theme.inc and the author name links to the user's account page now.
Comment #27
nancydruCommitted to 6.x-1.x-dev.
Comment #29
mizerydearia commentedRealname doesn't seem to work for views of type "Ubercart Orders" which is packaged with uc_views module specifically when adding a field for "User: Name"
I posted to this thread since it is related issue.
Comment #30
nancydruIt is likely that it is not set up to use theme('username').
Please do not mark a "closed(fixed)" issue as needs review; open a new issue.