My Steemit Friends Update: Estimated Account Value Ranking integrated into website.

in #utopian-io6 years ago (edited)

New Features

  • What feature(s) did you add?

The Estimated Account Value ranking feature has been integrated into the My Steemit Friends website. You can find a link to the ranking table from the navigation bar of the main page of the My Steemit Friends website here: http://mysteemitfriends.online.

image.png

After you click into the link in the drop down, you will see the Estimated Account Value ranking table:

image.png

You can type your name into the search box to see your ranking, and then click the link to be directed to the page with your name highlighted in the ranking tables.

image.png

From the main My Steemit Friends page, you can also type in your username here and see the ranking directly, without going into the ranking table.

image.png

Click on the blue link at the bottom to see your name in ranking table page.

image.png

  • How did you implement it/them?

  • update_steem_price: retrieves the current median history price of Steem and stores in steemprice.txt. This value is necessary for calculating the Estimated Account Value. It stores the updated price in steemprice.txt and is schedule to run daily via a Cron job.

  • steemprice.txt: Text file containing the updated steem price needed to calculate a user's Estimated Account Value from amount of STEEM and SBD. Updated periodically using update_steem_price.php.

  • accountvalue.php: A list of Steemit Users ranked by the amount of Estimated Account Value. SQL is used to retrieve the ranking data, and PHP is used to dispaly them. PHP sanitizing function is used on the page number input from the user and prepared SQL statements are used to prevent SQL injection. PHP statements are used to check for highlights and assist with converting from vests to SP as well as appending the latest Steem Price to the SQL query to calculate each user's estimated account value before ordering them.
    The Estimated Account Value is calculated from this equation: Latest Steem Median Price * (Amount of Steem in Savings + Amount of Steem + Amount of Steem Power) + Amount of SBD + Amount of SBD in Savings. There may be a slight delay to see your latest increase/decreases on the ranking table.

  • get_av_rank.php: This PHP file is accessed by using AJAX when users click on Search Ranking button in either the ranking table page or the main My Steemit Friend page. PHP used is used to append the latest steem price and global total_vesting_fund_steem and total_vesting_shares values to the SQL, which is then used to order the users and retrieve the ranking of a particular user. Finally PHP and HTML is used to create the link to the correct page on the ranking table. PHP Sanitizing function is used on the username input and then prepared SQL statement is used to prevent SQL injection.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

What would be nice would be the number of Steem contributed if that is not too difficult to do and possibly the current value of those STEEM.

http://mysteemitfriends.online/upvotelist.php?voter=teamsteem&author=teamsteem&date=2016-07-04&toDate=2018-02-11

One of the next thing I hope you'll be able to integrate would be something like the 30 day and 7 day top authors. Steemwhales totally have given up on updating these.

https://steemwhales.com/trending/?d=30

Big congratulates to @magicmonk for bringing this nice tool.
@teamsteem yes, I agree, something similar like this daily report https://steemit.com/stats/@dailystats/daily-top-30-authors-payout-in-the-last-7-and-30-days-2018-02-12

thanks for your nice comment @justyy, it means a lot!

@teamsteem this is a great app from @magicmonk ! I was checking on steemwhales and it was not updated for 2 months or more.

Great to see this app having this great statistics!

Regards, @gold84

thank you gold84!!

Hi @teamsteem. I'll definitely look into that. Thanks for the great ideas.

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

Thank you for the contribution. It has been approved.

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

thank you very much vladimir!!

I'm receiving this.
Connection failed: SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (severity 9)

Hi @teamsteem. Sometimes the database server may encounter a problem (under maintenance?) but usually it fixes itself in a few minutes. It's fine for me now, could you try again? Thanks

Yeah that's what I thought. It's working find now.

I am ranked 1082 @senseicat and RESTEEM @magicmonk to express my thanks for adding tremendous value to our community.

FEE9D443-C061-4D47-B5FF-18A2A23A4770.png

Much higher than me!!! Thank you

Our entire STEEMIT community are all going in the same direction. UP!

@magicmonk great app and thanks for the follow up and additions to it! Thanks to your app, I realized I am 2231 at the ranking. Something I could not figure out on steemwhales because it was outdated!

Regards, @gold84

very impressive gold84!!

@magicmonk your app is amazing. I will be featuring it on Chapter 10 I will post soon of the full Steemit Guide I am creating for minnows, new users on Steemit and new visitors, to understand Steemit and the Steem Blockchain as much as possible and as fast as possible.

By the way, here is Chapter 9 I posted recently. Your thoughts are very well received!

Chapter 9 of 11: The Art of Giving Value - Learning from Experts of Specific Topics on Steemit
https://steemit.com/steemit/@gold84/chapter-9-of-11-the-art-of-giving-value-learning-from-experts-of-specific-topics-on-steemit-this-is-part-9-of-11-chapters-full

Regards, @gold84

wow, that is a very impressive guide. thank you for writing it!!

Glad you enjoyed looking at it @magicmonk !

Regards, @gold84

@magicmonk, I always try to support who contribute to open source project, upvote you.

Seems interesting. Going to check this out and see that I'm probably ranked dead last here. LOL It's worth knowing.

We all have to start somewhere.

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.029
BTC 60132.86
ETH 3383.12
USDT 1.00
SBD 2.51