MySteemitFriends.Online update: Number of contributors filter added, Contributors ranking set as default

in #utopian-io6 years ago (edited)

New Features

  • What feature(s) did you add?

The contributor ranking table on My Steemit Friends is now set as the default feature on Mysteemitfriends.online. If you go to the home page at http://mysteemitfriends.online, enter your Steemit username and press Enter, you will be directed to the Contributor's ranking table.

image.png

On the contributor ranking table, you will see that it loads a lot faster than before. This is because the default number of contributors is now set to 1000. Previously, it will list all of your contributors, which is why for some users this was a bit slow.

image.png

Now you will find that if you click on any other user's contribution amount, it will load their ranking table with 1000 contributors, which speeds up the browsing process.

At any time if you want to change the number of contributors, simply replace the 1000 number in the textbox with your desired number of contributors (by either typing or clicking the upward/downward arrows, and then click the refresh button

image.png

You will see the table update with that number of contributors (assuming you have that many).

  • How did you implement it/them?
    Link to relevant lines in the code on GitHub and explain briefly what you added/changed.

contributors.php:

I added a input box to the page to collect the user's desired number of contributors (default number 1000). When the user types a new number into this inputbox and clicks the button, I used JQuery to reload the page with an extra argument setting the number of contributors variable to a new number. The page uses PHP GET method to retrieve this argument and then binds this value to a prepared SQL statement to be executed on SteemSQL database. If the argument is not set by the user, then by default it will be the top 1000 contributors.

index.php:

I disabled the original form submit function for when the enter key is pressed on the username inputbox. Instead, I used a Jquery event listener on the textbox to listen for the ENTER key to be pressed, and when it is pressed it will redirect the user to the contributors ranking page loaded with the username entered in the textbox as the search term.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

Great job on sanitizing your inputs. Less attack vectors is always a good thing.

You can contact us on Discord.
[utopian-moderator]

thank you helo. It's always satisfying to see your approval, it means a lot.

Hey @helo, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Hey @magicmonk I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Oh this is a great website to know our position in ranking table. Really it is helpful for us. Thank you very much for it from my heart.

I noticed this feature 2-3 hours ago but thanks to explain this in detail bro, you are doing superb work.

thanks for sharing. your article is so interesting and informative.

Upvoted ☝ Have a great day!

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.032
BTC 63585.64
ETH 3035.86
USDT 1.00
SBD 3.84