Discourse 话题投票

|:discourse2: | 摘要 | Discourse 主题投票 允许用户在指定类别中对主题进行投票。[1] |
|:open_book: | 安装指南 | 该插件已包含在 Discourse 核心中。无需单独安装该插件。|

功能

要启用它,请编辑任意类别,在“设置”选项卡中查找“允许用户对此类别中的主题进行投票”复选框:

启用后,顶部菜单中将出现一个“投票”项。该类别中的主题可以进行投票,投票数将显示在主题标题旁边。

滚动时,投票功能也会显示在标题旁边。

为了更方便地从主题列表中查看投票数,投票数也会添加到主题标题下方。

以下是用户在投票前和投票后看到的视图:

用户个人资料页面中还有一个部分,显示其活跃投票:

活跃投票

活跃投票 指的是用户在当前可投票的主题中已投出的票数。限制活跃投票可以鼓励用户慎重地为对他们最重要的主题投票。

  • 每个用户可用的活跃投票数量可根据信任等级进行 配置。默认值如下:

    • TL0:2
    • TL1:4
    • TL2:6
    • TL3:8
    • TL4:10
  • 每个用户对每个主题只能投一票。

  • 当主题被关闭归档时,该主题的投票数保持不变。这些投票不再被视为活跃。投出这些票的用户将从该主题中恢复一票,并将其重新计入其可用投票池中。

  • 如果主题重新开放或取消归档,投票将被回收并重新计入用户的活跃投票数。

  • 如果主题回收了用户的投票,导致其超过活跃投票上限,用户只需等待主题关闭或归档,即可再次投票。

  • 如果整个主题(主题 A)合并到另一个主题投票主题(主题 B)中,将发生以下情况:

    1. 主题 A 中的唯一投票将被添加到主题 B 中。
    2. 主题 A 中的重复投票(同一用户在两个主题中都投了票)将不会添加到主题 B 中。相反,主题 A 中的投票将恢复至用户的可用投票池中。
    3. 主题 A 的投票数将被设为零,并且主题将被关闭,以防止在主题 A 中继续进行投票。

设置

名称 描述
topic voting alert votes left 当剩余票数达到此数量时提醒用户
topic voting enabled 是否允许用户对主题进行投票?
topic voting show who voted 是否允许用户查看谁投了票?
topic voting show votes on profile 是否允许用户在活动动态中查看自己的投票?
topic voting tl0 vote limit TL0 用户允许多少活跃投票?
topic voting tl1 vote limit TL1 用户允许多少活跃投票?
topic voting tl2 vote limit TL2 用户允许多少活跃投票?
topic voting tl3 vote limit TL3 用户允许多少活跃投票?
topic voting tl4 vote limit TL4 用户允许多少活跃投票?

类别设置

topic voting category setting

额外功能

:information_source: 在已激活投票插件的类别中,点赞功能会自动禁用。某些网站可能希望同时使用这两个功能来点赞回复,请参阅 如何重新启用点赞

数据探索器查询

列出为某个主题投票的人员及其电子邮件地址:

--[params]
-- int :topic_id

SELECT
tvv.user_id,
email
FROM topic_voting_votes tvv
JOIN user_emails ue ON ue.user_id = tvv.user_id
WHERE topic_id = :topic_id
AND ue.primary = true

更多探索器查询可在 Community Building > Data & reporting 中找到 - Topics tagged topic-voting

:discourse2: 由我们托管?该插件可在我们的商业版和企业版计划中找到 Topic Voting | Discourse - Civilized Discussion


  1. 这是由 @erlend_sh 整理的 此规范 的结果。 ↩︎

