What's the easiest way to display users' trust level in posts?

AI-generated summary

Displaying User Trust Levels in Posts

physixfan wants to display users’ trust levels in posts, making it easier for readers to gauge post credibility and incentivizing users to climb the trust level hierarchy.

@ondrej suggests using the “Post Badges Component” theme component, while jahan_gagan develops a custom theme component for this purpose.

The theme component is updated to display custom trust level titles, such as “Gold Member” instead of “trust_level 2”, and to accommodate physixfan’s custom trust level titles.

The component is further updated to address mobile layout issues, moving the trust level display to the right side of the username, consistent with the desktop layout.

The collaboration results in a functional theme component, available on GitHub, with physixfan expressing gratitude for the helpful solution.

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.

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.

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

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”.

@physixfan done with your said changes have a look to it.

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~

@physixfan repository updated, look to it

Wonderful, this is really helpful, thank you very much!

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?

@physixfan again done with your said changes, have a look to it

Fantastic!..