Core: [Likes] Generalise to a "Rate" extension

Created on 29 Aug 2015  Â·  15Comments  Â·  Source: flarum/core

_From @tobscure on August 27, 2015 13:52_

I think it might be good to make this extension a bit more powerful, allowing people to configure the following:

  • Optionally enable downvoting, giving each post a numeric score
  • Customize the terminology used, e.g. "like", "agree", "+1"
  • Customize the icon used, e.g. thumbs-up, heart, caret-up
  • Think about the concept of reputation/karma
  • Think about "reactions", like Facebook have recently added, and GitHub have just added to their comments
  • Add an option to allow/disallow the liking of one's own posts

At the same time, we want to keep things reasonably simple. Discuss.

_Copied from original issue: flarum/likes#1_

needs-discussion typfeature

Most helpful comment

Making a note to think about "reactions", like Facebook have recently added, and GitHub have just added to their comments

All 15 comments

Reputation system: it would be great if you take inspiration from Stack Exchange's approach. It makes easy to make posts interesting.

Thoughts on this?

On Aug 29, 2015, at 12:35 AM, "Toby Zerner" [email protected] wrote:

From @tobscure on August 27, 2015 13:52

I think it might be good to make this extension a bit more powerful, allowing people to configure the following:

Optionally enable downvoting, giving each post a numeric score
Customize the terminology used, e.g. "like", "agree", "+1"
Customize the icon used, e.g. thumbs-up, heart, caret-up
Think about the concept of reputation/karma
At the same time, we want to keep things reasonably simple. Discuss.

Copied from original issue: flarum/likes#1

—
Reply to this email directly or view it on GitHub.

If you leave out the reputation/karma idea of your suggestions the criteria simple is still possible, I tend to believe however if you include that feature it will grow a little more complex. What if you split the reputation element into a separate feature and include all other listed features in the Like extension?

I think going for a slightly customized system would fit everyone's needs across the board. Having the default "like" system could stay, where the extension configuration of the admin panel can toggle to have the rating extension either show or hide the "dislike". Then, this can easily be turned to any text for the like/dislike, such that one can say +1, thumbs up, love it, etc. for the positive call or -1, thumbs down, dislike it, etc. for the negative call.

Maybe using font awesome icons for the available icons would work out best, that way the user could pick from a range of small icons to replace the thumbs up (as it currently is) into whatever they want.

As for reputation, that could be the same. Have a system where the user can replace the text to whatever they want in the extension configuration of the admin panel (with the same ideas as before, having it limited to only positive, or both positive and negative calls).

The great thing about an extension system, is you don't have to build something that fits everyone's needs - others can build it.

As far as icons go, I like the system for choosing icons for groups at the moment. It has a finite amount of images, but they're pretty diverse and should accommodate most boards. I think they could also serve for icons for this feature, too.

Instead of a specific +/- system, why not start with Like and allow admins to add other ratings. That would allow them to do something like a Thumbs, Heart, Smiley, Exclamation Point as ratings, or Like/Ambivalent/Dislike, or just plain +/- if they so choose. In this system, I envision ratings would have an ID, name, display icon (overwrites the name on display if present) and rating value (numerical, blank is disabled) in the database. The rating value could be displayed on profiles or disabled (so that ratings would only appear on posts with the value being held in the database somewhere but not actually in use).

If this were to be built into the core, or as a built-in extension, that's how I'd do it.

I second the post writed by @jordanjay29 .

Making a note to think about "reactions", like Facebook have recently added, and GitHub have just added to their comments

Great thinking! That's exactly what I thought about, too, when I saw that GitHub announcement. Though we could also create this as a separate extension...

Perhaps we could use the github emojis and based on the positive or negative connotation of the emoji generate a user's karma/reputation.

@dav-is - yes, that would be nice

I started to develop a Reactions extension, but I sadly had to stop developing as I got another project to finish. It'd be nice for someone to try to continue developing, and then PR me the changes (everything works except for Flarum to show the reaction name in the relationship).
The last development is at datitisev/flarum-ext-reactions#fixing-reactions-names

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum.
In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!

Is there a working extension for this? If yes, close this one. Better to handle with extension.

There's FoF Reactions.

Yeah, I'm going to close this in favor of the third party extension by fof (previously reflar).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tobyzerner picture tobyzerner  Â·  4Comments

tjrgg picture tjrgg  Â·  3Comments

luceos picture luceos  Â·  4Comments

jordanjay29 picture jordanjay29  Â·  3Comments

gingerbeardman picture gingerbeardman  Â·  4Comments