MOD: Like Button (Internal, not external to Facebook or anything)
Posted by Robert Angle
January 30, 2012 12:33PM |
Registered: 17 years ago Posts: 533 |
I have a number of users that want a like button for the posts.
The preferred like button would record a like for that post to the database. Who liked what would be displayed on posts (and if the list of users who liked a post was above a certain number, the display would be cut off, but a link to a pop up window with a complete list would be made available).
A bonus, but not necessary, would be to be able to see a list of what a user liked in their profile (and then after the X amount of recents, a link to an addon page pop up for a more comprehensive list.)
My users are not interested in a Facebook like button, however, because of privacy concerns (we're a username, not a real name, community).
Robert Angle
Phorum lover, nothing more.
Ruminations
The preferred like button would record a like for that post to the database. Who liked what would be displayed on posts (and if the list of users who liked a post was above a certain number, the display would be cut off, but a link to a pop up window with a complete list would be made available).
A bonus, but not necessary, would be to be able to see a list of what a user liked in their profile (and then after the X amount of recents, a link to an addon page pop up for a more comprehensive list.)
My users are not interested in a Facebook like button, however, because of privacy concerns (we're a username, not a real name, community).
Robert Angle
Phorum lover, nothing more.
Ruminations
Re: MOD: Like Button (Internal, not external to Facebook or anything) January 18, 2013 05:29AM |
Registered: 12 years ago Posts: 2 |
Re: MOD: Like Button (Internal, not external to Facebook or anything) March 11, 2013 08:38AM |
Registered: 12 years ago Posts: 2 |
Re: MOD: Like Button (Internal, not external to Facebook or anything) August 08, 2013 06:38AM |
Registered: 19 years ago Posts: 35 |
Re: MOD: Like Button (Internal, not external to Facebook or anything) June 18, 2014 03:46PM |
Registered: 11 years ago Posts: 16 |
The original post at this thread head was two years ago. I see dozens of similar requests for other forums (phpBB, vanilla, simple machines, etc....all largely inferior to phorum for lots of reasons, but similarly devoid of like buttons).
Why is this so hard? How would it work?
A "phorum.phorum_likes" junction link table with triplet rows of primary_key, user_id (of the liker) and message_id. Incoming likes would be a post that aborts if that user has already liked this message, Or deletes that phorum.phorum_likes row (liker user_id message_id pair) if the incoming post says "unlike" instead of like? Perhaps it's tricky because you would need a de-normalized running total somehow, somewhere, so each message list query wouldn't have to calculate and re-calculate the current like total constantly. Is that why it's hard?
I must be missing something. It seems so simple. But if it was that simple there'd be like button mods for all forums. Because so many users are requesting it. Perhaps the running likes total (for each message_id) would be another junction link table that is primary_key, message_id and total number, which would get triggered and adjusted for each like or unlike post. That total would have a tendency to get out of wack I suppose. But a nightly cron job could synch those two tables every 24 hours. At 2:00am
Edited 1 time(s). Last edit at 06/18/2014 03:51PM by spittendrigh.
Why is this so hard? How would it work?
A "phorum.phorum_likes" junction link table with triplet rows of primary_key, user_id (of the liker) and message_id. Incoming likes would be a post that aborts if that user has already liked this message, Or deletes that phorum.phorum_likes row (liker user_id message_id pair) if the incoming post says "unlike" instead of like? Perhaps it's tricky because you would need a de-normalized running total somehow, somewhere, so each message list query wouldn't have to calculate and re-calculate the current like total constantly. Is that why it's hard?
I must be missing something. It seems so simple. But if it was that simple there'd be like button mods for all forums. Because so many users are requesting it. Perhaps the running likes total (for each message_id) would be another junction link table that is primary_key, message_id and total number, which would get triggered and adjusted for each like or unlike post. That total would have a tendency to get out of wack I suppose. But a nightly cron job could synch those two tables every 24 hours. At 2:00am
Edited 1 time(s). Last edit at 06/18/2014 03:51PM by spittendrigh.
Re: MOD: Like Button (Internal, not external to Facebook or anything) August 03, 2014 09:39PM |
Registered: 17 years ago Posts: 61 |
Sorry, only registered users may post in this forum.