Discourse トピックの投票

| |
|-|-|
|:discourse2: | 概要 | Discourse トピック投票機能により、指定されたカテゴリのトピックに投票できるようになります。[1]
|:open_book: | インストールガイド | このプラグインは Discourse コアにバンドルされています。別途プラグインをインストールする必要はありません。

機能

有効化するには、カテゴリを編集し、設定タブで「このカテゴリのトピックにユーザーが投票できるようにする」チェックボックスを探してください。

有効化すると、トップメニューに「投票」項目が表示されます。そのカテゴリのトピックに投票できるようになり、トピックタイトルの横に投票数が表示されます。

スクロール時にもタイトル横に投票が表示されます。

トピック一覧から投票数を見やすくするため、投票数はトピックタイトルの下にも追加されます。

以下は、トピックで投票する前後にユーザーが確認できる画面です。

また、ユーザーのプロフィールページには、ユーザーが投じたアクティブな投票を表示するセクションもあります。

アクティブな投票

アクティブな投票とは、現在投票可能なトピックに対してユーザーが投じた投票を指します。アクティブな投票を制限することで、ユーザーが最も重要なトピックに慎重に投票するよう促します。

  • 各ユーザーが利用可能なアクティブな投票の数は、信頼レベルごとに 設定可能 です。デフォルト値は以下の通りです。

    • TL0: 2
    • TL1: 4
    • TL2: 6
    • TL3: 8
    • TL4: 10
  • 各ユーザーはトピックごとに 1 回のみ投票できます。

  • トピックがクローズまたはアーカイブされた場合、そのトピックの投票数は変更されません。これらの投票はもはやアクティブとはみなされません。投票したユーザーは、そのトピックからの 1 票が利用可能な投票プールに戻されます。

  • トピックが再オープンまたはアーカイブ解除された場合、投票は回収され、ユーザーのアクティブな投票数に再適用されます。

  • トピックがユーザーの投票を回収し、アクティブな投票の制限を超えた場合、トピックがクローズまたはアーカイブされて再度投票できるようになるまで待つ必要があります。

  • トピック全体(トピック 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

さらに多くのエクスプローラークエリは、#data-reporting で確認できます - Topics tagged topic-voting

:discourse2: 私 hosts によってホストされていますか?このプラグインは、ビジネスプランとエンタープライズプランで利用可能です 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
Alternative Voting Category Style
Overwriting controllers in plugin
Are there Upvotes/Downvotes, Score for the Posts?
Voting vs Likes for feature requests
Thoughts on a plugin which turns discourse into stackoverflow
Topic Voting plug-in
Introducing ProCourse
Show votes in post list "totals" columns
Looking to switch from Vanilla, and have a few questions
Sort topics on frontpage daily by Votes
Question Answer Plugin
Some things I've built which you can use
Votes not being released after close
Notice: testing Discourse Reactions here on meta for 1 week!
Poll in restricted topic where users can’t reply
'How's my driving' plugin?
Marked as solved, Vote Replenishing & Querying
UserVoice vs Discourse
New Theme: Tag-Pages Navigation
Mounting widget in raw template?
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
Available settings within the category edit page
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
Ratings instead of Hearts for Likes
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
Easily create Ideas categories using the Topic Voting plugin
Horizon: High Context Topic Cards
Horizon Theme
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?

Discourse Post Voting プラグインのリネームの一環として、こちらも補完するためにリネームしました。 :partying_face: :slightly_smiling_face:

つきましては、Discourse Topic Voting プラグインへ皆様を正式に歓迎いたします。 :tada::balloon::champagne:

「いいね!」 14

このプラグインは本当に気に入っています。ブログ記事専用のカテゴリに使用しています。このプラグインが有効になっているカテゴリに入るとき、トピックリストを投票数降順で並べ替えることは可能でしょうか?

重ねて感謝いたします!

「いいね!」 1

2件の投稿が新しいトピックに分割されました:トピッククローズ時に投票が返されない

Topic Voting | Discourse - Civilized Discussion のアニメーションで、ユーザーはクリックするまで以下のことを知りません。

  • 実際には投票数が限られていること
  • 残り投票数が xx になったこと

クリックする前に、投票ボタンのマウスオーバーでこれらすべてを学ぶべきではないでしょうか。

「いいね!」 3

2件の投稿が新しいトピックに分割されました:「投票者表示の問題」/t/see-who-voted-display-issue/306641

より公式なものにするため、このプラグインのデータベーステーブルは、サイト設定とともに post_voting_ のテーブルに合わせるために topic_voting_ に移行されました。

サイトオーナーがこのプラグインを更新すると、古いテーブルを使用している既存のデータエクスプローラークエリは、新しいテーブル名を使用するように自動的に更新されます。

「いいね!」 6

投票トピックの最初の投稿でDiscourseリアクションを再度有効にするにはどうすればよいですか?

「いいね」を再度有効にするヒントを試しましたか?

「いいね!」 2

ああ、すみません、やりましたが、自分の投稿を見ていることに気づくまで機能していないと思っていました。そのため、いいねボタンが表示されることを期待すべきではありませんでした。:laughing:

「いいね!」 2

投票ボタンをトピックリストに直接追加する方法はありますか?

「いいね!」 1

お探しのものはこれだと思います。

「いいね!」 3

トピックの作成者が自分の投稿に最初に投票するように自動化する方法はありますか?多くのユーザーがトピックを作成する際に投票を忘れてしまい、毎回リマインダーを送るのが少し面倒です。ただ気になっただけです :slight_smile:

プラグインありがとうございます!

「いいね!」 1

私もこれに賛成です。ユーザーが投票が制限されていることを知らなければ、行動を調整できません。したがって、ユーザーに投票を慎重に行うよう促すという当初の目的は、効果的に達成されません。

カテゴリ内のトピックごとに投票機能を無効にすることは可能ですか?カテゴリ内のほとんどのトピックは投票可能にしたいのですが、時には投票できないトピックを投稿したい場合もあります。トピックに対して can_vote というプロパティがあることはわかっていますが、UIまたはAPI呼び出しでこれを更新する方法が見つかりません。最初に作成される"XYZカテゴリについて"のトピックは投票不可であるため、可能であるように思えます。

@tyler.lamparter カテゴリ設定のこの設定でしょうか?

@NateDhaliwal 私たちはそれを有効にしていますが、そのカテゴリに入れられたトピックの中には無効にできるものもあるのではないかと思っています。つまり、私たちのカテゴリに入っているトピックの99%はトピック投票が必要ですが、ほんの一部はそうであるべきではありません。

了解です。そうはできないと思います。CSSで隠すことは可能かもしれませんが、それは難しいでしょう。なぜなら、これらの変更はサイト全体に適用されるものであり、トピックごとではないからです…

トピックごとに can_vote フラグがあり、UI が表示される内容をすでに制御しているため、可能に見える理由です。このフラグを API 経由で更新したり、UI 経由で設定したりする方法がわかりません。

新しいカテゴリが作成されるたびに作成される「このカテゴリについて」トピック:

カテゴリにユーザーが投稿したトピック:

「いいね!」 1

#featureカテゴリの投票オプションと情報は、#feedbackトピックのタグに基づくCSSによって非表示になっています。

「いいね!」 2