This is awesome! ty for creating this!
Works like a charm!
Hi! greate component!
Is it possible to show only the higher trust badge? if you are a user 3, do not show user 1?
It is now! Great suggestion @ElForoViajero
If you update the component, you will find a new theme setting:
@wkoenig Thanks! I’ll have to think about your suggestion. I’m not sure how it would affect performance and what the layout implications would be. I’m don’t know if/when I’ll get to it, so you may want to see what you can do on your own if you are itching for that as a feature.
That was a great touch!
But it doesn’t work in non english locales. For example in Greek the trust level 1 is spelled as “Αρχάριος” and the css class is “archarios”. So neither the only_show_highest_trust_level setting or the drop down works.
Ah, you’re right! Thanks for the report. I’ll see what I can do about multi-locale support soon. It shouldn’t be too difficult to fix.
amazing, thanks a lot for the improvement!
I added this an it’s not finding any of my badges even the default ones included
Ok, let’s see if we can figure out the source of the issue! It would help to know the following:
- Are there errors in your browser’s error console?
- Current theme settings (if you can take a screenshot of the list of badges, that would be great)
- Browser and version
- Discourse version
Errors in Browser
include.preload.js:335 [Deprecation] Element.createShadowRoot is deprecated and will be removed in M73, around March 2019. Please use Element.attachShadow instead. See Chrome Platform Status for more details.
createShadowTree @ include.preload.js:335
THEME SETTINGS:
BADGES:
JUST THE DEFAULT ONES
BROWSER AND VERSION:
Chrome FOR MAC Version 75.0.3770.100 (Official Build) (64-bit)
Discourse Version:
Installed
v2.4.0.beta2 +261
INSTALLED: v2.4.0.beta2 +261
I can give admin iff needed I just set this up on Google Cloud using the official insatll
Ok thanks! This all looks ok so far. A couple more things to confirm:
- Have you done a “hard refresh” of the page after adding the component?
- Can you add a screenshot of the theme settings for the Post Badges component? This should rule out any errors in the badge names and such.
Yes I have I even tried a new browser completed Launcher reset and its not showing the default ones
See Editor a Default Badge
Ah ok. I see what it is. You need to capitalize the badge name. I did make a note with the setting to enter the badge name as it appears on the badge page, but this is an easy mistake to make and should be easy enough to prevent it from being quite so sensitive. I’ll remember to work on this and the non-English locale support mentioned a few posts up the next time I get an opportunity to work on this component.
You need to select “Create” and then click the green checkmark that displays to the right of the setting. It doesn’t have a list of badges built-in, you are just creating an entry for a specific badge that you want displayed.
Ahh ok thats my mistake thanks It Did Work
One more thing One of the Badges isnt showing its showing the popup text and I see in the Badge it Shows
BADGE:
BADGE SETTINGS
On Display
WHERE THAT BLANK SPOT IS SHOULD BE THE BADGE
I can repro that with the css3 font awesome icon. I’ll do some digging and get back to you when I’ve figured out what’s going on.
Thanks Ill try some other ones I added it to my groups for now thanks
More I have issues with
fab fa-linode
fas fa-laptop-code
fas fa-pencil-ruler