# Default avatar from Name & not from Username

**URL:** https://meta.discourse.org/t/default-avatar-from-name-not-from-username/21571
**Category:** Feature
**Created:** [10월 28, 2014, 5:52오전 UTC](https://meta.discourse.org/t/default-avatar-from-name-not-from-username/21571 "2014-10-28T05:52:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dbinoj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dbinoj/32/115128_2.png) [@dbinoj](https://meta.discourse.org/u/dbinoj)
#### Post date: [10월 28, 2014, 5:52오전 UTC](https://meta.discourse.org/t/default-avatar-from-name-not-from-username/21571/1 "2014-10-28T05:52:07Z")

</div>

Is there a way with which we can change the generation of default avatar from username to user’s full names?  
Many of our users have numerical usernames or their usernames start with a certain character (like P, R).

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [10월 28, 2014, 10:19오전 UTC](https://meta.discourse.org/t/default-avatar-from-name-not-from-username/21571/2 "2014-10-28T10:19:39Z")

</div>

I don’t think there is any way to do that at this time.

---

<div class="post-metadata">

### Author: ![dbinoj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dbinoj/32/115128_2.png) [@dbinoj](https://meta.discourse.org/u/dbinoj)
#### Post date: [10월 29, 2014, 12:09오후 UTC](https://meta.discourse.org/t/default-avatar-from-name-not-from-username/21571/3 "2014-10-29T12:09:58Z")

</div>

Is there any way we could hack into it? Probably by forking the Discourse repo and merging whenever there is an update? Or can it be achieved by writing a plugin?

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [10월 29, 2014, 2:40오후 UTC](https://meta.discourse.org/t/default-avatar-from-name-not-from-username/21571/4 "2014-10-29T14:40:05Z")

</div>

Maintaining a long term fork is generally discouraged.

Probably you could do this as a plugin or by submitting a PR that adds this option as a Site Setting.

I would start with the latter as its probably easier and likely a pretty small change (though I could be wrong).

Whatever you learn in doing so will be helpful in developing it as a plugin if it’s not accepted into core for some reason.

---

<div class="post-metadata">

### Author: ![dbinoj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dbinoj/32/115128_2.png) [@dbinoj](https://meta.discourse.org/u/dbinoj)
#### Post date: [10월 31, 2014, 1:56오후 UTC](https://meta.discourse.org/t/default-avatar-from-name-not-from-username/21571/5 "2014-10-31T13:56:14Z")

</div>

Any idea/pointers where should I start looking to modify this behavior and add a setting?

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [10월 31, 2014, 2:08오후 UTC](https://meta.discourse.org/t/default-avatar-from-name-not-from-username/21571/6 "2014-10-31T14:08:41Z")

</div>

I would just start grepping the code base for “avatar” and see if you can find where the letter avatar is currently generated…

Then search for “SiteSetting” and see how other site settings are implemented.

If you get stuck, let us know and I can take a closer look.

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [12월 4, 2025, 11:32오전 UTC](https://meta.discourse.org/t/default-avatar-from-name-not-from-username/21571/7 "2025-12-04T11:32:47Z")

</div>


