Members rate a post with their own points (Discuz's 评分). The points really move: the rater pays, the author
receives, and both see it in their history.
How it works
- Rate in the post action bar opens a menu of amounts (1…N). With negative ratings on, −1…−N is offered too.
- One rating per member per post, and never on your own post.
- A member may hand out
dailypoints a day (0 = unlimited). - The score (the sum of every rating) shows in the post's meta line.
Points go through points_add() under the reasons tabre_rating (given) and tabre_rating_received (received), so the
ledger, the /points page and the staff reports stay correct.
| Piece | Where |
|---|---|
| Marks | plugin_tabre_rating_marks (unique on post + member) |
| Daily budget | counted from the ledger, not a second table |
| Route | POST /post/{id}/rate |
Settings
Enabled, Biggest amount per rating, Points a member may hand out a day, Allow negative ratings.
Uninstall
Disable hides the menu. Uninstall drops the marks (the points already moved stay moved).