Giter Club home page Giter Club logo

gamification's Introduction

Gamification by FriendsOfFlarum

License Latest Stable Version OpenCollective

Extiverse

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.

gamification's People

Contributors

imorland avatar kyrnedev avatar flarum-bot avatar dsevillamartin avatar davwheat avatar ralkage avatar karaok491 avatar angellitox avatar clarkwinkelmann avatar dependabot[bot] avatar rob006 avatar sycho9 avatar ipurpl3x avatar stylecibot avatar luceos avatar bruno7kp avatar askvortsov1 avatar glombers avatar kazerog avatar maicol07 avatar mattmezza avatar datlechin avatar skmedix avatar tinghuiwang avatar spaeps avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.