fof / gamification
Upvotes and downvotes for your Flarum community
Fund package maintenance!
Website
Installs: 32 821
Dependents: 4
Suggesters: 0
Security: 0
Stars: 36
Watchers: 4
Forks: 17
Open Issues: 15
Type:flarum-extension
Requires
- ext-json: *
- flarum/core: ^1.7
- fof/extend: ^1.0.0
Requires (Dev)
- flarum/phpstan: *
- flarum/pusher: *
- flarum/testing: ^1.0.0
Replaces
- dev-master
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.13
- 1.2.12
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.5.0
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-di/incompatibility
- dev-di/build-typings
- dev-im/general
- dev-dependabot/npm_and_yarn/js/elliptic-6.5.4
This package is auto-updated.
Last update: 2024-11-10 08:53:07 UTC
README
A Flarum 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:
composer require fof/gamification
You can optionally convert your likes into upvotes, as well as calculate the hotness of all previously existing discussions.
Updating
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
An extension by FriendsOfFlarum.