fof/gamification 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fof/gamification

最新稳定版本:2.0.0-beta.2

Composer 安装命令:

composer require fof/gamification

包简介

Upvotes and downvotes for your Flarum community

README 文档

README

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.

统计信息

  • 总下载量: 50.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 41
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 41
  • Watchers: 3
  • Forks: 16
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-09