Feature #5289
closed
Add Initials to options in 'User Display' settings
Added by Simon Pickles almost 16 years ago.
Updated 17 days ago.
Description
Please could I request an option for Initials option in User Display? Use of Initials is a normal business model for fast identification.
Especially useful would be to add middle names to help uniqueness. Eg SDSP in my case, not just SP
I already treated (or not for that matter, as the OP never replied it seems) a similar question over on the forum, so if you feel comfortable maintaining a small code change on your redmine until this gets in stable, head there.
Felix Schäfer wrote:
I already treated (or not for that matter, as the OP never replied it seems) a similar question over on the forum, so if you feel comfortable maintaining a small code change on your redmine until this gets in stable, head there.
Hi, I had a look at the forum link but I don't see any instructions for code changes. Could you give me directions? Thanks
If the login name is your initials, then you can do this by going to Administration-->Settings-->Display-->Users display format and selecting the login name.
Eric Thomas wrote:
If the login name is your initials...
This had occurred to me, but I am reluctant to ask all our users to switch login names!
Simon Pickles wrote:
Hi, I had a look at the forum link but I don't see any instructions for code changes. Could you give me directions? Thanks
Add a new line to USER_FORMATS in source:trunk/app/models/user.rb#L28, for initials e.g. something like :initials => '#{firstname[0,1]}.#{lastname[0,1]}.', (or :initials => '#{(firstname + " " + lastname).split(/-|\s/).collect{ |x| x[0,1] + "." }.join},' if you want to handle names with spaces and/or dashes in them), that should give you an added option in the display settings that shows the first character of the first and last name with dots (i.e. F.S. for me).
Please note that you will probably need to restart your rails server for this change to take effect, and that I have only quickly tested the string handling stuff in the second proposal but not in an actual redmine.
EDIT: Forgot a , at the end of the second solution.
- Status changed from New to Closed
- Resolution set to Duplicate
In Redmine 6.1.0, the Initials icon is now displayed by default (#29824).
Also, if Gravatar icons are enabled, you can now select "Initial" as the default icon for users who have not registered a Gravatar icon (#42623).
- Is duplicate of Feature #29824: Add user initials when Gravatar is disabled added
- Related to Feature #42623: Adds initials to the list of default Gravatar options added
Also available in: Atom
PDF