# 如何在右侧边栏组件中显示排行榜？

**URL:** https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581
**Category:** Support
**Tags:** gamification
**Created:** [2022年十一月1日 09:18 UTC](https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581 "2022-11-01T09:18:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Helen22](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helen22/32/271907_2.png) [@Helen22](https://meta.discourse.org/u/Helen22)
#### Post date: [2022年十一月1日 09:18 UTC](https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581/1 "2022-11-01T09:18:25Z")

</div>

如何才能让排行榜插件显示在右侧边栏组件中？我们是不是遗漏了什么？

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/3/d/73da3babc18ee3b174ab3cdb2224db2394e2fcd4.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2022年十一月1日 10:21 UTC](https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581/2 "2022-11-01T10:21:55Z")

</div>

对我来说这似乎不错。 👍 （只要那是您想包含的排行榜 ID 🙂）。在编辑器中保存更改后，您还需要使用绿色的勾号进行保存，我认为这让一些人感到困惑：

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/b/6/9b6eb49d96252ba79bb2cd3342864f5949a3307f.png)

（另外，检查主题组件是否已添加到您的主题中也经常让我感到困惑 🙂）

---

<div class="post-metadata">

### Author: ![Helen22](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helen22/32/271907_2.png) [@Helen22](https://meta.discourse.org/u/Helen22)
#### Post date: [2022年十一月1日 12:21 UTC](https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581/3 "2022-11-01T12:21:47Z")

</div>

是的，我们已经完成了所有这些操作，并且可以看到我们添加的其他块，只是看不到排行榜。

我们认为我们需要更新 Discourse 的版本（目前运行的是 2.9.0.beta9）。

我们还能尝试其他什么吗？

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2022年十一月1日 12:43 UTC](https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581/4 "2022-11-01T12:43:55Z")

</div>

我已经尝试了几种错误的配置来尝试破坏它，但它似乎在我的测试站点上运行良好。我的站点是最新版本（截至今天早上），所以更新您的站点可能会有帮助。 👍

您可以通过其自己的页面访问该排行榜吗？

---

<div class="post-metadata">

### Author: ![Helen22](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helen22/32/271907_2.png) [@Helen22](https://meta.discourse.org/u/Helen22)
#### Post date: [2022年十一月1日 12:45 UTC](https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581/5 "2022-11-01T12:45:31Z")

</div>

好的，我们试试升级看看是否有效 🤞

是的，我们可以通过它自己的页面访问排行榜。

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2022年十一月1日 15:10 UTC](https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581/6 "2022-11-01T15:10:18Z")

</div>

> [@Helen22](#):
>
> 我们认为需要更新 Discourse 的版本（目前运行的是 2.9.0.beta9）。

Discourse 版本本身不影响这一点，但这很可能表明 gamification 插件最近没有更新。该功能在大约过去 10 天内已添加到该插件中。

---

<div class="post-metadata">

### Author: ![Helen22](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helen22/32/271907_2.png) [@Helen22](https://meta.discourse.org/u/Helen22)
#### Post date: [2022年十二月14日 00:07 UTC](https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581/7 "2022-12-14T00:07:33Z")

</div>

我确认升级已成功，我们现在可以在右侧边栏组件中看到排行榜 🥳 🙌

---

<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年一月13日 00:07 UTC](https://meta.discourse.org/t/how-to-show-a-leaderboard-in-right-sidebar-component/243581/8 "2023-01-13T00:07:52Z")

</div>

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