Discourse 게시물 투표

:discourse2: 요약 Discourse Post Voting 플러그인은 투표가 가능한 게시물이 있는 주제를 생성할 수 있습니다.
:open_book: 설치 가이드 이 플러그인은 Discourse 코어에 번들로 포함되어 있습니다. 플러그인을 별도로 설치할 필요가 없습니다.

기능

투표가 가능한 게시물을 가진 새 주제를 만들려면 작성기 왼쪽 상단의 메뉴를 열고 'Toggle Post Voting’을 선택하세요:

주제가 Post Voting 모드로 설정되어 있으면, 답변을 투표 수 또는 활동 기준으로 정렬하는 필터가 있습니다. 다음은 작동 예시입니다:

설정

사이트 설정

설치 후, 플러그인은 기본적으로 활성화되며 사용 가능한 관리자 설정은 다음과 같습니다:

설정 사이트 설명
post voting enabled Post Voting 플러그인 활성화
post voting undo vote action window Post Voting 주제에서 사용자가 투표를 취소할 수 있는 분 단위(제한이 없으면 0 입력)
post voting comment limit per post 각 게시물에 허용되는 댓글 수
post voting enable likes on answers Post Voting 주제에서 답변에 대한 좋아요 버튼 활성화
min trust to flag posts voting comments Post Voting 댓글을 신고할 수 있는 최소 신뢰 수준

카테고리별 설정

사용 가능한 카테고리 설정이 두 가지 있습니다. 카테고리 페이지의 렌치를 사용하여 설정에 접근하면 이 설정들을 볼 수 있습니다:

:discourse2: 우리가 호스팅하고 있나요? 이 플러그인은 Business 및 Enterprise 플랜에서 제공됩니다 Post Voting | Discourse - Civilized Discussion


크레딧

이 플러그인은 Pavilion이 Question Answer Plugin에서 수행한 훌륭한 작업에서 영감을 받았습니다. 항상 Discourse 프로젝트에 대한 지속적인 기여에 감사드립니다. :medal_sports: :slight_smile:

63개의 좋아요
Thoughts on a plugin which turns discourse into stackoverflow
Question Answer Plugin
Plugin: Ask me anything or Q&A format (threaded replies)
Any forum using the Q&A plugin?
How to get answer's comments? (stackoverflow-like & tiny)
A reddit-ish theme for Discourse
Voting Up the Best Answer!
A case for downvotes and different ordering of replies
Multiple Choice Poll questions
Topic/replies structure
Debate / deliberation plugin
A reddit-ish theme for Discourse
Post Voting comments ignore the Discourse Translator plugin
Points based currency to reward quality
Building a plugin to add Stack Exchange features
Grow my community
But I didn't click Answer, I clicked Edit
Showing replies "in-place" like Reddit, instead of show 'em at the bottom
Badge Query (SQL)
Topics vs Posts vs Replies
Topic Ratings Plugin
Topic Ratings Plugin
Reordering a topic by ‘most liked’ or threaded replies
Renaming Discourse Upvotes [Post Voting]
- 1 like feature
How to simplify the forum? (couple of needs listed)
What Will be Best theme for a site like ecommerce
Is there any plugin for downvoting questions and replies in Discourse
Feedback on Our Community
'I have same question' theme/plugin
Journal Plugin
Looking for a plugin for upvote/down votes
Creating an Analytical Hub using Categories, Approval Process and Upvoting
Custom embedded replies
Nested comments feature
Whispers disappear from the display but still are in the database
Whispers cannot be seen in Post Voting enabled categories
Bundling more popular plugins with Discourse core
Photo Competition or Contest - Do We Have Anything?
Admin setting for activity default sort order for Discourse Post Voting plugin
Introducing nested replies
I am looking for a Reputation/Karma system that display below profile avatar in topic post and profile
No indication on post voting "Votes" tab that whispers exist
Customize new topic button text
No indication on post voting "Votes" tab that whispers exist
Peut on changer le texte dans la notification
Looking for a plugin for upvote/down votes
Idea-voting, two different styles?
Referencing types of review items created by plugins
An error occurred while restoring from a backup: discourse_functions.raise_discourse_voting_category_settings_readonly() does not exist
Community Notes in Discourse to Combat Misinformation
Journal Plugin
How to mention in Discourse comments, or disable commenting?
Question Answer Plugin
Need a developer to get over the last couple of humps to launch our community
How do I get users to reply to each other? This doesn't appear on my site
Discourse Topic Voting
Question Answer Plugin
Integrating Discourse and Stackoverflow?
Integrating Discourse and Stackoverflow?
How to Sort Posts By User Engagement?
Looking for a way to set the post section
What would be the best plug-in for Contest with public voting in two categories?
How to make our forum looks like Q&A community than a forum?
Sort answers by number of likes in topic
Ordering replies by most liked
Some users get javascript errors when trying to load our Discourse
Question Answer Plugin

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개의 좋아요

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.

