Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Likes] Generalise to a "Rate" extension #306
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:
At the same time, we want to keep things reasonably simple. Discuss.
Copied from original issue: flarum/likes#1
changed the title from
Generalise to a "Rate" extension
[Likes] Generalise to a "Rate" extension
Aug 29, 2015
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@example.com wrote:
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).
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
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).