How can I add "dislike" button?

Hi,

I want to add dislike button on every comment. Is there any plugin or something about that? Can you help me guys? Thanks.

3 Likes

Doing a search for reactions returns a few promising results:

That first link in particular is about Retort, a plugin that allows users to react to posts using emojis.

4 Likes

Hi G3M1N1 welcome to the forum

Yes, it is possible to add to the post menu.

But I question the effect such a feature would have on community spirit.

I imagine most people are tough-skinned enough, but I know there are often members that are more sensitive to negative feedback.

Itā€™s one thing to notice that other members are not Liking your posts, itā€™s another to know other members are Not Liking your posts.

8 Likes

In my opinion, I would like to change the ā€œflagā€ icon with that ā€œdislikeā€ icon. :stuck_out_tongue:

2 Likes

But then how would you differentiate Really Bad Content ā„¢ like spam?

The flagging system is there for stuff that shouldnā€™t be on the forum. A dislike feature would be for content that belongs on the forum butā€¦ isnā€™t liked?

Iā€™m with @Mittineague here that a dislike feature feels a little too negative, but the flag system is for a very specific purpose that you donā€™t want to lose.

11 Likes

Ok, youā€™re right.
You changed my mind :stuck_out_tongue_winking_eye:

1 Like

I definitely need a few more buttons along with a dislike button that has a similar functionalty to the like button. How would I go about adding one?

Edit: or how do I tie it to badges like the like button is

1 Like

@mcbuzz Have a look at the Retort plugin code.

2 Likes

I saw that, unfortunately the author said himself itā€™s not related to the like functionality at all, in terms of how user trust levels are determined by ratio of likesā€¦

1 Like

Iā€™m surprised that nobody has pointed you to discussions about why dislike buttons are a disliked idea and why they will never be part of core Discourse. Maybe youā€™ll decide likewise given more information.

Ā 

7 Likes

I understand that the Discourse team is against adding dislike buttons, but I would just like someone to direct or give me instructions on how I would add it to my own forum (through a plugin I would make). Iā€™m not trying to convince or disregard their opinion, but this is a something that our users use and want. Not only that, moderators would use it to see whoā€™s not fitting into the community at large whether due to trolling or other reasons.

4 Likes

I believe the easy way is to use the Retort plugin, and limit the reactions available to just your choice of dislike emoji.

Thanks @elijah, but this plugin has already been suggested two or 3 times and itā€™s not exactly what Iā€™m looking for. I need those buttons because they need to tie into a reputation system at large. Basically this is becoming a huge disappointment in the software that I am unable to customize it how Iā€™d like my forum to lookā€¦I wanted people to see the next-gen of forums, but you guys are not giving me any options in compromise for features people want to use. For our users, itā€™s not the point just to react to a post, but that their reaction means something within our forum ecosystem. Iā€™m not looking for an ā€œeasy wayā€ I have realized that itā€™s going to be ā€œhardā€ to implement this, but againā€¦Iā€™m asking for a bit of direction from some knowledgeable members. Hereā€™s what Iā€™m asking for help on:

  • Someone pointing me to the functionality in the code so I can recreate it for 2 other buttons.

Is there anyone who knows how to do this?

Sorry to point you at the Retort plugin again, butā€¦ it is open source! Feel free to take it, limit it to a dislike reaction and then tie these reactions into the trust level system as you see fit :slight_smile:

2 Likes

Ok I can try to do that. Now the only issue is how! :confounded:

If you want to swim in rapids upstream, asking for basic swimming lessons is only going to get you so far

6 Likes

I donā€™t really have anything to add, but need at least 20 characters to be able to submit this :wink:

4 Likes

It always goes well when people think they know better than anyone else what people want. That was sarcasm, usually no one likes that guy. Too bad you guys feel the need to have 10 replies of why I shouldnā€™t do something instead of being of the spirit of actual free discourse. Itā€™s like an echo chamber in hereā€¦ ā€œretort pluginā€¦we donā€™t like dislike buttonsā€¦ā€

2 Likes

What do you want, exactly? Neither Discourse core nor any plugin we know of implements a dislike button that affects trust levels. If you want that, someone has to create it.

If you want someone to create it for you, I recommend posting an offer in #marketplace ā€“ your chance of the team or someone else implementing it for themselves is pretty slim because itā€™s a rare request.

If you want to do it yourself, youā€™ll have to do the hard work yourself. Iā€™m sure youā€™ll get helpful responses here if you stumble over something and ask a concrete question!

If youā€™re looking for the source code of the Retort plugin, itā€™s here. If you need general help on getting started to write plugins, hereā€™s a guide by @eviltrout.

3 Likes

My issue is that thereā€™s not a comprehensive api where I would access existing values. A la a plugin api. Looking at the Discourse github thereā€™s a lot of files and for me, itā€™s kind of hard to traverse it looking for how ā€˜the likeā€™ works when I donā€™t know the reference names even. Is it in the database? Is it an attribute? Very difficult to see, which of course is probably due to my inexperience but the fact remains plugin support and documentation seems severely lacking. Looking at the plugin guide itā€™s slanted towards admins customizations, instead of sitewide customizations. my whole point was if there is no access endpoint for ā€œlikesā€ where would I look to see the core functionality and extend it (especially when its more complicated than using handlebar outlet) ?