רעיון/הצעה לאפשרות: הצג בנוסף את דירוג ה-Leaderboard הנוכחי

סיכום מבוסס בינה מלאכותית

In a feature discussion titled ‘Idea/Suggestion for an option: Display additionally current Leaderboard Rank’ under the gamification category, jrgong proposed enhancing the leaderboard plugin to show users’ current rank in their user card, with an optional setting to only display top X users to avoid discouraging lower-ranked participants. They also suggested adding customizable CSS classes for user profiles. NateDhaliwal noted that this could be implemented via a Theme Component, referencing the JSON endpoint for leaderboard data (e.g., https://meta.discourse.org/leaderboard/1.json). NateDhaliwal later shared a working solution at https://meta.discourse.org/t/usercard-show-leaderboard-rank/378735. chapoi joked about Nate’s speed, then chapoi confirmed they also built the same solution, calling it potentially overkill but useful for now, while keeping the feature request open for possible future core integration. NateDhaliwal responded with enthusiasm, calling the related images ‘really great!’ The discussion reflects community collaboration to implement a gamification enhancement via theme components while leaving room for future official support.

היי חברים,

אנחנו בודקים את תוסף ה-leaderboard והוא ממש נחמד עד כה!

אבל בהתבסס על המשוב שלנו ושל המשתמשים, משתמשים רצו לראות את דירוג ה-leaderboard הנוכחי שלהם בכרטיס המשתמש שלהם.

כדי לא לייאש משתמשים בעלי דירוג נמוך, צריכה להיות גם אפשרות להציג רק את הדירוג של X המשתמשים המובילים, כאשר X ניתן להגדרה בהגדרות התוסף.

עריכה: גם יהיה נחמד אם יהיו מחלקות CSS נוספות בפלט ה-html להתאמה אישית בפרופילי משתמשים, בדיוק כמו בכרטיסי משתמש. פלט html.

מחשבות?

לייק 1

This may be able to be done via a Theme Component.

Leaderboard data can be grabbed as a json. For example, https://meta.discourse.org/leaderboard/1.json returns the top 93 users by the ‘Monthly’ period; the default for this leaderboard (the one excluding Discourse Staff is defaulted to ‘Today’).

@jrgong Made here:

How on earth are you faster to post this than me posting it?! :sweat_smile:

3 לייקים

:sparkles: Related topics is really great!

Anyway, came here to say, yes I made it (Usercard: show leaderboard rank) but it’s probably a bit overkill, and we could keep the feature topic open in case we just allow this via core at some point later.

But, best I could do! Hope you like it (and that it works hehe)

3 לייקים