# 话题评分插件

**URL:** https://meta.discourse.org/t/topic-ratings-plugin/39578
**Category:** Plugin
**Tags:** pavilion
**Created:** [2016年二月14日 21:06 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578 "2016-02-14T21:06:53Z")
**Posts on this page:** 20
**Page:** 22

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2024年四月26日 23:34 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/430 "2024-04-26T23:34:44Z")

</div>

该死，我真不敢相信我错过了那个插件。我明明知道，但我就是找不到。谢谢你纠正我，我很感激！我搜索方面一直都很糟糕，哈哈。😄 (编辑：我刚注意到我完全错过了已弃用插件的第一条消息:rofl:)

---

<div class="post-metadata">

### Author: ![bdfl](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bdfl](https://meta.discourse.org/u/bdfl)
#### Post date: [2024年四月27日 12:21 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/431 "2024-04-27T12:21:11Z")

</div>

感谢您的回复。关于数据浏览器和市场，这很有帮助。不幸的是，官方插件对我不起作用。我想知道这个插件无法满足哪些要求——仅仅是帖子的评分（而不是主题）吗？

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2024年四月27日 12:34 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/432 "2024-04-27T12:34:52Z")

</div>

它的设计初衷就不是这样。总有可能对其进行修改，而这正是 #Marketplace 的用途。👍

---

<div class="post-metadata">

### Author: ![papergossip](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@papergossip](https://meta.discourse.org/u/papergossip)
#### Post date: [2025年三月30日 19:05 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/434 "2025-03-30T19:05:18Z")

</div>

您好，请问这个问题解决了么？我遇到了同样的问题。这个问题似乎可以通过手动调整回复菜单的高度来解决，但这会影响所有用户的首次体验。它还会减小您看到的主题区域。我认为解决此问题的最佳方法是将文本水平排列而不是垂直排列。

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [2025年四月4日 12:13 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/435 "2025-04-04T12:13:55Z")

</div>

我在浏览器开发者控制台中发现了一个弃用通知：

> deprecation-identify-source.js:15 弃用：[PLUGIN discourse-ratings] `topic` 属性路径在 `discourse/plugins/discourse-ratings/discourse/templates/connectors/topic-category/topic-tip-container.hbs` 模板中使用，但未使用 `this`。此回退行为已被弃用，在模板中使用时，所有属性都必须通过 `this` 查找：{{this.topic}} [弃用 ID：ember-this-fallback.this-property-fallback] 此功能将在 ember-this-fallback n/a 中移除。有关更多详细信息，请参阅 [Resolving the `this-property-fallback` deprecation](https://meta.discourse.org/t/337276%E3%80%82)

只是想提请注意——虽然我自己无法修复。🙈

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [2025年七月29日 19:36 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/436 "2025-07-29T19:36:51Z")

</div>

您能检查一下这个插件吗？

它与 discourse 的 `最新版本` 有错误。我必须禁用它才能 `重建应用程序` (discourse)。

---

<div class="post-metadata">

### Author: ![Chandra](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@Chandra](https://meta.discourse.org/u/Chandra)
#### Post date: [2025年十月27日 13:39 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/437 "2025-10-27T13:39:15Z")

</div>

插件因帖子流更改而损坏。  
恳请 @jumagura 更新这个非常有用的插件。

> **[管理员通知]** 插件 ‘discourse-ratings’ 包含需要更新的代码。（ID：discourse.post-stream-widget-overrides）

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [2026年一月3日 11:57 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/438 "2026-01-03T11:57:21Z")

</div>

看起来它不再维护了……我们还遇到了 2025.12.0 上的弃用错误。

---

<div class="post-metadata">

### Author: ![jumagura](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jumagura/32/244796_2.png) [@jumagura](https://meta.discourse.org/u/jumagura)
#### Post date: [2026年一月5日 02:56 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/439 "2026-01-05T02:56:07Z")

</div>

感谢 @RGJ。此插件现已更新 🚀

---

<div class="post-metadata">

### Author: ![n1bff](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@n1bff](https://meta.discourse.org/u/n1bff)
#### Post date: [2026年四月6日 13:27 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/440 "2026-04-06T13:27:35Z")

</div>

插件的功能现在完全从我的论坛中消失了。在管理界面中，我看到：

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/5/0/e50b5af244c0d72600b0961a55f934ecef33b2b9.png)

在用户之前可以对主题进行评分的类别中，论坛帖子不再显示评分小部件。

