Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Can we display FullName + LastName in the online users list instead of user's Login Name? Or setting to toggle between the two?
Comment | File | Size | Author |
---|---|---|---|
#17 | realnamePatch.patch | 3.71 KB | Anonymous (not verified) |
#14 | realname_support-873680-14.patch | 717 bytes | bacon |
#13 | realname_support-873680-13.patch | 717 bytes | bacon |
#10 | realname_support-873680-9.patch | 677 bytes | bacon |
#9 | realname_support-873680-#9.patch | 677 bytes | bacon |
Comments
Comment #1
fenda CreditAttribution: fenda commentedI like the idea, but can you trust all your users to write a full name? if a user didn't fill out those fields on their user profile it would create a bug of blank online users. :O
Comment #2
deven_ CreditAttribution: deven_ commentedWe can trust our users. Infact, we have intranet site and the procedure of new user registration requires mandatory fields. I think in the settings of the module, we can have one checkbox asking the admin to put FullNames ON or OFF... ! !
Comment #3
jmrivero CreditAttribution: jmrivero commentedYou can do this with real name module, then use theme('username', $user, array('plain' => TRUE)) to replace $user->name and any other calls to some user object in the module.
Some lines use $result->name insted of $user->name.
PS: If you find the line that change the name of the other user in the chat box let me know please.
Comment #4
fenda CreditAttribution: fenda commentedReferring back to this, maybe i'm blind but I don't see a First name or last name field on the user account settings for the default drupal 6 install. Only Username.
Are you using another module to allow the input of full names?
Comment #5
jmrivero CreditAttribution: jmrivero commentedYes, the core profile module.
Comment #6
yannickooOr the Content Profile
Comment #7
darklrd CreditAttribution: darklrd commentedThe problem is how to hard-code it. I mean there are no default fields in D6 for this, so every site will have different fieldnames.
Comment #8
jmrivero CreditAttribution: jmrivero commentedYou dont hard-code the fields, but look if the realname module is installed and if it is you theme the user name with a call to theme('username', $user, array('plain' => TRUE)), if its not installed just show the user name. The fields used as first and last name are set in the realname module.
Comment #9
bacon CreditAttribution: bacon commentedI've created a quick little patch that adds realnames to the buddylist if the RealName module is enabled. I'll see if I can improve it to add it to the subpanel and in the chat panel also.
Comment #10
bacon CreditAttribution: bacon commentedI'm trying to attach the patch again. I hope it doesn't show up twice.
Comment #11
darklrd CreditAttribution: darklrd commentedThanks, I will commit it :-)
Comment #12
darklrd CreditAttribution: darklrd commentedI have committed this change to the demonstration/test site. Can someone confirm if its working as intended?
Comment #13
bacon CreditAttribution: bacon commentedI updated the patch to make sure the option in RealName to override the theme function is set.
Comment #14
bacon CreditAttribution: bacon commentedSorry. Having a little trouble today. The previous patch removes the fix. This patch adds the fix.
Comment #15
nikkubhai CreditAttribution: nikkubhai commentedsub
Comment #16
Lukka CreditAttribution: Lukka commentedPatch works good, but only for a main window of chat. Chat window (subpanel) still shows usernames instead of realnames.
Comment #17
Anonymous (not verified) CreditAttribution: Anonymous commentedThis is my patch for the full realName integration