Use Ratings as a Like Function

Hi there, I’m trying to use the Ratings feature to allow users to give 1, 2, 3, 4, and 5 likes, the only problem that I’m currently facing is that when I go into one of the videos on a Dynamic Page, it brings those Ratings from Video 1 to Video 2 and doesn’t show 0, how would I accomplish this?

Hey @james-rondon-jr ,
Please provide more information or a link to the editor URL of your site (only authorized Wix personnel can get access to your site in the editor).
Thanks,
Tova

1 Like

@talyaro Sure, here’s the link to my editor, also the last pages that were opened “VJ-Videos” and The Dynamic page for “VJ-Videos” is the pages I want to add this Rating (Like Feature) and the database is also used for the Videos and the Rating Counter and one last thing, I’m adding Updates to the site and this update isn’t completely done, so I need someone to just save the site, Not publish
https://editor.wix.com/html/editor/web/renderer/edit/03d7d1a1-b914-438c-8989-1c767d853cc0?metaSiteId=c14eef3c-c7f2-45ba-a1bb-1e160dfb501e&editorSessionId=283857c8-2839-4eff-9943-6a8ebf89d8d5&referralInfo=dashboard

Hey @james-rondon-jr ,
So I don’t see a ratings element or code on your VJ-Videos dynamic page. You can try following this tutorial to add the ratings feature to your videos: https://support.wix.com/en/article/corvid-tutorial-capturing-and-displaying-ratings .

1 Like

@talyaro I got most of it done, the only problem is, while the rating counter works it doesn’t add the ratings (5+2=7 and etc) and it adds only one rating on the same video, but I want it to add only the ratings to that specific video and then the same to other videos and I got the ratings input in a light box and the ratings output is the number on the dynamic page.

@james-rondon-jr There a couple of examples that you might find useful:

The Ratings example :: This example allows visitors to rate recipes but doesn’t prevent the visitor from rating multiple times.

The Ratings by User example :: This example allows registered users to rate recipes when logged in. The user can only submit one rating, but can change it.

1 Like

@yisrael-wix the issue I’m having is displaying the number of a total rating on separate videos, for example, let’s say I have two videos, both are at 0 until I rate video 1 5 stars, now video 2 is supposed to say 0, but instead of it saying 0 and adding 1-5 only when I want it to, it takes 5 stars from video 1 and displays them on every video, instead of their own video, sorry for the confusion and I appreciate every response

@james-rondon-jr The examples show exactly how to keep track of the rating for individual items (in the case of the example it’s recipes). I recommend opening the examples in your editor and play around. Read and examine the code to see how ratings of each item are input, calculated, and displayed.

1 Like