FriendsOfFlarum Gamification
- Edited
0.2.0
This update may break some custom styles and/or extensions that integrate with gamification (are there any? not sure).
This is a large update because many behind-the-scenes changes took place to improve the overall experience.
- Fix regular layout votes counter position
- Add optional Reddit-like layout for upvotes & downvotes (FriendsOfFlarum/gamification16)
- Many improvements & fixes (FriendsOfFlarum/gamification15)
- Move to vote value system (upvotes = 1, downvotes = -1, extendable in the future)
- Improve vote calculation performance by allowing the database to sum up vote values
- Fix issues with deleted post authors
- Move permissions to posts instead of discussions (current permissions should be migrated on update)
- Improve & maybe fix Pusher integration
- Load all voters only when opening voters modal
- Fix issue when calculating user ranks
- Fix issue when showing user ranks
- Only pass setting values to forum (instead of to admin twice)
- Recalculate discussion & user votes/points on every vote change (instead of simply incrementing or decreasing value)
Updating
!!! Make a backup of your database in case issues arise while updating.
If issues arise, run composer require fof/gamification ^0.1.0
to downgrade gamification before restoring DB from backup.
composer require fof/gamification
php flarum migrate
php flarum cache:clear
- Edited
datitisev I installed the extension and set ranks. But ranks do not appear in discussions. Is there a php command to update?
I set the bagde to the right in the discussions. How can I add ranks next to the badges. Can you help for css codes?
.PostUser-badges.badges
{
position: relative;
width: auto;
margin-left: 5px;
display: inline;
float: none;
top: -2px;
}
.PostUser-badges.badges li span
{
margin-left: 1px;
}
time
{
padding-left: 5px;
display: inline;
}
Any way to make posts also counted for the ranking calculation? Not just votes? I want to also reward my users for posting not just for receiving votes.
- Edited
malago There is this extension. It works slightly different but might fulfill your desires.
Mark73 I'm torn between these two extensions, I believe the one you linked does not have ranks, only level numbers and that is a bit boring in my opinion.
I want something similar to what phpbb does, users get new ranks by posting and I want to choose what those ranks are in terms of name or icons.
If some day you add user's post count to your ranking system I will be the first in line waiting!
- Edited
malago during it's initial conception, I had always imagined this gamification extension to be modular to the point where you were able to install a core version with basic functionality and then the ability for developers to extend on it to add additional features and event this would include adding events for posts, discussions, etc and in turn would have it's own rank extension as well. But who knows, I've been working on different forms of gamification lately such as a user reputation system but what you are explaining to us is something I would love to see as an extension as well so you don't have to be torn between the two
how can i show/filter rankings monthly or for last 30 days ?
I don't know if it's only me, but after the last update, upvote/downvote permissions doesn't work anymore.
- Even with permission set on admin only, every other user can upvote/downvote posts.
- Every user (except admin) can't upvote/downvote posts in private tags even with all permissions enabled
Can someone check does it have the same problems as I am?