Discourse Topic Voting

:discourse2: Summary Discourse Topic Voting gives the ability to vote on topics in a specified category.[1]
:open_book: Install Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.

Features

To enable it, edit any category, look on the settings tab for the “Allow users to vote on topics in this category” checkbox:

Once enabled, a “Votes” item is available in the top menu. The topics in that category can be voted on with the count of votes added next to the topic title.

The vote count is also included next to the title when scrolled.

To make it easier to see vote counts from a topic list, the vote count is also added under the topic titles.

Here are the views a user will see before and after voting in a topic:

Screenshot 2024-05-13 at 10.08.17 AM Screenshot 2024-05-13 at 10.10.13 AM

There is also a section in the user’s profile page that displays their active votes:

Active Votes

The term Active Votes refers to the votes a user has cast in topics that are currently available for voting. Limiting Active Votes encourages users to vote thoughtfully for the topics that matter most to them.

  • The number of Active Votes available to each user is configurable by Trust Level. Default values:

    • TL0: 2
    • TL1: 4
    • TL2: 6
    • TL3: 8
    • TL4: 10
  • Each user may cast only one vote per topic.

  • When a topic is closed or archived, the vote count on the topic remains unchanged. These votes are no longer considered Active. The users who cast these votes will have their one vote from that topic restored to their pool of available votes.

  • If a topic is re-opened or unarchived, the votes are reclaimed and applied back to the users’ Active Vote count.

  • If a topic reclaims the votes of a user, causing them to exceed their Active Vote limit, they simply need to wait until topics are closed or archived to allow them to vote again.

  • If an entire topic (Topic A) is merged into another Topic-Voting topic (Topic B), all the the following takes place:

    1. Unique votes from Topic A are added to Topic B.
    2. Duplicated votes (the same user voted in both topics) from Topic A will not be added to Topic B. Instead, the vote from Topic A will be restored to the user’s pool of available votes.
    3. Topic A’s vote count is set to zero and the topic is closed so that no further voting can take place in Topic A.

Settings

Name Description
topic voting alert votes left Alert user when this many votes are left
topic voting enabled Allow users to vote on topics?
topic voting show who voted Allow users to see who voted?
topic voting show votes on profile Allow users to see their votes in their activity feed?
topic voting tl0 vote limit How many active votes are TL0 users allowed?
topic voting tl1 vote limit How many active votes are TL1 users allowed?
topic voting tl2 vote limit How many active votes are TL2 users allowed?
topic voting tl3 vote limit How many active votes are TL3 users allowed?
topic voting tl4 vote limit How many active votes are TL4 users allowed?

Category Setting

topic voting category setting

EXTRAS

:information_source: In the categories where the Voting plugin is activated, Likes are automatically deactivated. Some sites may want to use both functions at the same time to like replies, see how to re-enable Likes.

Data Explorer Queries

List people who voted for a topic along with their email addresses:

