# Improve the user onebox in Discourse

**URL:** https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087
**Category:** Feature
**Tags:** onebox
**Created:** [30.Июль.2016 11:45:18 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087 "2016-07-30T11:45:18Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [30.Июль.2016 11:45:18 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/1 "2016-07-30T11:45:18Z")

</div>

User onebox is a bit thin on data per:

> **[@sam](https://meta.discourse.org/users/sam)**
>
> Co-founder Civilized Discourse Construction Kit. 
> Twitter: @samsaffron 
> Blog: samsaffron.com

We should improve it so it has some more data from the user card.

---

<div class="post-metadata">

### Author: ![maja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maja/32/129533_2.png) [@maja](https://meta.discourse.org/u/maja)
#### Post date: [14.Декабрь.2017 21:42:38 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/2 "2017-12-14T21:42:38Z")

</div>

I have been looking at this. Improving user onebox would require creating a custom template for it, correct?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [14.Декабрь.2017 21:45:39 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/3 "2017-12-14T21:45:39Z")

</div>

> **[@maja](https://meta.discourse.org/u/maja)**

Hmm it is not terrible now, but I guess there are some improvements like possibly emulating a bit of:

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/3/1354c5743d7be772dd9e654c5b6d53635643eb1c.jpg)

Posted, Joined, Read, Location all seem reasonable for the card.

You would need a custom template, yes.

@codinghorror what do you think here?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [14.Декабрь.2017 22:55:12 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/4 "2017-12-14T22:55:12Z")

</div>

Oh I see yes sure the user onebox is pretty weak. Totally fine go for it.

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [21.Декабрь.2017 22:09:38 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/5 "2017-12-21T22:09:38Z")

</div>

Also doesn’t seem to work for all of my users. Example:

[https://se23.life/users/Helen\_Thomson](https://se23.life/users/Helen_Thomson)

[https://se23.life/users/BovillDan](https://se23.life/users/BovillDan)

… but does work for me

[https://se23.life/users/ChrisBeach](https://se23.life/users/ChrisBeach)

Is this [another](https://meta.discourse.org/t/onebox-fail-on-discourse-topic-url/76560/3) problem where there’s no description and Onebox fails to render anything?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21.Декабрь.2017 23:26:58 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/6 "2017-12-21T23:26:58Z")

</div>

That would be my guess, yes.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [22.Декабрь.2017 01:17:49 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/7 "2017-12-22T01:17:49Z")

</div>

In theory we could have the onebox description here be synthesized from the user activity or something. `"member since: 2017-1, 22 posts, last posted yesterday, avid reader`"

The biggest omission there is that it’s not prioritizing “long name” which I think is correct for public shares. It should be “Chris Beach” in the public onebox, weird that the username is there.

---

<div class="post-metadata">

### Author: ![maja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maja/32/129533_2.png) [@maja](https://meta.discourse.org/u/maja)
#### Post date: [26.Январь.2018 20:20:56 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/8 "2018-01-26T20:20:56Z")

</div>

![41](https://global.discourse-cdn.com/meta/original/3X/a/d/adecaa37d51b8feae74075c75a0d5e68077825e4.png)

This is how it looks like with my changes. Thoughts?  
I wonder if it’s really ok to include “posted” and “read recently” since it’s going to be out of date pretty soon after it’s baked?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [26.Январь.2018 23:07:15 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/9 "2018-01-26T23:07:15Z")

</div>

Looks good!

> [@maja](#):
>
> I wonder if it’s really ok to include “posted” and “read recently” since it’s going to be out of date pretty soon after it’s baked?

Yeah, great point, we try to avoid highly time-specific data in oneboxes as they are typically baked only at the time of posting. Perhaps some other stats would be less time dependent here? Join date seems safe enough at least.

---

<div class="post-metadata">

### Author: ![maja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maja/32/129533_2.png) [@maja](https://meta.discourse.org/u/maja)
#### Post date: [29.Январь.2018 23:11:30 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/10 "2018-01-29T23:11:30Z")

</div>

I have added a PR [add a custom user onebox by majakomel · Pull Request #5542 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/5542), slightly different than the screenshot above, without the time specific stats. Other stats that could be relevant (like created posts/topic count) are also changing fast, so I haven’t included them.

 ![32](https://global.discourse-cdn.com/meta/original/3X/7/8/78767d654c14f49d22e64f3f9d63a2751f0b5232.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [29.Январь.2018 23:12:31 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/11 "2018-01-29T23:12:31Z")

</div>

This looks excellent to me! Thanks @maja

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [26.Август.2025 16:40:14 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/12 "2025-08-26T16:40:14Z")

</div>

Только что снова наткнулся на это и провел быстрый тест — похоже, однабокс профиля пользователя всё ещё выглядит вполне достойно. Не уверен, насколько активно это будет использоваться в сообществах, но лично я в наши дни вполне доволен, когда мы просто упоминаем пользователей через @, а затем позволяем людям кликнуть по имени пользователя, чтобы открыть карточку пользователя, которая более информативна и функциональна.

> **[@sam](https://meta.discourse.org/u/sam)**
>
> Co-founder Civilized Discourse Construction Kit. 
> Twitter: @samsaffron 
> Blog: samsaffron.com

---

<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: [26.Август.2025 17:12:15 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/13 "2025-08-26T17:12:15Z")

</div>

Да, мне кажется, что можно закрыть эту просьбу о новой функции 👍

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [30.Август.2025 15:00:21 UTC](https://meta.discourse.org/t/improve-the-user-onebox-in-discourse/76087/14 "2025-08-30T15:00:21Z")

</div>

Эта тема была автоматически закрыта через 3 дня. Новые ответы больше не принимаются.
