Flarum Achievements, reward your users for participating
Justoverclock I believe this should be ready for 1.0, it is now compatible with beta16 so I will keep an eye on 1.0 when it releases to check that nothing is broken.
User24 This must be done separately on phpmyadmin or another script you might have, you just have to add a row on the table flarum_achievements_user
with the user_id, achievement_id, created_at (this is a datetime) and you can put the column new to 1 so the user will get a notification when they log in next time. This is only for very customized achievements or events that happen outside the forum.
User24 I am not sure what are you trying to do, can you explain a little more your goal and maybe I can find a workaround for that purpose or I can modify the extension.
malago I am not sure what are you trying to do, can you explain a little more your goal and maybe I can find a workaround for that purpose or I can modify the extension.
I planning to give users - say if they visit continuously the site for 7 days, thinking of to give a 7 day streak badge to them. So list of possible events can help me add more achievements right?
User24 That would be a cool achievement!
I wonder if Flarum has any way to check this... Otherwise I don't see any other way to do it that is not storing a list of the days the user logged in the forum and then check if there are 7 days in a row. That can be a little out of the scope of this extension...
Anyone knows an extension that already does or checks the days a user had logged in? Maybe I can use that logic or rely on another extension for this achievement.
malago I wonder if Flarum has any way to check this... Otherwise I don't see any other way to do it that is not storing a list of the days the user logged in the forum
Maybe, online user extention can be helpful in recording the login activity of users?
Extension updated for Flarum 1.0 and a few more improvements!
0.3.0
- Added a page in the forum with the Achievements list
- Improved the modal for Achievements in the admin
- Added a tooltip to help with the Variable field in the admin
- Changed how the achievement type posts on tag works, now it uses the
slug
of the tag and not the full name. The variable field will need to be changed for this type of achievements. - Compatible with Flarum 1.0
How to update:
composer update malago/flarum-achievements
php flarum migrate
php flarum cache:clear
Please try it and let me know if you find any issue, here or on the github
[deleted]
There is one bug with Fof Best Answer if you have selected the someone's post as best answer who don't have any badge and you have 2 badges so at the last of your post it will show yours badges and but in best answer green box other user box it shows your badges. HOPE YOU UNDERSTAND.
Can this extension be supported for the number of likes obtained?
https://discuss.flarum.org/d/20671-friendsofflarum-gamification
- Edited
Also, is it possible to place the display of medals in UserCard? Instead of displaying it in each post as it is now.
shebaoting Yes! One of the options is number of likes received, is that what you are looking for?
shebaoting I plan to add a few settings so that it is no so invasive on the posts and only shows up on the new achievements page. I will keep you updated when I make this change. Thanks for the suggestion.
[deleted]
- Edited
Hello @malago found a permission bug only admins can view achievements page please fix it soon
One more thing like Fof Gamification hide rankings page link from sidebar on user = guest
- Edited
[deleted] Thanks for the report, I fixed it on version 0.3.1, please update and let me know if this fixes your issue.
[deleted] There is one bug with Fof Best Answer
This was also solved on this version!
0.3.1
- Fixed Achievements page
- Achievements page link will not show for non registered users
- Changed tooltip to use the Tooltip component
[deleted]
- Edited
Hello @malago Permission issue is resolved thanks, but still guests are seeing achievements link in sidebar. Yes I have latest version 0.3.1 |
Brilliant! This is what I looked for.
A suggestion, without showing the achievements in every post, can you make it to show the last achievement on the profile badge? In here, you can see Admin/Moderator badge. Along with that?
So, when someone visits or hover the username to see your profile, then you can show all the achievements. just a suggestion.
[deleted]
ctupramod Yes there should be an option for it those who likes in every post or those who like user badges
[deleted] guests are seeing achievements link in sideba
Can you try to clean the forum cache? It is not showing for me on the last version. Let me know if it solves this.
ctupramod can you make it to show the last achievement on the profile badge
Absolutely! I will add this as an option. I'll update this post when it's ready, give me some days.
[deleted]
malago Can you try to clean the forum cache?
Yeah ! Thank you so much I cleared cache and It was gone....
[deleted]
Can you please add some CSS in Total Points <li> as I don't need I hidden points with CSS but It is leaving some space the total points <li> element so If there will be a class in that element it will be very easy to remove it.