malago this actually works. thanks!
Flarum Achievements, reward your users for participating
- Edited
This is awesome @malago !!
Has anyone raised an ask for combining requirements yet?
For instance I want to reward new users who combine a few engagements:
- make X posts
- reply X times
- set your avatar
But all combined into a single achievement.
(edit: raised as enhancement malago86/flarum-achievements12 )
eddiewebb That's a nice suggestion, I will definitely consider adding that. I am taking a break for now and focusing on other projects but I will definitely come back to this extension.
The extension is stable now so that was my short-term goal
Having said that, I made a little change today so that points are not showing if the sum is 0. You can update if you want this.
- Edited
eddiewebb You already figured it out but just to confirm: yes. Here are some examples:
General,10
--> 10 or more posts on the "General" tagChit Chat,20,39
--> between 20 and 39 posts (both inclusive) on the "Chit Chat" tag
One of the things I wanted to do at some point is to make this notation a bit more friendly, but I wanted to release the extension.
[deleted]
Just installed this, and loving it. Feeling my way around somewhat, but looking great.
@malago i've noticed some error in @[deleted] forum, and on mine too,
here the console:
Uncaught (in promise) TypeError: Cannot read property 'new_achievements' of null
at index.js:75
[deleted]
Justoverclock Thanks dude - was about to report that
Got it fixed thanks to @askvortsov! You were faster than me
0.2.7
- Fix JS error when receiving an EmptyResponse
Please update to fix this error.
@malago actually i've updated to 0.2.7 but after cache clear i see this
- Edited
Justoverclock Sorry, give it a try again with 0.2.8!
- Edited
I was looking for a way to increase the fontawesome icon size of this extension as I didn't opted for image. So for people who thought like me and was looking for a way, here it is,
.Achievements--User .Badge {
font-size: 20px;
color: #68BBE3;
background: none;
}
Remeber if you have turned on alternative layout for upvotes/downvotes in gamification, increasing font-size
beyond 25px
seems little disturbing. 20px
seemed good to me.
@malago are u planning to update this for 1.0?
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.