Advertisement:

Author Topic: Like Posts  (Read 289368 times)

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Like Posts
« on: June 29, 2013, 09:29:03 AM »
Like Posts

This mod provides and interface to like/unlike posts.

Features
- Users can like posts within a topic.
- Whereas on message index only the first post of topic is taken into consideration. One can like first post of topic from message index also.
- A notification system, where users can see who has liked what post in real time.
- Total no of likes user has received so far is shown in post displays.
- In profile section one can see the likes given and received by a user so far.
- A complete dedicated admin interface, to control various features of mods
- Interface to see various stats related with the mod. The section can be accessed using the 'Like stats' button provided in the website navgation



Admin interface

General Settings
- Enable disable the mod with a single click
- Enable disable like stats completely
- Enable disable like posts notification for everyone
- Number of likes to show at once in user profiles
- Number of likes to show at once in notification panel
- Whether to show like button on message index or not
- Show total likes in posts under user avatar


Permission Settings
- Enable the permission "Can like posts" for those groups who can like the posts.
- Enable the permission "Can view like" for those groups who can view who liked which post.
- Enable the permission "Can view likes of other users in their profiles" for those groups who can view like summary of other users in there profiles.
- Enable the permission "Can view stats of liked posts" for those groups who can view like posts stats
- Enable the permission "Can view notifications of liked posts" for those groups who can view like posts notifications
- Enable the permissions for guests about where they can see likes i.e in posts/topics, boards, profiles & whether or not they can see the liked posts stats


Board Settings
- Select on which boards you want to enable the mod
- If you want to select all boards in a category, just click on the category name


Recount Like Stats
- To remove the deleted messages from likes count and stats
- Removes duplicate entries from like table
- To recount the total likes user has received so far. One should run this once a month at least.


Note - If you are upgrading from version < 1.2, please recount the total like of the users from:
My Community » Administration Center » Like Posts  » Recount Like stats


GitHub Link
Change log

All suggestions related to core features and UI are most welcomed.


All images/css used in the mod falls under the license used below.

License
 * This SMF Modification is subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this SMF modification except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
« Last Edit: October 27, 2014, 12:11:11 PM by Joker™ »
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline cblaber

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,271
  • Gender: Male
    • cmblaber on LinkedIn
Re: Like Posts
« Reply #1 on: June 29, 2013, 01:27:03 PM »
Interesting, any screenshots? :)
Colin Blaber
Former Customize & Support Team Member

Offline Dhayzon

  • Sophist Member
  • *****
  • Posts: 1,092
  • Gender: Male
  • DhayZone RevolutioN
    • Dhayzon on GitHub
    • @dhayzon on Twitter
    • http://dhayzon.com/
Re: Like Posts
« Reply #2 on: June 29, 2013, 01:57:58 PM »
screenshots ::) please


edit: excellent mod I like
« Last Edit: August 12, 2013, 05:38:43 PM by {dhayzon} »

TheListener

  • Guest
Re: Like Posts
« Reply #3 on: June 29, 2013, 01:59:07 PM »
screenshots ::) please

Why repeat the previous posters request?

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #4 on: June 29, 2013, 02:09:27 PM »
Interesting, any screenshots? :)

screenshots ::) please
Added :).

screenshots ::) please

Why repeat the previous posters request?
And the million $ Q award goes to.... :P
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline littlenicki

  • Jr. Member
  • **
  • Posts: 195
Re: Like Posts
« Reply #5 on: July 02, 2013, 04:30:37 PM »
Hello, this looks like a great mod! Could you please do a SMF 1.1.18 compatible version? Thank you, Nicole
Fomer SMF user. Switched to Invision Power Board and VBulletin

Offline Dzonny

  • Lead Localizer
  • SMF Super Hero
  • *
  • Posts: 11,614
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Like Posts
« Reply #6 on: July 02, 2013, 06:48:10 PM »
Tnx Joker, a lovely one :)

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #7 on: July 03, 2013, 11:55:30 AM »
Hello, this looks like a great mod! Could you please do a SMF 1.1.18 compatible version? Thank you, Nicole
Thanks for the compliment. Sorry, I'm not back-porting any of my mods to SMF 1.x branch, as a stable version (SMF 2.x) is already out.

Tnx Joker, a lovely one :)
Thank you :).

Guys, any suggestions/improvements/features in mind for mod?
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,101
    • @studyforceps on Twitter
    • Study Force
Re: Like Posts
« Reply #8 on: July 12, 2013, 09:33:44 PM »
Excellent mod, Joker™!

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #9 on: July 13, 2013, 11:49:35 PM »
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,101
    • @studyforceps on Twitter
    • Study Force
Re: Like Posts
« Reply #10 on: July 14, 2013, 01:57:58 AM »
As for suggestions, I'd replace the "Like" and "Unlike" with images (i.e. a thumb, or sad/happy face). Once clicked, a tooltip should appear saying "you now like this topic" (or, something appears beside the thumbs up image).

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #11 on: July 14, 2013, 10:38:13 AM »
As for suggestions, I'd replace the "Like" and "Unlike" with images (i.e. a thumb, or sad/happy face). Once clicked, a tooltip should appear saying "you now like this topic" (or, something appears beside the thumbs up image).
Nice nice. Also I'm thinking of adding page in user profile, where one can see:

