Feature proposal #3788
closedImplement like buttons
Description
Implement the ability to like another asset. The base for this stream api should be the follow class. There should only need to be 2 endpoints. 1 for displaying the button(s) (which also includes the ajax) and 1 for saving the stream. When creating a likes stream the asset supplied is the asset to be liked.
For the button display endpoint it's probably best to reserve show/default for an actual view (e.g. if in the future there's a view to display all the assets the user liked) so use ->likes( 'button' ) instead.
A database table needs to be added to handle the storage of the likes and a table for storage of the various like buttons (e.g. just like Locations, Actions, etc..).
Updated by krileon about 12 years ago
This will be ajax powered, so no page loads.
Updated by krileon about 12 years ago
This should be an API that can be used by other plugins so it needs to be generalized. It should function like CB Captcha where it's based off a trigger call.
Example DB Structure:
ID, TYPE, SUBTYPE, ITEM, USER, STATUS, DATE
Updated by krileon about 12 years ago
- Target version changed from 2.0.0 to 3.0.0
Updated by krileon about 12 years ago
This will be new API Library in CB 2.0 for CB Activity to utilize.
A "Toasts" API should also be added so a user can say they basically read the activity, but don't like or dislike it.
Updated by krileon almost 10 years ago
- Target version changed from 3.0.0 to 4.0.0
Updated by krileon almost 10 years ago
First develop CB Thumbs API plugin to add a generic like/dislike/toast API then use it for the like/dislike feature.
Updated by krileon almost 10 years ago
- Target version changed from 4.0.0 to 722
This needs CB Thumbs API plugin.
Updated by krileon almost 10 years ago
- Target version changed from 708 to 4.0.0
Updated by krileon almost 10 years ago
This should be built into CB Activity. It needs to provide a sharing API and thumbs API as it does an activity and commenting API.
Updated by krileon over 9 years ago
Like/Dislike will NOT post on the stream. Instead a separate tab will be provided to showcase someones likes. What will show on the stream is Share, which is really its intended purpose, but it'll allow sharing outside of the stream as well.
Updated by krileon over 9 years ago
Optional system action to log likes could be fine as well. So this way it's up to the site.
Updated by krileon over 8 years ago
Instead of Toast simply do: Like, Dislike, Thanks. This would be more universally understood. This really should be a new storage table though and work like Actions and such were you can specify custom usages. So you could have Love, Hate, etc..
Updated by krileon almost 8 years ago
This should basically be designed directly after the follow API. The exception being instead of a static follow button we need to handle different button types as there could be a like, dislike, toast, etc.. usage available that needs to be accounted for, but that's entirely on the display aspect of the button.
Updated by krileon almost 8 years ago
- Subject changed from Implement like, dislike, and share buttons to Implement like buttons
- Description updated (diff)
Updated by krileon almost 8 years ago
- % Done changed from 70 to 90
Still needs content bot and module usage, but internal and field usage done.
Updated by krileon almost 8 years ago
- % Done changed from 90 to 80
Still needs types tooltip selector usage, whoops!
Updated by krileon almost 8 years ago
- Status changed from Assigned to Resolved
- % Done changed from 90 to 100