My Steemit Friends Power Down Ranking Table Update: Display Withdrawl Amount in USD, Search User in both modes, Change default mode.
utopian-io·@magicmonk·
0.000 HBDMy Steemit Friends Power Down Ranking Table Update: Display Withdrawl Amount in USD, Search User in both modes, Change default mode.
- <a href="http://mysteemitfriends.online">My Steemit Friends Tool website.</a><br> - <a href="http://github.com/Bulletproofmonk/MySteemitFriends">Github repository.</a> - <a href="https://github.com/Bulletproofmonk/MySteemitFriends/commit/a4889e7eab88f267f0ac5b2c259e8d3f7323d7dc">Commit for this update</a> and other commits on 19th February 2018.<br><br> Below are the new features added to the Power Down Ranking Table, accessible at http://mysteemitfriends.online/powerdown.php ### New Feature 1 You can see in the ranking table that there is now an extra column called "Withdrawl Amount (USD)". This is calculated from the latest conversion rate for Steem to USD from CoinMarketCap.com, updated automatically.  Because of the added column, there is now a link to scroll down from the top of the page to see the table (it can no longer fit within half of the width of the page as it did previously).  ### New Feature 2 The table now loads the "All Users" mode by default. If you access this table from the navigation bar from any page (including the index page), it will load the table with all users.  ### New Feature 3 The Search Username for Ranking feature will now work for both modes. If you want to switch modes, make sure you select the option you want and click Refresh to get into that mode first. If accessed from the <a href="http://mysteemitfriends.online/index.php">main page</a>, it will automatically search the ranking for the "All Users" mode.  All Users Mode:<br>  Power Down Users Only Mode:<br>  ### How did you implement it/them? <a href="https://github.com/Bulletproofmonk/MySteemitFriends/commit/a4889e7eab88f267f0ac5b2c259e8d3f7323d7dc">Relevant commit</a> and other commits on 19th February 2018.<br> <a href="https://github.com/Bulletproofmonk/MySteemitFriends/blob/master/update_CMC_steem_price.php">update_CMC_steem_price.php</a>: Retrieve the latest steem price via the coinmarketcap.com API, using PHP's cURL feature. This stores the query result into a text file and is scheduled to run periodically to update the value in the text file. The text file is later loaded by the Power Down ranking script. <a href="https://github.com/Bulletproofmonk/MySteemitFriends/blob/master/powerdown.php">powerdown.php</a>: Changed the PHP if statement to set the default option to All Users. Inserted a new column in the result table to multiply the amount of SP withdrawn by the value of Steem in USD retrieved from the text file updated from the coinmarketcap API. Edited the code for the username search box to make sure it works under both modes. <a href="https://github.com/Bulletproofmonk/MySteemitFriends/blob/master/get_powerdown_rank.php">get_powerdown_rank.php</a>: Added SQL query for querying the database with the username provided under the All Users mode. Used PHP if statements to decide which SQL query to execute and return the correct result depending on which query was executed. <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@magicmonk/my-steemit-friends-power-down-ranking-table-update-display-withdrawl-amount-in-usd-search-user-in-both-modes-change-default-mode">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
👍 liangfengyouren, thecrytotrader, bring, cryptonewsly, centerlink, bmj, webcoop, teamaustralia, cryptwo, juicy-shark, ausbitbank, mrsquiggle, ratticus, st3llar, fisnikk, yaru, justyy, dailychina, happyukgo, cnsteem, lilypang22, fishaa, dailyfortune, ivysrono, cha0s0000, geass, steemitvip, prch, dailystats, shentrading, shengjian, ety001, foodielifestyle, moobear, anxin, nean, serenazz, superbing, linda65, world-travel-pro, memebot, lydiachan, shreetbn, dodybireuen, vandadream, veronicazhu, yankee-statman, miniature-tiger, yuxid, teamsteem, joythewanderer, catwomanteresa, susanli3769, jaycobbell, mumofmany, steemulator, shellyduncan, davidmendel, techtek, travelgirl, magicmonk, omjacknews, mrs.agsexplorer, pnc, berkah, bitcoiner, greenstar, cifer, kaliphah, mirahu, sarmizegetusa, utopian-io, smertsen, helo,