1. How many messages he/she has liked, and
2. How many of his posts are being liked
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,673
  • Gender: Male
  • Premium SMF Themes
    • idesign360 on Facebook
    • @idesign360 on Twitter
Re: Like Posts
« Reply #12 on: July 14, 2013, 11:12:36 AM »
Very nice. Im using this now and i dig the fact one cant like its own comment. Im changing the text link for a thumbs up/down sprite.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,101
    • @studyforceps on Twitter
    • Study Force
Re: Like Posts
« Reply #13 on: July 14, 2013, 12:28:42 PM »
Quote
1. How many messages he/she has liked, and
2. How many of his posts are being liked

Perfect, keep a track of all the threads you've liked in past.

Im changing the text link for a thumbs up/down sprite.

Nice.

In addition, once the image is clicked, it darkens, to show that it was clicked.

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #14 on: July 15, 2013, 10:17:34 AM »
Very nice. Im using this now and i dig the fact one cant like its own comment. Im changing the text link for a thumbs up/down sprite.
Glad you guys are liking it.

TBH, personally the FB feature of liking you own post is in top 10 of my most hated things :P.

Well, I also want to add images in the mod, but I'm trying to get an idea of something different from thumbs up/down images(I hope you don't mind).

As this modification is going to do a lot more than FB likes, so why not have something different from it in terms of visual effect :P.

Even I don't know the potential of this modification right now :-X. Just saying again, I'm hearing and ready to implement the ideas present by the community in this mod, as far as we can keep this mod from getting bloated.
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline barnaby jonez

  • Semi-Newbie
  • *
  • Posts: 16
Re: Like Posts
« Reply #15 on: July 16, 2013, 11:58:21 AM »
Hi Joker,

I'm currently using illori's "SMF Likes Plus" and while it gets the job done, the biggest flaw is that there's really no "feedback" on Likes.

I'd like it (this sounds demanding, but it's just a suggestion) if Likes behaved like so:

- Like/Remove Like posts (simple enough, it already does this)
- How many Likes has this user received? (Profile page)
- How many Likes has this user given? (Profile page)
- (The big one) Feedback on when a Like has been given. Perhaps some AJAX involved? Similar to how you get a PM, there is a notification.
-- Perhaps a way to show what posts/threads did give you Likes? So a user knows there is activity, even in an older thread. Maybe a last 5 threads where there was activity. Unsure of the best approach here.

While there is already a pretty feature filled Likes mod that costs money (and deservedly so), I'm on board for a free one that can reach even half the ability of it, so long as it fits the basic needs for a community.

I haven't tried your mod out as-is, but hopefully I can painlessly transfer over my current Likes from the current mod I use. Thanks for your time.

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #16 on: July 16, 2013, 12:16:26 PM »
Just pointing out the status of the points you have mentioned above.

- Like/Remove Like posts (simple enough, it already does this) - Done
- How many Likes has this user received? (Profile page) - Yet to implement
- How many Likes has this user given? (Profile page) - Yet to implement
- (The big one) Feedback on when a Like has been given. Perhaps some AJAX involved? Similar to how you get a PM, there is a notification. - Yet to implement (right now there is just a text change, I'm just waiting to get my hands on photoshop)
- Perhaps a way to show what posts/threads did give you Likes? So a user knows there is activity, even in an older thread. Maybe a last 5 threads where there was activity. Unsure of the best approach here. - Yet to implement (can you elaborate this one)

Well, my mods were always free, are free and going to be free of cost. I love to code for SMF :).
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline barnaby jonez

  • Semi-Newbie
  • *
  • Posts: 16
Re: Like Posts
« Reply #17 on: July 16, 2013, 12:22:05 PM »
Joker,

Using an example from vBullitin, when you receive a Like, you click on that notification, and it will show you what posts were given likes, and by whom. [X Person liked your post(s) in this thread...]

Similarly, Facebook does this the same way. [X Person liked your Status...]

It doesnt have to be as specific as this, but something that basically says "Hey, there is some activity. Someone read your post, and liked it." -- this gets the user to zip straight there and see who is giving them props.

Does this help?

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #18 on: July 16, 2013, 12:25:52 PM »
Joker,

Using an example from vBullitin, when you receive a Like, you click on that notification, and it will show you what posts were given likes, and by whom. [X Person liked your post(s) in this thread...]

Similarly, Facebook does this the same way. [X Person liked your Status...]

It doesnt have to be as specific as this, but something that basically says "Hey, there is some activity. Someone read your post, and liked it." -- this gets the user to zip straight there and see who is giving them props.

Does this help?
Hmm, sounds much clear now. Just thinking of the server load in the case, when some crazy person like me goes on a post liking rampage.

Just tracking everything on GitHub
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,101
    • @studyforceps on Twitter
    • Study Force
Re: Like Posts
« Reply #19 on: July 16, 2013, 07:43:01 PM »
If the person get's a PM everytime their post is liked, it shouldn't hurt the server load, should it? I'd be more concerned with people getting annoyed by the PMs. I suppose you could add an option that prevent notifications if that becomes an issue.