Closed (fixed)
Project:
Real Name
Version:
6.x-1.0-beta
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Jun 2008 at 19:57 UTC
Updated:
15 Sep 2008 at 17:03 UTC
I'm sure this would be easy to code. I still have problems trying to follow other people's code tho.
What I would like is if there was an option to either use the username, the realname, or both
What I would LOVE is the option to select which of those options is used per user based on roles!!
that might be a little harder
btw thanks again for the support earlier Nancy ;-D
Comments
Comment #1
nancydruIf there is nothing in the fields to construct the realname, then the username is used.
What happened to the optional nickname idea?
I think I could add a new permission (e.g. "use realname") and do a simple user_access call.
Does that sound reasonable?
Comment #2
SarnXero commentedThat would have it display the user's Username and Realname fields on their posts and comments?
Also, how difficult would it be to have the option for it to just show usernames for certain roles, just realnames for another role, and both user name and realname for a third role?
Just getting it to show username and realname tho would be pretty nice though! ;-D
Comment #3
nancydruShowing both at the same time is not really why I created this module. The permission check would switch between them; that is, if you have the permission, you see the realname and if you don't have it, you get username.
Comment #4
wojtha commentedsarn: You can display both just with overiding the theme_username, $account->name is the username and $account->realname is the realname ...
Displaying based on roles is not-so-easy ... You have to make your (little) custom module for that or just fork this module ...
Comment #5
nancydruOkay, the permission "use realname" is there. Only roles with that will see the realname. You may need to re-login and clear the caches to see the full effect.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.