i want to develop like count system that means when anyone clicked the button it liked the content once with showing the no. of how many people liked it on a dynamic page & all likes count will be stored in a database for every item.
Like this: " 5 Likes "
For ex: Facebook Like buttons works
If it is possible can you provide the code & instructions
@jonatandor35 Thank you, so i have to set this filters in the dataset? Like
if (owners is login user)
but how to do for cache i hope i understand right?, if not please let me know
& when i like the content repeater item it is showing NaN & on the place of collection name i’m assigning the database name is that correct?
Hi JD , your contribution is brilliant, but I have a problem with my likes button. I applied your code on my repeater, the problems are; (1) When I click the like button, each container on the repeater that represents different individual profiles are all influenced by the click and adds to their total likes. I would prefer if it only adds and stores on a specific individual profile or container.(2) I want only logged-in users to be able to click the like button or it it will give the prompt"to only logged-in users".(3)I also want a logged in user to only like a profile once then the button is disabled for that specific logged in user, if the logged-in user clicks again on the button it removes the added like and the button becomes enabled again. Generally this is typically what would be found on facebook or how the like button on this platform works. This is the webpage in question https://chidiejike.wixsite.com/britefruit/send-a-britefruit-to-school . Please I hope you could make out time to assist. Regards
So you’ll have to store the user-itemClicks in your database, retrieve the data every time the user gets into the page and hide the “like” button if it’s already been clicked.
@jonatandor35 Thanks for the response, but I think this is just unnecessarily to much just to implement something as common as a like button on Wix. Wix should have a single complete code for a basic like button. It is not going to push people to engage a Wix partner but will push people to other platforms.
@chidiejike I think it’s more complicated than you think since different users would like it to work slightly different .
But as it’s indeed a requested feature, maybe Wix has some plans to make it simpler.
(I’m not part of Wix team so I can’t tell).
But the most common structure of the like button is what you will find on facebook, on wix blog or even here (corvid) and so many other platforms. The entire code for that can be made available, then for those that want it differently can manipulate its syntax or go to corvid for info etc. J.D I am quite new to JQuery and JS, can you help me out?, at this point I an just trying to store the likes in a database and reload it anytime a user logs in. I have been ale to add a condition to who can click the likes and what happens to the like images. Thanks.