如果我没记错的话，我需要在设置中选择一个类别来启用评分，或者为类别使用特殊标签。但在 [GitHub - paviliondev/discourse-ratings: A Discourse plugin that lets you use topics to rate things · GitHub](https://github.com/paviliondev/discourse-ratings) 中我找不到任何相关文档，而这个帖子太大，无法浏览所有帖子以寻找任何提示。

有什么想法知道我的论坛出了什么问题吗？它已经是最新版本了。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2026年四月6日 16:15 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/441 "2026-04-06T16:15:24Z")

</div>

来自 [Compatibility update for v2026.01 by communiteq · Pull Request #76 · paviliondev/discourse-ratings · GitHub](https://github.com/paviliondev/discourse-ratings/pull/76) 的遗留内容（widget）应当被移除。

我已提交一个 PR 来修复该问题：

> <https://github.com/paviliondev/discourse-ratings/pull/77>
>
> Leftovers from #76. Widget has been removed from the core, and the imports no lo…nger exist.

---

<div class="post-metadata">

### Author: ![n1bff](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@n1bff](https://meta.discourse.org/u/n1bff)
#### Post date: [2026年四月6日 16:29 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/442 "2026-04-06T16:29:28Z")

</div>

我觉得这些小部件正是我所缺少的。以前人们可以用星星来对主题进行评分。但也许现在的方式有所不同？

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2026年四月6日 16:40 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/443 "2026-04-06T16:40:25Z")

</div>

没错，它已在上面链接的上一份 PR 中被组件替换。但该 PR 并未删除小部件文件，因此你会遇到错误，因为它引用了核心中已不存在的路径。

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2026年四月6日 17:10 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/444 "2026-04-06T17:10:43Z")

</div>

感谢指出这一点 @Arkshine，很抱歉我把事情搞得一团糟。

为了让局面更加混乱，我上周完全重构了这个插件（gjs + Glimmer + 清理），但尚未提交拉取请求，因为我还在测试中。  
它在这里：[GitHub - communiteq/discourse-ratings: A Discourse plugin that lets you use topics to rate things · GitHub](https://github.com/communiteq/discourse-ratings)

---

<div class="post-metadata">

### Author: ![n1bff](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@n1bff](https://meta.discourse.org/u/n1bff)
#### Post date: [2026年四月12日 12:43 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/445 "2026-04-12T12:43:47Z")

</div>

哦，抱歉，那我可能只是对 Discourse 太不了解。作为普通用户而非程序员，我完全不知道什么是 widgets 或 components。😃

现有的 widget 文件是否导致了错误，从而阻止了 components 的正常运行？如果是这样，那我对你的 PR 感到超级高兴和感激！

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2026年四月12日 13:03 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/446 "2026-04-12T13:03:10Z")

</div>

别担心！你理解得没错。该 PR 移除了所有关于 widget 的引用，使插件重新正常工作。😃 注意该 PR 已合并，如果你尚未更新，现在可以更新插件了。

---

<div class="post-metadata">

### Author: ![n1bff](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@n1bff](https://meta.discourse.org/u/n1bff)
#### Post date: [2026年四月12日 13:30 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/447 "2026-04-12T13:30:39Z")

</div>

效果非常好，非常感谢！

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2026年四月17日 08:20 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/448 "2026-04-17T08:20:30Z")

</div>

@jumagura @angus @merefield 我已经对插件进行了 Glimmer 化改造和全面优化，并提交了 [PR](https://github.com/paviliondev/discourse-ratings/pull/78)。能否请你们中的一位帮忙复查一下，然后合并？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2026年四月20日 11:52 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/449 "2026-04-20T11:52:39Z")

</div>

我已贡献并合并了该 PR，感谢 @RGJ 🎉

> <https://github.com/paviliondev/discourse-ratings/pull/78>
>
> \- hbs to gjs
> \- glimmerize components

---

<div class="post-metadata">

### Author: ![Eviepayne](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviepayne/32/352733_2.png) [@Eviepayne](https://meta.discourse.org/u/Eviepayne)
#### Post date: [2026年五月21日 00:30 UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/450 "2026-05-21T00:30:40Z")

</div>

太好了，这能用了，但我不明白这些类型是什么。

[上一頁](https://meta.discourse.org/t/topic-ratings-plugin/39578.md?page=21)

[下一頁](https://meta.discourse.org/t/topic-ratings-plugin/39578.md?page=23)
