Closed (fixed)
Project:
Real Name
Version:
6.x-1.0-beta
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Oct 2008 at 09:37 UTC
Updated:
23 Oct 2008 at 19:44 UTC
I have set realname to override username theme and to show realname in nodes. But - for comments on the nodes I still see the username. It would be great if that could also be overwritten :)
Comments
Comment #1
lomz commentedOn my site it is working, have you download the last version?
Comment #2
chrissearle commentedYes - I have the latest (well - latest build - haven't tried a CVS checkout yet).
You can see here: http://www.speidermuseet.no/blog/hvem-er-denne-karen
The blog post byline and breadcrumb give the full name. Down at the bottom - there are a set of 5 comments - "Sendt inn av ..." shows the login name - not the full name of the user.
Comment #3
lomz commentedBoth the blogarticle and the comments by the same author shows carsten.hp
Comment #4
chrissearle commentedI'm confused - here is what I see:
Top of post:
http://img.skitch.com/20081014-f1ys9ni14wyrbs49pc9n7k5ac5.png
Bottom of post:
http://img.skitch.com/20081014-qgn4p4sm3fd5ac5b63mha39keq.png
I see Carsten Pihl on all post points and in the breadcrumb but carsten.hp (and chris) in the comments.
So - a bit more digging.
I ran cron - and now - anonymous only sees the login name.
If I log in - I get the full name for the post but not the comments.
So - now I have two problems :) One is the original one the other I suspect to be a permissions issue somewhere :)
Comment #5
lomz commentedI actually have the same problem I just realised
Comment #6
bwicksall commentedI'm running Drupal 6.5 and usernames are not being overridden for comments.
Comment #7
chrissearle commentedOK - anon not seeing it in breadcrumb and node - that was me. It helps if anon has the "Use RealName" permission :)
But - comments - no. Logged in or not.
Comment #8
chrissearle commentedlomz - ref #1 - which exact version did it work for you with? I can't see anything in the 6.x-1.0 referring to comments - so I just wondered.
Comment #9
bwicksall commentedOk, I see why it's not working. The comments are handled in the theme code (realname_theme.inc).
The problem is this section:
For me the problem is the "$object->realname = $object->name;" line. If I comment that out my comments work. "realname" has already been set but the logic in the if statement resets it to "name"
Comment #10
chrissearle commentedif ($object->uid && !$object->realname && user_access('use realname')) {}Trying to work out how you come into the else.
One of
We know that you have access - the node is working
I find #2 there odd. If $object->realname is set then you go into the else and unconditionally set it back to uid from what I can see?
Comment #11
lomz commentedI use the 6.x-dev
Comment #12
nancydru@bwicksall: I believe you are right, that code should not be there.
Comment #13
nancydruFix committed to both branches.
Comment #14
lomz commentedNot able to see the difference
Comment #15
lomz commentedSee #320546: Remove the (not verified) from anonymus users
Comment #16
lomz commentedI commented out the part that makes trouble:
It still doesnt override in comments.
Comment #17
bwicksall commentedThanks, the dev version appears to be working as expected on my version 6 site.
Bob
Comment #18
nancydru@lomz: Did you try the -dev version? Did you clear your cache? As you can see bwicksall also sees it working.
Comment #19
lomz commentedIt works
Comment #20
nancydru