128 个赞
Display vote/like counter in main page
Displaying "Likes" more prominently
Plugin: Feature voting separated from Likes
Building an Amazon Discourse pilot, planning for scale
Two new plugin outlets - user_activity_bottom and user_menu_glyphs
Are there Upvotes/Downvotes, Score for the Posts?
Overwriting controllers in plugin
Alternative Voting Category Style
Voting vs Likes for feature requests
Thoughts on a plugin which turns discourse into stackoverflow
Show votes in post list "totals" columns
Looking to switch from Vanilla, and have a few questions
Question Answer Plugin
Poll in restricted topic where users can’t reply
UserVoice vs Discourse
Votes not being released after close
'How's my driving' plugin?
Marked as solved, Vote Replenishing & Querying
Some things I've built which you can use
New Theme: Tag-Pages Navigation
Mounting widget in raw template?
Notice: testing Discourse Reactions here on meta for 1 week!
Sort topics on frontpage daily by Votes
Topic Voting plug-in
Introducing ProCourse
Unable to see 'Like' button in the first post/topic
Customize # of Votes per User
Why do official plugin topics auto-delete responses?
Trust Level Permissions Reference
Show total votes next to total replies, views and activity columns
How to re-order (or hide) "Votes" and "My Votes" top menu list items?
Would it be possible to store voting data in a json file?
New Theme: Tag-Pages Navigation
Please update 'Understanding Discourse Trust Levels' — or is there a different doc?
"like" button on first post
Please help with the Discourse Voting Plugin
Running a photo competition
How to enable reactions only for certain categories?
What would be the best plug-in for Contest with public voting in two categories?
"Unlikable" posts can be liked using keyboard navigation
Plugin post-voting conflicts with previous question-answer-plugin
Ratings instead of Hearts for Likes
Daily-limit mode for Voting Plugin
"Like this post" not available for some categories
Plugin to gather approvals / signatures on an initiative?
A reddit-ish theme for Discourse
Renaming Discourse Upvotes [Post Voting]
Poll with ability for user to add their own options
Discourse as a Conference App (in person, virtual, or hybrid)
Questions about the technical architecture of Discourse
Reactions not appearing on first post in topics
Badge Query (SQL)
Discourse forum for feature requests with upvotes + comments?
Sort category topic list by votes?
Why you should use Discourse internally for your company/team instead of Slack (4 years use case)
Votes not being returned on topic close
Topic Voting enabled for our #feature category! :partying_face:
A versioned API for client side plugins
Enable/disable voting for tags?
Feedback on Our Community
Creating an Analytical Hub using Categories, Approval Process and Upvoting
When goes to a category /latest doesn’t show the actual latest
Horizon Theme
Best practices of keeping track of feature requests
Bundling more popular plugins with Discourse core
How can I make a Discourse forum as "reddit like" as possible
Horizon: High Context Topic Cards
Available settings within the category edit page
Muted topics still notifying me on Meta
Hook for a topic's category id?
Multiple topics in single API request
Some plugins not working after upgrade
A tour of how the Widget (Virtual DOM) code in Discourse works
Plugin: Feature voting separated from Likes
Wanted: Discourse Hacker News Plugin
Restricting poll creation to Trust Levels
Prospective Feature: Highlight Posts That Surpass Defined "Likes" Threshold
Is it possible to do Uservoice style voting with the voting plugin
Question Answer Plugin
Approach to a Nominate Post Button?
Migrating feature suggestions
Is there any plugin for downvoting questions and replies in Discourse
ProCourse Support
Topics that were voted on disappear from user profile after being closed
Current Projects - January 2026
Voting/ideation feature
Promote or demote suggestions
Rake task for merging users
Liking own posts — a specific use case of discourse
Multiple Choice Poll questions
Is Decision Making Possible on Discourse?
Advice for getting my little game dev community "out there?"
I need someone who can install a voting plugin
Comment on a question instead of answering it
Ranking of post, based on user upvotes
Views counter specification
Excluding Suspended, Silenced and Suspect Users When Exporting
Additional Appreciation buttons next to "Likes": "Insightful", "Actionable"
Error installing this plugin
Delegate poll votes to another person/persons
Can posts be rated or voted on?