Discourse Avatar name_first_letter


(Jay Pfaffman) #1

This plugin adds the ability to use name_first_letter in site setting external system avatars url.

The default value for external system avatars url is

/letter_avatar_proxy/v2/letter/{first_letter}/{color}/{size}.png.

This plugin allows you to use

/letter_avatar_proxy/v2/letter/{name_first_letter}/{color}/{size}.png

to have the avatar be the first letter of the name rather than username. If there is no name, the username is used.

Install like any other plugin.


Generate Letter Icon from Name instead of Username?
(Christoph) #2

Will this change existing avatars or only those of new users?


(Jay Pfaffman) #3

Anyone that has not created an avatar will have their avatar based on their name rather than their username. And if they subsequently change their name, their avatar letter will change. Everything but letters and numbers are removed. If nothing is left, or name is empty, it reverts to username.