Discourse Post Voting

:discourse2: Summary Discourse Post Voting allows the creation of topics with votable posts.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-post-voting
:open_book: Install Guide How to install plugins in Discourse

Features

To create a new topic with votable posts open the menu in the top left of the composer and select ‘Toggle Post Voting’:

With the topic in Post Voting mode, there’s a filter to sort answers by votes or by activity. Here’s an example of one in action:

Configuration

Site Settings

Once installed, the plugin is enabled by default and the available admin settings are:

Setting Site Description
post voting enabled Enable Post Voting Plugin
post voting undo vote action window Number of minutes users are allowed to undo votes in Post Voting topics (enter 0 for no limit)
post voting comment limit per post Number of comments allowed on each post
post voting enable likes on answers Enable like button on replies on Post Voting topics
min trust to flag posts voting comments Minimum trust level to flag a post voting comment

Category-specific Settings

There are two category settings available. Use the wrench on the category page and access settings to see these:

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


Credits

This plugin is inspired by Pavilion’s fantastic work on the Question Answer Plugin. As always, thank you for your continued contributions to the Discourse project. :medal_sports: :slight_smile:

Last edited by @JammyDodger 2024-06-18T14:17:52Z

Check documentPerform check on document:
60 Likes

I am a bit of a Q&A fanatic, so I’m excited to see this new post format available in Discourse and tickled by how… familiar… it seems! I have some questions about the functionality and how customizable it is. Much of this may be answered in the plugin package but I figure it might be helpful to have here, too…

  1. Is there education built in for the plugin that teaches users about the feature, how/when to use it, etc? I love @discobot - maybe there’s a tutorial/onboarding module for Q&A?
  2. You say admins can set the default within a category to Q&A - if they do, are topics required to be Q&A or do they just default to it?
    • If it’s a default, is there an option to require it? Can Q&A be disabled by category, too?
  3. If a category is set to default to Q&A, is this something that’s apparent to users? I see that the post creation button will say it’s a Q&A but I can imagine a seasoned user’s first interaction with the newly-added feature might lead them to overlook the text without something drawing attention to the post type before it’s submitted.

Thanks for making this cool feature official!

3 Likes

Yes, OP needs an update, these are the current options in category settings

The user will see a different button in the composer. You can change the button text via text customization.

3 Likes

A post was split to a new topic: Are Post Voting votes/replies accessible via API?

Has anyone been able to limit the amount of votes per user per topic? In our case, we are running photocontests, and we would like to limit each user to 5 votes max per topic.

Ahoj,

in :arrow_upper_right: this post I was directed to post the issue here to give the feedback.


In the thread linked above in the OpenStreetMap forum, where this plugin is used in some categories, user interface shortcomings with this plugin are discussed.

In short there are:

This plugin forbids to post a reply to a reply. It is debateable if this should be enforced or to be configurable on a per-instance basis, but it it is enabled, the following occurs:

  • The user can select some text and quote. The user can enter a reply. Only at the very end, when the reply is to be sent, it is aborted with an error message

    An error occurred: You are not allowed to create a post in reply to another post.

    This is a not really helpful message. It does not tell what is wrong. In fact, if a reply is not allowed, it should not have allowed “quote-reply” in the first place at all.

  • When a reply is sent via email, the email just vanishes without the sender beeing informed. There should be a bounce with an explanatory message saying what is wrong.

  • Only comments are allowed. But they swallow some formatting (e.g. quotes, see the comment on :arrow_upper_right: this post), and also they are limited in numbers of characters, prohibiting more complex thoughts.

Regards!

2 Likes

A post was split to a new topic: How to hide the ‘add a comment’ option

@Discourse

comments on replies are hidden after 5 comments

How can I remove the 5 comment limit and make it appear only with the option to show comments?

Went searching for this same thing and was surprised it hadn’t been brought up before. Allowing the user to always end up in an error state with quotes and no option for markup in comments offers a very disjointed experience. Additionally, the error messaging is unclear for users when trying to directly reply to a post.

Definitely hoping to see an improvement to help polish this UX.

After 5 comments, other comments are hidden
how do I make it so that after 1 or 2 comments other comments are hidden

A couple of questions about this great plugin:

  1. Why does the first post (the OP) get voting options? Surely that’s the question, so should not be voted on like it’s an answer?
  2. Any hints on some Badge SQL I can use to make badges out of these? Get 10 votes in a vote post topic, etc…?
1 Like

I found one for topic voting that can maybe be modified for post voting?