Discourse Avatar name_first_letter

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.

https://github.com/pfaffman/discourse-avatar-name-first-letter

Install like any other plugin.

10 Likes

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

1 Like

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.

1 Like