Make it Easier to Access Leaderbaord

Make the Replit Ask Leaderboard more easily.

I would like to see a way to access the leaderboard more easily, as for all I know I have not seen any way to access it without looking at a topic on it or typing it into the URL.

6 Likes

Completely agree! Cool feature but not a lot of people know about it.

2 Likes

Hey @QwertyQwerty88,

true. A lot of people don’t know that it exists!

3 Likes

Yep, I didn’t until yesterday!

3 Likes

Yeah same :open_mouth: nice job on earning lots of cheers :smiley:

2 Likes

I think this can be done with a theme component. I will look into it when I’m home

2 Likes

Found it. Custom Hamburger Menu Links - theme-component - Discourse Meta. And I realized its possible to make more than 1 leaderboard and exclude specific groups (and surprisingly mods can do it). If you want I can make a few

2 Likes

Please make some more! I’d like to see it split by trust level, or perhaps based on different criteria like badge number :smiley:

2 Likes

Well its only by groups. I will make a topic now asking for input before I do anything

3 Likes

I’ve added this but custom links don’t appear to be displaying (not for me anyway). I’ve added a Leaderboard link which should appear in the hamburger. If anyone sees it let me know!

2 Likes

I see it but it brings me to a 404

1 Like

Same, I think the URL is wrong (it brings you to https://ask.replit.com/https://ask.replit.com/leaderboard
It should be: https://ask.replit.com/leaderboard/

1 Like

Yea. I think that you are supposed to put the relative link instead of the absolute link

2 Likes

Do you code to add things to the ask forum ethan or do you just do some clicking ? :slight_smile:

1 Like

99% of things is coding since im not an admin I don’t really get to see the buttons. But on meta I press a few buttons and find the topic

1 Like

meta? and the fact that 99% is code is awesome! Can I get a screenshot later?

2 Likes

Fixed it (I think) but glitchy as once added the Leaderboard menu item vanishes for me.

1 Like

It’s also gone for me to.

I notice that the leaderboard button that should be under “more” is still not there! Here is how it can be added :slight_smile:

You simply need to add the following code to another list on the “more” dropdown:

<a title="Leaderboard" href="/leaderboard" id="ember274" class="sidebar-section-link sidebar-section-link-docs sidebar-row ember-view">

          <span class="sidebar-section-link-prefix icon">
<!---->
<!---->
      <svg class="fa d-icon d-icon-link svg-icon prefix-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use href="#link"></use></svg>

<!----><!---->  </span>


        <span class="sidebar-section-link-content-text">
          Leaderboard
        </span>

<!---->
<!---->
<!---->      </a>

3 Likes

Great idea @EarthRulerr but unfortunately Discourse doesn’t easily let you edit the HTML. If we had a hosted version this would be possible (something to think about for the future).

I looked again at some Theme components and added a very prominent Leaderboard link as a test. Let me know what you think!

image

6 Likes