# 设置排行榜日期范围应锁定默认时期

**URL:** https://meta.discourse.org/t/setting-a-leaderboard-date-range-should-lock-the-default-period/260666
**Category:** Feature
**Tags:** gamification
**Created:** [2023年四月5日 14:25 UTC](https://meta.discourse.org/t/setting-a-leaderboard-date-range-should-lock-the-default-period/260666 "2023-04-05T14:25:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Samantha\_O](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samantha_o/32/251273_2.png) [@Samantha\_O](https://meta.discourse.org/u/Samantha_O)
#### Post date: [2023年四月5日 14:25 UTC](https://meta.discourse.org/t/setting-a-leaderboard-date-range-should-lock-the-default-period/260666/1 "2023-04-05T14:25:18Z")

</div>

**详细信息：** 使用 Discourse Gamification 插件时，您可以为特定时间范围创建排行榜（LB）；但是，当您这样做时，默认期间与此时间范围不匹配，并且在排行榜上，您仍然可以切换时间范围并调整排行榜本身的评分。

示例：

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/8/6/086e3463aa0f64a062f781f69821d1152a1b12fb.png)

并且在排行榜本身上，下拉菜单仍然显示，当您选择不同的选项时，它可以改变评分/排名。

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/6/5/365a4c2404c2d1acff4134a8f41771d3438f0dfd.png)

**影响**  
Gamification 的众多用例之一是简化和自动化我们的“月度会员”（MoM）计划。通过创建新的排行榜来展示每个月，我们希望静态地了解整个月里谁是我们最顶尖的贡献者。今天，由于下拉菜单可用，它可以根据日期范围更改排行榜，并使我们的 MoM 看起来不正确（特别是当最终用户可能不理解下拉菜单对评分的影响时，这也不是我们应该期望他们理解的）。附注：我知道其他人也在出于这些目的使用它，从插件主题的回复中可以看出，因此影响将大于一个客户 😉

**提议的解决方案：**  
理想情况下，期间下拉菜单（显示在第二个屏幕截图中）将不可编辑，并显示创建 LB 时在设置中选择的起止日期范围。  
或者，如果我们无法实现这一点，至少将期间下拉菜单锁定为“所有时间”并且不允许任何人编辑它，将显示在创建 LB 时选择的日期范围内的所有活动。

---

<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: [2023年四月6日 00:41 UTC](https://meta.discourse.org/t/setting-a-leaderboard-date-range-should-lock-the-default-period/260666/2 "2023-04-06T00:41:20Z")

</div>

我认为在配置的“默认期间”下方添加一个名为“允许用户选择时间段”的选项，对游戏化插件来说是一个明智的补充。当然。

---

<div class="post-metadata">

### Author: ![akuzo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akuzo/32/321441_2.png) [@akuzo](https://meta.discourse.org/u/akuzo)
#### Post date: [2024年九月11日 07:36 UTC](https://meta.discourse.org/t/setting-a-leaderboard-date-range-should-lock-the-default-period/260666/8 "2024-09-11T07:36:19Z")

</div>

> [@Samantha\_O](#):
>
> Discourse Gamification 插件

你好，我在哪里可以获得这个插件？

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2024年九月11日 07:40 UTC](https://meta.discourse.org/t/setting-a-leaderboard-date-range-should-lock-the-default-period/260666/9 "2024-09-11T07:40:00Z")

</div>

如果您是自托管用户，则可以自行安装。

> [@Discourse](#):
>
> | | | |
> | --- | --- | --- |
> | :discourse2: | **摘要** | **Discourse Gamification** 为您的实例添加了可自定义的评分（karma、kudos、points）和排行榜。 |
> | 🛠 | **存储库链接** | [https://github.com/discourse/discourse-gamification](https://github.com/discourse/discourse-gamification) |
> | 📖 | **安装指南** | [如何在 Discourse 中安装插件](https://meta.discourse.org/t/install-plugins-in-discourse/19157) |

作为 Discourse 客户，您需要使用 business 或 enterprise 套餐。

---

<div class="post-metadata">

### Author: ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)
#### Post date: [2025年一月22日 18:17 UTC](https://meta.discourse.org/t/setting-a-leaderboard-date-range-should-lock-the-default-period/260666/10 "2025-01-22T18:17:04Z")

</div>

> [@Samantha\_O](#):
>
> 或者，如果我们无法实现这一点，至少将时间段下拉菜单锁定为“所有时间”并且不允许任何人编辑它，将显示创建 LB 时所选日期范围内所有活动。

我们最近添加了对此的支持。您现在应该能够将“期间选择器”锁定到配置的“默认期间”并阻止用户更改它。

 ![Screenshot 2025-01-14 at 11.16.56 AM](https://global.discourse-cdn.com/meta/original/4X/1/7/3/173c5b043147c153a58307fd66001a74e8abbc49.png)
