A
A
Alexander Ivanov2016-07-28 10:31:45
PHP
Alexander Ivanov, 2016-07-28 10:31:45

How to start developing user ratings?

Among the course, the basic one found a basic administrator guide , but I can’t find examples of implementing user authority (rating) for a developer.
Can anyone come across!?
What I understand by user authority:
52fe01fb16014194b00d3cd1b08dd0e4.png
Are there any implementation examples? Can you share?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Harakhnin, 2016-07-28
@Chupokabr

To do this, you can use the ratings module.
You can quickly understand how it works and how to set it up simply by installing, for example, a typical online store. There is a rating for the goods. The rating value is written to the product property. In your case, you can create a custom field on the user and write the rating value there

S
Sergey, 2016-07-28
@gangstarcj

I have added a new custom property "Rating" whose type is "Numeric". You need to decide what number will be 5 stars. I took 100 votes for a user that's 5 stars.
On the site in the user profile, the + and - buttons are clicked on to send an Ajax request to a PHP script that changes the value of the "Rating" property in the right direction.
Well, the stars themselves were filled with the background to the desired percentage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question