Youtube uses an API to take care of all the Ratings.
So I am looking for info and help on how can I set up the same system YT has.
I basically want to have a Like/Dislike function for every page, which is liked to a specific object on that page - just like the like/dislike is linked to a video on every page. Preferrably also one for comments.
All help is very very welcomed. From source-codes for already done systems (I searched around google quite a bit, but never found a similar open-source rating system) to help and info on how I can set up the API-powered rating system.

2 Answers
2

I would suggest having a database with all videos and comments, that has a field for likes and dislikes. you can then update the database with javascript click events to perform ajax calls to increment the count. you could use jquery and the code would be as simple as:

@Peter O. First of all, thanks for responding. So to summarize: It is fundamental to make a database for videos and comments, then have tables for likes and dislikes, so that I can associate a user with a video. And how do I build from there?
–
user1108267Dec 20 '11 at 17:23

make a table for users, a table for comments, and a table for users. have fields for likes and dislikes in the videos and comments.
–
Chris BrickhouseDec 21 '11 at 15:16