# 顶级贡献者排行榜不显示用户名

**URL:** https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416
**Category:** Support
**Tags:** top-contributors-sidebar
**Created:** [2023年七月24日 18:59 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416 "2023-07-24T18:59:09Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Joe\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_nguyen/32/336657_2.png) [@Joe\_Nguyen](https://meta.discourse.org/u/Joe_Nguyen)
#### Post date: [2023年七月24日 18:59 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/1 "2023-07-24T18:59:09Z")

</div>

您好！有人在使用“顶级贡献者”组件时遇到问题吗？它不显示用户的个人资料照片和用户名。这会不会是 bug？我尝试卸载并重新安装了该组件。

 ![Screenshot 2023-07-24 115420](https://global.discourse-cdn.com/meta/original/4X/0/9/c/09c7884c08829cd4b22177ea5e47dd3eaa309221.png)

---

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [2023年七月25日 04:14 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/2 "2023-07-25T04:14:42Z")

</div>

我也一样。我刚试了一下，但它甚至没有显示出来：[SailPoint Developer Community - Learn. Build. Connect.](https://developer.sailpoint.com/discuss/?preview_theme_id=101)

---

<div class="post-metadata">

### Author: ![Joe\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_nguyen/32/336657_2.png) [@Joe\_Nguyen](https://meta.discourse.org/u/Joe_Nguyen)
#### Post date: [2023年八月14日 20:45 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/3 "2023-08-14T20:45:18Z")

</div>

@meghna 我该如何解决这个问题？

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年八月15日 02:13 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/4 "2023-08-15T02:13:00Z")

</div>

~~此TC目前无法正常工作，因此暂时添加了broken标签。~~

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年八月16日 06:16 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/5 "2023-08-16T06:16:38Z")

</div>

现在这个组件似乎可以正常工作了。我在我的论坛上用 Chrome、Firefox 和 Safari 进行了测试。🙂

 ![IMG_0186](https://global.discourse-cdn.com/meta/original/4X/3/1/f/31f27e5d2109d6f72aee2569e5fcad2f661057e3.jpeg)

我没有在存储库中看到任何更新，所以也许是核心的最近一些更改修复了它。🤔

谢谢团队！

---

<div class="post-metadata">

### Author: ![Joe\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_nguyen/32/336657_2.png) [@Joe\_Nguyen](https://meta.discourse.org/u/Joe_Nguyen)
#### Post date: [2023年八月16日 17:14 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/6 "2023-08-16T17:14:39Z")

</div>

您好 @Lilly，此组件仍有问题。我在 Chrome、Firefox、隐身窗口和隐私窗口中进行了测试。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年八月16日 17:15 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/7 "2023-08-16T17:15:38Z")

</div>

它可能与另一个主题冲突。尝试从组件预览它。

您的 Discourse 版本有多新？

---

<div class="post-metadata">

### Author: ![Joe\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_nguyen/32/336657_2.png) [@Joe\_Nguyen](https://meta.discourse.org/u/Joe_Nguyen)
#### Post date: [2023年八月16日 17:18 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/8 "2023-08-16T17:18:15Z")

</div>

在组件中预览时结果相同。它在 Discourse 版本中是最新的。 🙂 🤔 我会继续深入研究。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年八月16日 17:22 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/9 "2023-08-16T17:22:40Z")

</div>

您已启用它吗？

