كيف تعرض إجمالي عدد مشاركات المستخدم في كل منشور؟

Hi Discourse Support Team,

I’m currently running a Discourse forum and I’d like to display the total number of posts a user has made directly in each post they create. Ideally, this should appear next to the username or under the avatar in the post view.

I’ve checked the settings under Admin > Settings > Users and Post Menu Hidden Items, but I couldn’t find an option like user_stats or post_count. I also tried customizing the theme with a poster-name:after widget and JavaScript API, but the post_count attribute doesn’t seem to be available.

Is there a built-in way to enable this, or do I need a plugin or specific API call? Any guidance would be appreciated!

Thanks in advance,
Philipp

إعجاب واحد (1)

Here you have 2 plugins available:

3 إعجابات

Hey Philipp welcome to Meta! :tada:

To save you looking for them in the topic linked above and for other people’s benefit, here they are :wink:

إعجابَين (2)

There seems to be some interest in this. Not sure what the path is to making GitHub - markschmucker/discourse-custom-post-display an official plugin.