Thanks @angus . Just tried it and worked fine. Thanka again!
These buttons are disappearing when activating the plugin:
My app.yml
cd: $home/plugins
cmd:
- git clone GitHub - discourse/docker_manager: Plugin for use with discourse docker image
- git clone GitHub - paviliondev/discourse-ratings: A Discourse plugin that lets you use topics to rate things
Just installed discourse yesterday
Sir , I have installed 2.4.0.beta4 vesion of Discourse. I have installed two plugins discourse-rating (GitHub - paviliondev/discourse-ratings: A Discourse plugin that lets you use topics to rate things) and discourse-topic-preview (GitHub - merefield/discourse-topic-previews-sidecar: A Discourse plugin that complements the Topic Previews Theme Component to add features) . we have developed post badge plugin. all these plugins working fine in v2.4.0.beta2 +342 version. but not in .4.0.beta4 vesion. Kindly look into this issues. if you want any more info then let me know
Hey, @Mahesh_Tirthakar Please file a full bug report here: Bug Report
i have installed rating plugin in discourse development which is 2.4.0.beta5 but in docker discourse version it is not working ???
./launcher rebuild app
after rebuilding the docker discourse instance it is working. thanks.
Rating Shows before the Username in Mobile view

How to sort the topics in home page by rating?
aggregateRating 在查看源代码和出现 Google 错误时显示在主题中
<div itemscope itemtype="http://schema.org/CreativeWork">
<span itemprop="name">标题</span>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue"></span>
<span itemprop="ratingCount">0</span>
</div>
</div>
类别已禁用评分。
检查元素时发现 aggregateRating 为空。如何在查看源代码时将其移除?
你觉得是时候转向 CreativeWorkSeries 了吗:@angus
{
"@context": "https://schema.org/",
"@type": "CreativeWorkSeries",
"name": "[title]",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "[score]",
"bestRating": "[best]",
"ratingCount": "[count]"
}
}
@Bcat 谢谢你的留言。我本周晚些时候会查看一下。
你好,
我刚安装了此包并重启了多次,但在分类设置中未看到启用评分的选项。您知道可能是什么问题吗?我检查了插件设置,评分功能在那里已启用。我目前未使用标签功能,只想为特定分类启用此功能。
感谢您的帮助。
<% if @topic_view.topic.average_rating != "" %>
<div itemscope itemtype="http://schema.org/CreativeWorkSeries">
<span itemprop="name"><%= @topic_view.topic.title %></span>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue"><%= @topic_view.topic.average_rating %></span>
<meta itemprop="bestRating" content="5"/>
<span itemprop="ratingCount"><%= @topic_view.topic.posts.count { |p| !!p.custom_fields['rating'] } %></span>
</div>
</div>
<% end %>
如何使用 if @topic_view.topic.average_rating != "" 来显示/隐藏此代码?
已解决
<% if @topic_view.topic.average_rating && @topic_view.topic.posts.count %>
<div itemscope itemtype="http://schema.org/CreativeWorkSeries">
<span itemprop="name"><%= @topic_view.topic.title %></span>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue"><%= @topic_view.topic.average_rating %></span>
<meta itemprop="bestRating" content="5"/>
<span itemprop="ratingCount"><%= @topic_view.topic.posts.count { |p| !!p.custom_fields['rating'] } %></span>
</div>
</div>
<% end %>
好的,所有 Topic Ratings 用户请注意以下内容。
使用我们的插件时如何安全更新:
Pavilion 的更新计划
Topic Ratings 是 Pavilion 开源插件家族的一员。
今后,Pavilion 将专注于确保其核心插件集与 Discourse 核心 tests-passed 分支的兼容性,且仅在每月的头 5 天内进行此项工作。
在此期间(即“支持期”)内,任何因不兼容而产生的错误将尽快得到解决,最好在每月第 7 天前完成。低严重性或 Beta 功能相关的错误可能无法在此日期前修复,但任何导致论坛无法正常运行的明显问题必须解决。
此新政策将于 2020 年 5 月 1 日正式生效
我们为何引入此政策
我们无法控制 Discourse 核心的变更,这本来就是应有的状态。然而,随着我们的插件不断发展和变得更加复杂,保证它们与 Discourse 的每一次更新都兼容变得越来越困难。确保即时兼容性已变得难以为继。
为了让我们的开发人员有更多精力处理插件支持之外的重要任务,我们将不再保证每月每一天都与 Discourse 兼容。
此政策也有助于您获得更高的稳定性,并让您更清楚地知道何时可以安全更新。
如何执行更新
请尽量在每月的头 5 天内更新您的生产环境 Discourse 实例(包括 Discourse 核心和我们的插件)。如遇任何问题,请在 Meta 上相关插件主题中通知我们。在此期间,Pavilion 团队将对插件相关问题提供更专注的支持。
如果您在每月头 5 天之外更新生产服务器,由此产生的风险需由您自行承担。如果您这样做且我们的某个插件出现问题,我们强烈建议您报告该问题,并在适当情况下卸载我们的插件,直到问题得到解决。遗憾的是,我们可能要到下个月初的支持期才能着手修复。
为获得更高安全性
建议您在自己的预发布(staging)服务器上测试更新,该服务器应基于生产站点的备份构建。如果您的站点规模较大、用户众多或属于商业用途,这一点尤为重要。
您可以将该服务器在当月剩余时间关闭,以避免产生运行费用。利用这段时间测试所有基本功能,以识别插件是否存在问题。如发现任何严重或高优先级问题,请尽快在相关插件主题中报告。
使用预发布站点可能让您在更新时机上有更多自主权,但请注意,在每月后半段获得的支持相对有限。
感谢您的理解!
我不确定这个 bug 是否已被报告。
如果话题已加载,而包含评分的帖子未包含在初始加载内容中,您可以多次评分(与 can_rate 相关)。
一旦包含评分的帖子被加载,功能将恢复正常(can_rate 变为 false)。
这确实是个问题。您在那里评论的内容可能就是原因所在:
请问可以修复吗?
各位,我们刚刚将新功能 Multiple Ratings 推送到 master 分支。现在,您可以根据多个标准对主题进行评分。这是对现有插件的全面重构。请查看本指南,了解如何将现有数据迁移到新结构:
我们建议您在升级前进行备份,以格外谨慎。
我们期待您的反馈。
感谢您报告此问题。我们几乎完全重写了该插件。您能否在最新版本上测试一下,看看是否还会出现此问题?
在分类设置中,是否有什么条件控制复选框以允许评分显示?
升级后,我再也看不到它了。
这是一个用于测试的 Discourse 实例,目前“未分类”类别已启用评分功能。
尽管我能看到评分,但该选项仍未出现在此类别中,新创建的类别也是如此。所有设置均已启用。
另外,评分标签页还有另一个问题:我删除了第一个带有“无”的类别,但似乎无法将其恢复。同样,也无法将“未分类”类别添加为“无”。
是的,您需要完成上述文档链接中提到的几项操作。

