Topic-icon Check content likes

Active Subscriptions:

None
13 years 9 months ago #26334 by angort
Check content likes was created by angort
I would like to know if there is a way to capture the answer from a content "like". I am trying to store records on my database for every "like" on my site or any type of content on my site. Can you give a hand?.
Regards.
The topic has been locked.
Support Specialist
13 years 9 months ago #26345 by alzander
Replied by alzander on topic Check content likes
I'm not sure what you mean by the 'answer'? Are you just trying to see who's Like'd your content? We have the email notification feature that can email you when a user clicks the Like button. If the user is logged into your site, that email will also contain their username.

Hope that helps, but if not, let me know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 9 months ago #26364 by angort
Replied by angort on topic Check content likes
Hi, i just want to know when a like botton is click and record this action to my database. Can i use a listener or something like it to achieve this?. Regards
The topic has been locked.
Support Specialist
13 years 8 months ago #26373 by alzander
Replied by alzander on topic Check content likes
We don't currently record Likes in the database. We just send the email to the admins (or whoever you select). If you wanted to, you could add a save to the database as well, but it's not always guaranteed that the user will be logged in, or even a member of your site, so there's only so much you could save.

If interested in adding some, and you have a developer that can do so, the code you'd want to modify would be in the /components/com_jfbconnect/controllers/social.php. There's a "likeCreate" function that you can easily add a write to the database, or do anything else you need.

Hope that helps,
Alex
The topic has been locked.