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

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

If 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?

SarnXero’s picture

That 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

nancydru’s picture

Showing 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.

wojtha’s picture

sarn: 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 ...

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Postponed (maintainer needs more info) » Fixed

Okay, 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.