4개의 좋아요

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.

2개의 좋아요

Ahoj,

in :up_right_arrow: 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 :up_right_arrow: this post), and also they are limited in numbers of characters, prohibiting more complex thoughts.

Regards!

4개의 좋아요

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.

1개의 좋아요

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개의 좋아요

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

Is it possible to limit the number of downvotes that users can cast globally across all topics within a day, with this plugin?

Is it possible to move the location of this feature? Ideally we’d like to have it where the current double button like button is.

1개의 좋아요

I can’t @ a user when replying to a post in a voting post. Is this intentional or a bug?

1개의 좋아요

Within the comment rather than in a ‘proper’ reply? If so, I think that is intentional to keep the comments more lightweight than a full composer experience. This has been asked before (How to mention in Discourse comments, or disable commenting?), but I don’t think a Contribute > Feature request was submitted in the end.

2개의 좋아요

I think this also. :slight_smile: But Sam is adamant that it is a thing:

It doesn’t look like there are any badges knocking around for this yet.

If you have specific badge criteria for any you’d like to create you should fire up a #data-reporting topic for each one. :+1:

I think a couple of examples could be along the lines of:

get 10 votes on a post voting reply

SELECT p.user_id, p.created_at AS granted_at, p.id AS post_id
FROM post_voting_votes pvv
  JOIN posts p ON p.id = pvv.votable_id
WHERE pvv.direction = 'up'
  AND p.post_number <> 1
  AND (:backfill OR p.id IN (:post_ids))
GROUP BY p.user_id, p.id
HAVING COUNT(*) >=10

Or a slightly more nuanced one where you accounted for ‘up - down’ votes:

WITH vote_totals AS (

SELECT 
    p.user_id,
    p.id AS post_id,
    p.created_at AS granted_at,
    (COUNT(*) FILTER (WHERE pvv.direction = 'up') - COUNT(*) FILTER (WHERE pvv.direction = 'down')) AS total
FROM post_voting_votes pvv
  JOIN posts p ON p.id = pvv.votable_id
WHERE p.post_number <> 1
GROUP BY 1, 2

)

SELECT *
FROM vote_totals 
WHERE total >= 10
  AND (:backfill OR post_id IN (:post_ids))

:red_exclamation_mark: These will need some further testing to make sure they’re working as intended. :slight_smile:

Though one thing to consider is that the total is dynamic so a ‘10’ today could turn into a ‘5’ tomorrow if more downvotes are added (for the second example). And if the badge is just based on upvotes like the first example then you may have got 10, but the UI only shows 5 when the downvotes are totalled in.

5개의 좋아요

Hi, just activated that plugin on a French site and noticed the wrong French translation for the second option in the category settings:

Les nouveaux sujets ne peuvent être que des sujets postérieurs au vote dans cette catégorie.

It should be:

Les nouveaux sujets ne peuvent être que des sujets de vote de message dans cette catégorie.

explanation: confusion between “post” as a message that can be a post and post as “posterior”, meaning after.

Hi, also is it possible to activate posts voting for topics that have already been published ? Thanks

:partying_face: This plugin is now bundled with Discourse core as part of Bundling more popular plugins with Discourse core. If you are self-hosting and use the plugin, you need to remove it from your app.yml before your next upgrade.

1개의 좋아요