כרטיס משתמש: הצג דירוג בטבלת המובילים

:information_source: Summary Tiny component to add the Leaderboard Rank to the usercard
:hammer_and_wrench: Repository repo
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

The usercard already shows the amount of cheers, so this component makes a small addition to also show the rank:

The word “Rank” is taken from the leaderboard itself, so if you change it globally it will reflect so here.

Settings

Only three settings:

If no ID is chosen it will default back to 1.

Hoping this wins the award for “Lowest Impact Theme Component Ever” :trophy:

8 לייקים

That was fast :smiley:

What are you thoughts to display it inside the same div as the “Cheers” score instead of a separate div?

so that it looks like this:

Cheers: 1234 (:military_medal: #3)

(As Icon, maybe something FA5 more related to the leaderboard + the content inside () links to the leaderboard as well)

2 לייקים

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

וגם למדתי משהו חדש היום - שאפשר לשנות את התקופה על ידי הוספת ארגומנטים ל-URL.

TC נהדר!

לייק 1

thx for the explanation!

Then I guess, I will have another round of CSS workarounds then :smiley:

Let me know if you need help, I’m reasonably sure it’s doable

2 לייקים