איך להציג את סך כל ההודעות של המשתמש לצד השם

נחמד. תודה רבה על העבודה הנהדרת שלך כאן. גם הוספתי את הקוד:

.user-post-count {
    margin-top: .1rem;
}

כדי ליישר את זה עם שם המשתמש. לא בטוח אם זו השיטה הטובה ביותר, אבל זה עובד

2 לייקים

We use GitHub - communiteq/discourse-custom-post-display which @michaeld wrote for us years ago. It shows the joined date, number of posts, and number of likes.

2 לייקים

Looks nice too. How its looks on mobile? You need to click the "i* to show these infos?

Works great on mobile- it just drops the word “Joined”. No need to click anything. The “i” is a separate thing.

לייק 1

Nice. Love it. It would be cool with the total topics included with the total posts, + a update for the FA6. But it looks its easy to do

I think you should ask Communiteq to upgrade it to use FA6 icons. For me it looks like its’s using 5, and that will break at some point, not too far away in the future.

I see, I’m actually running my fork of the project, and I’ve made some tweaks and FA6 upgrades. I forgot I had done that. GitHub - markschmucker/discourse-custom-post-display

3 לייקים

נחמד. עדכנתי את זה לסריאליזציה והשימוש ב-“user_topic_count” גם כן. התבססתי על הקוד של @Arkshine

לייק 1

שלום, תודה שיצרת את התוסף. רק התקנתי אותו אך הוא לא מציג מספר פוסטים מדויק. או לפחות, ה"פוסט שנוצר" בחלק של מנהלים/משתמשים הוא מספר גבוה יותר.

גם, מצאתי שזה חותך את התג שהמשתמש מוצג:

תמונה

There might be a difference in whether it counts PMs, I’m not sure.

It’s looks like its need to be updated to the Glimmer component soon