Likes

Nao

  • Dadman with a boy
  • Posts: 16,079
Likes
« on May 11th, 2011, 03:40 PM »Last edited on October 8th, 2014, 09:11 PM
Area: Miscellaneous
Feature: Reactions (Likes)
Developer: Arantor & Nao
Target: users
Status: 95% (core functionality implemented for posts and thoughts)
Comment:

We never liked karma in SMF. We don't like the idea that people get thumbs down on the basis of a message, but they never get to know which posts got them that reputation. Plus -- it's a bit of an ego trip.

Implementing 'like' buttons on posts/topics is a better way of actually guiding people through a user's best posts. We're hoping to implement the feature in every possible feature, such as media items.

The structure already implemented allows for liking any structure in theory - even plugin-added ones, and there's already the foundation for even doing it through AJAX, just more UI work needs to be done; most of the core was added in enough time to get it on wedge.org with more to follow ;)

:edit: October 2014: added support for multiple like types; renamed to 'Reactions'.

Re: Like/dislike
« Reply #91, on March 17th, 2012, 01:18 AM »
Eheh :)
Since Pete wrote the feature, I think he should be the one to update the first post in the list.
How much has it reached now...? 50% completion? 60%? 90%?
It all depends on how much we're going to add later...

Re: Like/dislike
« Reply #92, on March 17th, 2012, 01:21 AM »
Certainly 60%.

Re: Like/dislike
« Reply #93, on March 17th, 2012, 01:23 AM »
Let's say 61% once we fix the 'x and y like this' div to not stand out too much compared to the rest of the post ;)

Re: Like/dislike
« Reply #94, on March 17th, 2012, 01:26 AM »
Works for me :)

Re: Likes
« Reply #95, on March 22nd, 2012, 05:54 AM »
I don't know if this has been mentioned, but something I like:

If dislike *is* implemented (I don't mind either way), a certain amount of dislikes would send an automatic report to the administrator to have it checked out. That would be sweet :) Just popping ideas around! :D

Re: Likes
« Reply #96, on March 22nd, 2012, 07:24 AM »
We decided against Dislikes quite some time ago.
Either reddit or Facebook. Can't have both!

Re: Likes
« Reply #97, on March 22nd, 2012, 09:02 AM »
Did we? I don't actually remember that, but I guess the likes structure has no support for it at the present time.

Re: Likes
« Reply #98, on March 22nd, 2012, 09:08 AM »
If we didn't, at least I consider we did ;)
Re: Likes
« Reply #99, on March 22nd, 2012, 12:22 PM »
Oh, just wanted to be sure... Likes are associated to a post ID, right? So, if we merge or split a topic, Likes are kept everytime?
(I'm 99% positive it's yes, but I would be mad at myself for not making sure of it.)

Also, it may be possible that I forgot to deal with parent posts when splitting and merging topics. That, I'm 40% positive I dealt with them...
Not that it matters much for now (we're not using that field), but it may in the future...

Re: Likes
« Reply #100, on March 22nd, 2012, 12:27 PM »
Correct, yes, it's always on post id, never topic.
Quote
Also, it may be possible that I forgot to deal with parent posts when splitting and merging topics. That, I'm 40% positive I dealt with them...
We'll figure it out. There's always maintenance and find/repair routines we can make ;)

Re: Likes
« Reply #101, on March 22nd, 2012, 12:29 PM »
Sure, but I'd rather we have a clean codebase to begin with... :lol:
Re: Likes
« Reply #102, on May 17th, 2012, 10:59 AM »
Is it as desired, that we're not caching likes in the posts table...? (ot topic table even? per first-post or for all posts in the topic?)

I could see it as an interesting sort method, even if we still need to tell if our own likes are in these.

Re: Likes
« Reply #103, on May 17th, 2012, 12:56 PM »
Well... if it's being done for sorting, it makes no difference whether a given person's is in there or not, since you'd just be sorting based on the like count of a topic.

I didn't bother putting it there since I didn't really see that much of a use for it at that level...

Re: Likes
« Reply #104, on May 17th, 2012, 03:08 PM »
Well, we can always add this later and do a small script to import all data from the likes table of course...

Re: Likes
« Reply #105, on May 17th, 2012, 03:16 PM »
Of course we can :) I'm just not sure we need it at this point in time ;)