Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FriendsOfFlarum/gamification
Add upvotes, downvotes, and ranks to your Flarum Community
https://github.com/FriendsOfFlarum/gamification
add-upvotes discussion downvotes flarum flarum-community friendsofflarum gamification hotness ranks
Last synced: about 9 hours ago
JSON representation
Add upvotes, downvotes, and ranks to your Flarum Community
- Host: GitHub
- URL: https://github.com/FriendsOfFlarum/gamification
- Owner: FriendsOfFlarum
- License: mit
- Created: 2019-07-09T15:28:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-27T10:28:40.000Z (7 days ago)
- Last Synced: 2024-10-29T22:37:24.203Z (5 days ago)
- Topics: add-upvotes, discussion, downvotes, flarum, flarum-community, friendsofflarum, gamification, hotness, ranks
- Language: PHP
- Homepage: https://discuss.flarum.org/d/20671-friendsofflarum-gamification
- Size: 1.97 MB
- Stars: 36
- Watchers: 4
- Forks: 17
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flarum - FoF Gamification - Add upvotes, downvotes, and ranks. (Extensions / Discussion ([:top:](#table-of-contents)))
README
# Gamification by FriendsOfFlarum
![License](https://img.shields.io/badge/license-MIT-blue.svg) [![Latest Stable Version](https://img.shields.io/packagist/v/fof/gamification.svg)](https://packagist.org/packages/fof/gamification) [![OpenCollective](https://img.shields.io/badge/opencollective-fof-blue.svg)](https://opencollective.com/fof/donate)
[![Extiverse](https://extiverse.com/extension/fof/gamification/open-graph-image)](https://extiverse.com/extension/fof/gamification)
A [Flarum](http://flarum.org) extension. Add upvotes, downvotes, and ranks to your Flarum Community!
Upvote and downvote posts anonymously, and reward active users with ranks, and sort posts by hotness/popularity.
- Q: How is hotness sorted ?
- A: The total amount of hotness is got between the amount of votes on the discussion and the posts inside of it. Also, newer posts with the same amount of upvotes as another post will have more hotness, so time is also an influent factor.### Installation
Install manually with composer:
```sh
composer require fof/gamification
```You can optionally convert your likes into upvotes, as well as calculate the hotness of all previously existing discussions.
### Updating
```sh
composer update fof/gamification
php flarum migrate
php flarum cache:clear
```### Commands
Gamification doesn't need any CRON job, every calculated value will update itself automatically as needed.
However, if the calculated values become out of date as a result of a database migration, due to the extension being temporarily disabled or to import existing data when first using the extension, you can use the following commands to fix the values.
The following commands can be run in the Flarum folder:
#### `php flarum fof:gamification:assign-groups`
Updates all users in the database to match the current "Automatically assigned groups" rules.
Even if a user was manually assigned to a group, the group will still be removed if it doesn't match the rules.
#### `php flarum fof:gamification:resync`
Updates all discussions with their total first post votes.
#### `php flarum fof:gamification:resyncUsers`
Updates all users with a forced recalculation of points.
### Links
[](https://opencollective.com/fof/donate)
- [Packagist](https://packagist.org/packages/fof/gamification)
- [GitHub](https://github.com/FriendsOfFlarum/gamification)An extension by [FriendsOfFlarum](https://github.com/FriendsOfFlarum).