physixfan
(physixfan)
Juillet 29, 2020, 2:48
1
I would like to display users’ trust level (or corresponding badges) in the posts, like this screenshot:
What’s the easiest way to do this?
I think this gives readers a quick way to see whether a post is trustworthy, and also gives users an incentive to climb to higher trust level.
2 « J'aime »
ondrej
Juillet 29, 2020, 7:06
2
Hello,
This theme component should help. Just add the trust level badges to be displayed. You can also add a custom title if you want but that will be hard.
Please consider using GitHub - paviliondev/discourse-post-badges-plugin instead of this component.
As it currently stands, this component will make one ajax request per loaded post. This can add up depending on your hosting situation and community size, so please keep that in mind as you consider installing this component. It’s clear that there is a good amount of interest in this feature, so hope to improve the situation as time permits.
Summary
Post Badges …
4 « J'aime »
Hey @physixfan As per your requirement mentioned I have developed a theme component for it. You can use it and provide a feedback to it
https://github.com/jahan-ggn/discourse-trust-level-on-posts
1 « J'aime »
physixfan
(physixfan)
Septembre 11, 2020, 10:50
4
Nice! Can you show the name of the trust level instead of “trust_level x”? For example we call trust_level 2 the Gold Member, it would be nicer to show “Gold Member” instead of “trust_level 2”.
1 « J'aime »
@physixfan done with your said changes have a look to it.
physixfan
(physixfan)
Septembre 16, 2020, 6:50
6
Thanks! Is it possible to show the customized trust level title? See attachment, we renamed the titles and would really like to show these customized titles~
1 « J'aime »
@physixfan repository updated, look to it
physixfan
(physixfan)
Septembre 17, 2020, 5:33
8
Wonderful, this is really helpful, thank you very much!
physixfan
(physixfan)
Septembre 17, 2020, 8:12
9
It seems the user’s level is showing on the left of the username on mobile. This is a bit strange. Can it be moved to the right side like on desktop?
2 « J'aime »
@physixfan again done with your said changes, have a look to it
2 « J'aime »
system
(system)
A fermé ce sujet ()
Octobre 18, 2020, 3:10
12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.