@malago can u assign another css clas to .Badge? actually is used by goup badges, so i cannot apply styles without touching them.
Flarum Achievements, reward your users for participating
Justoverclock Did you try with .Achievements .Badge
(or similar, I can't remember the exact div that wraps the achievements)? I can change it yes, but I could do two classes to get only to that badge class.
for example, i would remove the border from achievement, but i cannot without modify the group badges, if u know solution tell me what i have to do
Justoverclock Try this:
.Achievements--User .Badge {
border: none;
}
Or whatever you want to change on the badge class inside the Achievements--User div.
not work for me
With the important flag maybe?
.Achievements--User .Badge {
border: none !important;
}
If it doesn't work I will remove the Badge class for only custom images, I will leave it for font awesome icons.
malago not work even like this
Justoverclock what border are you trying to delete? There is a box shadow and a border radius. The example I put here only deletes the border but try first with: background-color: red
and see if that picks up. Try a to remove the border with your code.
I will change the class later anyway
malago i need to remove the shadow border around the little achievement image...maybe i'm doing something wrong?
malago this actually works. thanks!
- 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