T
T
tripledouble2014-04-06 22:42:49
PHP
tripledouble, 2014-04-06 22:42:49

Website rating system

Good afternoon,
I'm not strong in the back-end, because. I deal exclusively with the front-end, but nevertheless I need to tie a rating system to the site (a kind of karma on Habré). I want to count the karma of both individual articles and users, with subsequent analysis and ranking.
I read several articles that describe algorithms, but I did not find any examples of solutions anywhere. Actually, what would you recommend? I think that this should be done in php using databases?
I would be grateful if you could provide some literature as well. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Kainazarov, 2014-04-08
@iit

Here, only sawing your own from scratch, in principle, is not a complicated enough thing.
Firstly, determine by what criteria the rating will increase and decrease (like / dislike or 1-n stars), who can increase / decrease the rating - a crowd of anonymous people or only registered users, or maybe those who logged in through the login and other social network services?
The easiest option is to create a database or a hash table with fields - id, user, score, unix_time
When evaluating, write the results there. and when forming a page, pull out all the ratings from the database or hash and find the average.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question