Голосование за темы в 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: В категориях, где активирован плагин голосования, лайки автоматически отключаются. Некоторые сайты могут захотеть использовать обе функции одновременно для лайков ответов, см. как включить лайки обратно.

Запросы Data Explorer

Список людей, проголосовавших за тему, вместе с их адресами электронной почты:

--[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 Explorer можно найти в #data-reporting - Topics tagged topic-voting

:discourse2: Размещено нами? Этот плагин доступен в наших тарифах Business и Enterprise 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?