My Steemit Friends new feature: Ranking table showing total $ amount contributed by all of your contributors

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@magicmonk·
0.000 HBD
My Steemit Friends new feature: Ranking table showing total $ amount contributed by all of your contributors
- <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/1f23ac444ac81f3836ae0ffb033c3c87bfffcb3e">Commit for this update</a> and other commits on 22/02/2018<br><br>

### New Features
- What feature(s) did you add?

On My Steemit Friends, you can now view the ranking table showing total $ amount contributed by all of your contributors towards your articles (including curator and author payout), throughout the entire history of Steemit.

Simply type your username onto the main page located at http://mysteemitfriends.online/, and click the orange "Contributors" button. 

![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519303476/o31eitbl4po423fiksdu.png)

You will be taken to a new page with your ranking already loaded. 

![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519304248/npabmvez52vxjujdvtns.png)

You can also type another username into the textbox on this page and click "Show Top Contributors" to see an updated ranking. 

![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519304215/w6n1uxmzjzdfybasl0xl.png)


- How did you implement it/them?
<br>
<a href="https://github.com/Bulletproofmonk/MySteemitFriends/commit/1f23ac444ac81f3836ae0ffb033c3c87bfffcb3e">Relevant Commit</a>
<br>
<a href="https://github.com/Bulletproofmonk/MySteemitFriends/blob/master/contributors.php">contributors.php</a>: Firstly the username of the steemit author is retrieved from the URL using PHP and stored in a variable. This variable is sanitized using filter_var and then the value of the variable is bound to the prepared SQL statement to find the rshares contributed by each voter, for each article. The amount of rshares contributed is divided by the total rshares of each article, and then divided by the total payout of each article (including author and curator payout), to give the amount contributed towards that article. All of these individual amounts contributed is totaled for each other and then displayed in descending order in the ranking table.


<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@magicmonk/my-steemit-friends-new-feature-ranking-table-showing-total-usd-amount-contributed-by-all-of-your-contributors">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,