--[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

More explorer queries can be found in Data & reporting - Topics tagged topic-voting

:discourse2: Hosted by us? This plugin is available on our Business and Enterprise plans Topic Voting | Discourse - Civilized Discussion


  1. and is the result of this spec put together by @erlend_sh ↩︎

Last edited by @southpaw 2025-07-25T02:39:13Z

Check documentPerform check on document:
128 „Gefällt mir“

Im Rahmen der Umbenennung des Plugins Discourse Post Voting haben wir auch dieses umbenannt, um es zu ergänzen. :partying_face: :slightly_smiling_face:

Daher heiße ich Sie alle offiziell im Plugin Discourse Topic Voting willkommen. :tada::balloon::champagne:

14 „Gefällt mir“

Ich mag dieses Plugin wirklich. Ich benutze es für eine Kategorie, die für Blogartikel reserviert ist. Wenn ich eine Kategorie mit diesem aktivierten Plugin betrete, wäre es möglich, die Themenliste nach der Anzahl der Stimmen absteigend zu sortieren?

Danke nochmal!

1 „Gefällt mir“

2 Beiträge wurden in ein neues Thema aufgeteilt: Stimmen werden beim Schließen des Themas nicht zurückgegeben

Mir ist aufgefallen, dass der Benutzer in der Animation unter

erst erfährt, dass

  • er tatsächlich eine begrenzte Anzahl von Stimmen hat
  • und ihm nur noch xx Stimmen übrig sind

nachdem er auf Abstimmen geklickt hat.

Vielleicht sollte er all dies beim Mouseover der Abstimm-Schaltfläche erfahren, bevor er klickt.

3 „Gefällt mir“

2 Beiträge wurden in ein neues Thema aufgeteilt: ‘See who voted’ display issue

Um es offizieller zu machen, wurden die Datenbanktabellen dieses Plugins nun zu topic_voting_ migriert, um denen in post_voting_ sowie den Site-Einstellungen zu entsprechen.

Wenn Websitebesitzer dieses Plugin aktualisieren, werden vorhandene Data Explorer-Abfragen, die die alten Tabellen verwenden, automatisch aktualisiert, um die neuen Tabellennamen zu verwenden.

6 „Gefällt mir“

Wie kann ich Discourse-Reaktionen im ersten Beitrag eines Abstimmungsthemas wieder aktivieren?

Hast du den Tipp ausprobiert, um Likes wieder zu aktivieren?

2 „Gefällt mir“

Ah, Entschuldigung, das habe ich getan, aber ich dachte, es würde nicht funktionieren, bis ich merkte, dass ich meine eigenen Beiträge ansah, also sollte ich keine Like-Schaltfläche erwarten :laughing:

2 „Gefällt mir“

Gibt es eine Möglichkeit, die Abstimmungsschaltfläche direkt in die Themenliste einzufügen?

1 „Gefällt mir“

Ich glaube, das ist es, wonach Sie suchen:

3 „Gefällt mir“

Gibt es eine Möglichkeit, dass der Ersteller eines Themas automatisch die erste Stimme für seinen Beitrag abgibt? Wir haben eine Reihe von Benutzern, die diese Themen erstellen, aber vergessen, dafür zu stimmen, und es ist eine kleine Mühe, sie jedes Mal daran erinnern zu müssen. Wollte nur mal nachfragen :slight_smile:

Danke für das Plugin!

1 „Gefällt mir“

Ich stimme dazu. Wenn Benutzer nicht wissen, dass Stimmen begrenzt sind, können sie ihr Verhalten nicht anpassen. Daher wird das ursprüngliche Ziel, die Benutzer zu ermutigen, überlegt abzustimmen, nicht effektiv erreicht.

Ist es möglich, das Abstimmen über Themen in einer Kategorie zu deaktivieren? Wir möchten, dass die meisten Themen in der Kategorie bewertbar sind, aber manchmal möchten wir auch nicht-wertbare Themen posten. Ich sehe, dass es eine Eigenschaft “can_vote” bei Themen gibt, aber ich scheine nirgends in der UI oder bei einem API-Aufruf eine Möglichkeit zu finden, diese zu aktualisieren. Es scheint möglich zu sein, da das Thema “Über die XYZ-Kategorie”, das ursprünglich erstellt wurde, nicht abstimmbar ist.

@tyler.lamparter Vielleicht diese Einstellung in den Kategorieeinstellungen?

@NateDhaliwal wir haben das aktiviert, aber ich frage mich, ob einige Themen, die in diese Kategorie eingeordnet sind, deaktiviert werden können. Also sollte bei 99 % der Themen, die in unsere Kategorie eingeordnet sind, die Themenabstimmung erfolgen, aber einige wenige sollten das nicht.

Richtig. Ich glaube nicht, dass das möglich ist. Vielleicht könntest du es mit CSS verstecken, aber das wäre schwierig, da diese Änderungen die ganze Seite betreffen würden und nicht nur pro Thema…

Der Grund, warum es möglich zu sein scheint, ist, dass jedes Thema ein can_vote-Flag hat, das bereits bestimmt, was die Benutzeroberfläche anzeigt. Ich sehe einfach keine Möglichkeit, dieses Flag über die API zu aktualisieren oder es über die Benutzeroberfläche festzulegen.

Das „Über dieses Kategorie-Thema“, das jedes Mal erstellt wird, wenn eine neue Kategorie erstellt wird:

Ein Thema, das einer unserer Benutzer in der Kategorie gepostet hat:

1 „Gefällt mir“

Für die Kategorie Feature sind die Abstimmungsmöglichkeiten und Informationen hier mit einem kleinen CSS auf Basis eines Tags für #feedback-Themen versteckt.

2 „Gefällt mir“