Answer the question
In order to leave comments, you need to log in
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:
Are there any implementation examples? Can you share?
Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question