我的设置

 ![IMG_0190](https://global.discourse-cdn.com/meta/original/4X/9/1/c/91cb16a92e8e046dbf981d94246c7b0c23dbe3c9.jpeg)

预览

 ![IMG_0191](https://global.discourse-cdn.com/meta/original/4X/4/d/b/4db672697fd0f80fe1613a42254f97bd71377427.jpeg)

---

<div class="post-metadata">

### Author: ![Joe\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_nguyen/32/336657_2.png) [@Joe\_Nguyen](https://meta.discourse.org/u/Joe_Nguyen)
#### Post date: [2023年八月16日 17:24 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/10 "2023-08-16T17:24:39Z")

</div>

它已启用。我会尝试调整设置。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年八月16日 17:24 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/11 "2023-08-16T17:24:42Z")

</div>

您的 Discourse 是否已更新到最新的稳定版或测试版？

---

<div class="post-metadata">

### Author: ![Joe\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_nguyen/32/336657_2.png) [@Joe\_Nguyen](https://meta.discourse.org/u/Joe_Nguyen)
#### Post date: [2023年八月16日 17:29 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/12 "2023-08-16T17:29:59Z")

</div>

Discourse 已更新至最新版本。有些显示用户名，但有些是空白的。我会继续查看。谢谢，@Lilly！

 ![Screenshot 2023-08-16 102546](https://global.discourse-cdn.com/meta/original/4X/f/1/8/f1814cc63dd599b654cb484f4d363a7fe0acb64c.png)

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [2023年八月17日 11:30 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/13 "2023-08-17T11:30:13Z")

</div>

您好，请问这是主题组件的fork或修改版本吗？我之所以这么问，是因为据我所知，它只显示6个用户，而不是像您的截图那样显示那么多。🤔 控制台有错误吗？如果您的网站是公开的，可以分享您的网站网址吗？

---

<div class="post-metadata">

### Author: ![Joe\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_nguyen/32/336657_2.png) [@Joe\_Nguyen](https://meta.discourse.org/u/Joe_Nguyen)
#### Post date: [2023年八月17日 16:46 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/14 "2023-08-17T16:46:09Z")

</div>

您好 @Don，这是论坛链接：[General - Forums](https://forum.vyos.io/c/general/8)。我可以卸载该组件然后重新安装。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年八月17日 16:49 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/15 "2023-08-17T16:49:08Z")

</div>

看起来被分叉了，或者真的不对劲。你能检查一下组件的来源，确保它是正确的存储库吗？该组件以前被分叉过，所以请确保你使用的是[正确的那个](https://github.com/discourse/discourse-top-contributors-sidebar)。

哦，我的…… 🤔

 ![console_errors](https://global.discourse-cdn.com/meta/original/4X/1/4/d/14d4e74e22478794e17f802a469944bd76ae8a13.png)

那里可能有一些组件冲突。但如果你使用的是正确的来源，并且在组件中预览时它不起作用，这让我感到惊讶。

---

<div class="post-metadata">

### Author: ![Joe\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_nguyen/32/336657_2.png) [@Joe\_Nguyen](https://meta.discourse.org/u/Joe_Nguyen)
#### Post date: [2023年八月17日 17:13 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/16 "2023-08-17T17:13:46Z")

</div>

谢谢 @Lilly！我会试试的。

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [2023年八月17日 17:51 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/17 "2023-08-17T17:51:44Z")

</div>

您似乎需要更新您的论坛。

您的论坛上次更新是在 6 月 16 日：  
Discourse 3.1.0.beta5 - [afa6c0a9a423ce995750fd25b1720f96a89e81bd](https://github.com/discourse/discourse/commit/afa6c0a9a423ce995750fd25b1720f96a89e81bd)

核心在 7 月 18 日进行了一次更新：[FEATURE: Add limit and group exclusion to the directory items endpoint](https://github.com/discourse/discourse/pull/22667)

此主题组件在此处使用这些参数：🔽  
`exclude_groups` 和 `limit`

> <https://github.com/discourse/discourse-top-contributors-sidebar/blob/4463ac00e73cdac85ecc9908ece8de5b4adf6139/javascripts/top-contributors-sidebar/connectors/before-topic-list-body/top-contributors-sidebar.js#L8C23-L8C141>

问题是您的论坛无法处理这些参数，因为您的 Discourse 版本比核心中的更改版本要旧。🙂

---

<div class="post-metadata">

### Author: ![Joe\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_nguyen/32/336657_2.png) [@Joe\_Nguyen](https://meta.discourse.org/u/Joe_Nguyen)
#### Post date: [2023年八月17日 17:54 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/18 "2023-08-17T17:54:59Z")

</div>

@Don @Lilly 感谢您的帮助！

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年十二月4日 11:54 UTC](https://meta.discourse.org/t/top-contributors-leaderboard-not-showing-usernames/287416/19 "2023-12-04T11:54:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
