User Rating
Краткое описание
Tired of anonymous comments and a passive audience? Want to turn visitors into motivated authors, opinion leaders, and active participants? Introducing the “User Rating” module — an intelligent gamification system that automatically identifies and rewards the most valuable users of your website!
Полное описание
This is not just a number in the profile. It is a recognition system, status, and healthy competition. Users begin to value their reputation, strive to write better, comment more actively, which directly leads to increased engagement and content on your site.
Key benefits your users will love:
- Automatic and fair calculation: The system works "in the background," without your involvement. Everything is transparent: what points are awarded for and what they are deducted for.
- Prestigious TOP and public recognition: Create a "Hall of Fame" on the site — a block or a separate page with the rating leaders. This is the best motivation for activity!
- Flexible content "weight" system: You decide which actions are the most valuable. A news post may be worth more than a comment, and a like from the community — a special reward.
- Incentive for quality: Even the like/dislike system affects the rating, encouraging users to create content that others will like.
How does "User Rating" work? It's simple and powerful!
1. Flexible configuration of the "cost" of actions (in the admin panel):
You are the architect of reputation! Set the balance exactly as your project needs.
| Action | Impact on rating | Default |
|---|---|---|
| Publishing a news post | +10 points | Encourages authors |
| Deleting a news post | -10 points | Maintains the database |
| Adding a comment | +2 points | Stimulates discussions |
| Deleting a comment | -2 points | Responsibility for words |
| Receiving a like on a news post | +1 point | Quality is valued! |
| Receiving a dislike on a news post | -1 point | Feedback |
| Like for a comment | +1 point | Value of opinion |
| Dislike for a comment | -1 point | Quality control |
2. Effective display of the rating on the site:
The module provides powerful tags for integration into any part of the template.
A. Block "Community Leaders" (for example, in the sidebar)
Place a dynamic top that will motivate all visitors.
smarty{top_rating limit="5" min-rating="15" cache="7200"}
This tag will display the 5 most respected users with a rating of at least 15 points, updating only once every 2 hours to save resources.
B. Separate page «User Rating»
Create a full-fledged rating hit parade! Use the tag with advanced parameters on a separate page.
smarty{top_rating limit="50" min-rating="0" cache="0" template="full_list"}
Will display a full table of 50 positions without cache (current data always) and with a special design (full_list).
3. Instructions for using tags: Full control over output
Basic tag:
smarty{top_rating}
*Displays the top 10 starting from 1 point. Perfect for a start.*
Tag with customizable parameters:
| Parameter | Default | Description | Example |
|---|---|---|---|
| limit | 10 | Limits the number of positions in the top. | limit="20" |
| min-rating | 1 | Filter by minimum rating. | min-rating="25" — only the elite! |
| cache | 3600 | Cache time in seconds. 0 = disable. | cache="0" — for live rating. |
| template | default | Key for an alternative design template. | template="compact" |
Usage examples:
{top_rating limit="15" min-rating="10"} — «Club of the Chosen»: 15 users with a rating from 10.
{top_rating limit="8" cache="1800"} — «Quick Top»: 8 leaders, data is updated every 30 minutes.
{top_rating limit="100" min-rating="0" cache="0"} — «Full List»: for a separate page, without cache.
Чтобы оставить комментарий, войдите через Telegram