Skip to content

A Flarum extension that adds upvotes, downvotes, and ranks to your Flarum Community!

License

Notifications You must be signed in to change notification settings

spaeps/gamification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gamification by ReFlar

MIT license Latest Stable Version Total Downloads

A Flarum extension that adds 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.

Usage

  • Just click upvote or downvote
  • Posts can be sorted by "Hotness"

Installation

Install it with composer:

composer require reflar/gamification

Then login and enable the extension.

You can optionally convert your likes into upvotes, as well as calculate the hotness of all previous discussions.

How hotness is sorted?

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.

Developer Guide

You have 1 event to listen for PostWasVoted it contains the post, post's user, the actor, and the vote type (up or down).

To Do

  • Requests?

Important

This Extension is meant as a replacement for the Flarum Likes Extension. Therefore, they are not compatible and it's recommended to disable the Likes Extension.

Issues

Links

About

A Flarum extension that adds upvotes, downvotes, and ranks to your Flarum Community!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 54.8%
  • JavaScript 40.8%
  • CSS 3.7%
  • Shell 0.7%