Discourse Topic Voting

I really enjoy this plugin - thank you to the developers who work on it, its a big boon to my Discourse community.

I’m curious about users gaining votes after using all their votes. I have increased the caps for user votes a few times because some of our most engaged community members vote on a lot of topics. I was wondering if votes could be re-generated for a given user over time up to a cap, or if there was another way to reward users with additional votes. It seems like the main mechanism for granting votes is a static number for an entire trust level, but I might be missing something.

Thanks!

2 лайка

Hey nivshah :waving_hand:

If I’d have to hazard a guess, the reason you can limit votes is so that your members use them wisely and don’t vote for everything else it kind of devalues a vote.


At the moment one way users can get their vote back is by closing the topic. Let’s say you decided to implement a voted feature into a game for example, you can close the topic and this will refund users that vote if you will and they will be able to use it on another topic.

4 лайка

Closing a topic is exactly what I needed here. Thank you.

2 лайка

: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.

2 лайка

I might have missed this, but is it possible to change your vote once you’ve submitted it? Say a user accidentally votes for the wrong topic, or changes their mind - are they stuck w/ their mistake?

They are apparently able to be liked now according to this topic on a forum I am in: Suggestion Topics can be liked now - Not Terraria Related - Dark Gaming

I’m not sure this is intended but I just wanted you to know

I think it’s because the reaction plugin is enabled. The code from the topic voting plugin that hides the like button doesn’t hide the reaction button.

You’d need CSS that hides the reaction button and existing reactions. Something like

.topic-post.voting-post {
  .discourse-reactions-actions,
  .discourse-reactions-actions-button-shim {
    display: none;
  }
}
2 лайка

Hi,

We noticed the following site settings which control the active vote limit for each Trust Level:

  • topic voting tl0 vote limit

  • topic voting tl1 vote limit

  • topic voting tl2 vote limit

  • topic voting tl3 vote limit

  • topic voting tl4 vote limit

We would like to effectively remove or disable the vote limit for all or most Trust Levels (TLs), allowing users to have an unlimited number of active votes.

Could you please advise on the recommended way to achieve this?

Is there a specific value (e.g., setting it to 0 or -1) that signifies unlimited votes for these settings?

Thank you.

1 лайк

That sounds handy in your case – but a topic creator may not always want to vote for that topic. A comment I made elsewhere:

1 лайк

You can always un-vote a topic. Each user has limited votes at their disposal, so this is necessary.

Fair point. I’d love for it to be a configurable option, though.

1 лайк

Есть ли способ настроить расширенный поиск с учетом голосования по темам? Я видел этот пост, но он закрыт: Is there a way to filter serach results based on Voting?, и мои пользователи задают вопросы. У нас есть лишь несколько мест, где можно голосовать, поэтому было бы здорово, если бы можно было ограничить поиск в расширенном поиске и сортировать результаты по количеству голосов.

Расширенный поиск сейчас не поможет, но параметры фильтрации, упомянутые в связанном посте, могут оказаться полезнее, чем кажется на первый взгляд. Это не так удобно, как опция расширенного поиска, но, возможно, лучше, чем ничего:

Есть несколько различных факторов голосования, по которым можно фильтровать:

И в зависимости от того, как вы ведёте учёт, вы можете либо:

  • добавить status:open
  • исключить тег, поставив перед ним «-», например, -tag:completed

Таким образом, вы можете увидеть самые популярные открытые запросы с помощью фильтра, например:

  • category:feature status:open order:votes
  • category:feature -tag:completed order:votes

Затем для ваших пользователей вы можете сохранить URL фильтра в виде ссылки на боковой панели:

  • /filter?q=category%3Afeature%20status%3Aopen%20order%3Avotes%20
  • /filter?q=category%3Afeature%20-tag%3Acompleted%20order%3Avotes%20

Когда открыт отфильтрованный вид, отображаются параметры фильтрации, и пользователь может добавить дополнительные ключевые слова для дальнейшего уточнения:

Окно ввода фильтра с добавленным ключевым словом к существующим параметрам.

1 лайк

Не идеально, но, похоже, там больше возможностей, чем я думал. Спасибо.

1 лайк