MySteemitFriends New Feature: How much $ has user X contributed towards your articles in the last Y months?

in #utopian-io7 years ago (edited)

Tool website: http://mysteemitfriends.online
Github: https://github.com/Bulletproofmonk/MySteemitFriends
Merged Pull Request:
https://github.com/Bulletproofmonk/MySteemitFriends/pull/4

New Features

  • What feature(s) did you add?

Previously, I have added an article contribution calculator, on the article list page. Users have found this button to be useful to add up the contribution made to each article one by one to the calculator at the top of the page. However, users found that pressing the button next to each article manually to add to the contribution quite tiresome. To get the total contribution, a user could be made to click the calculate button over a hundred times, depending on how many articles were voted on by a particular user.

In this edition of My Steemit Friends, you will see that the total amount contributed by a particular voter over a number of months is automatically calculated, so you no longer have to click the Add up contribution button manually next to every article.

To test the new feature, please go to the My Steemit Friends homepage http://mysteemitfriends.online, type in your user name and click "Upvote Stats".

image.png

Then scroll down and click the number of upvotes next to a particular voter to go to the list of articles voted on by this voter.

image.png

You will see that at the top of the screen, it tells you how much this voter has contributed towards all of your articles during this time period (which you would have set in on the previous page).

image.png

You can also use the middle mouse button to click on many voters' numbers of upvotes (from the previous screen) to calculate many voters' contributions at once.

  • How did you implement it/them?

upvotelist.php: The showContribution() function used to calculate a user's contribution has been turned into an async / await function. This is because to automate running this function for every single article, it is required to run one function after another and not all at once. There are too many articles for all functions to be called at the same time. Another async function outputData() was created and called to run the contribution function one after another using await in a for loop. That is why when you first open up the upvotelist.php page, you will see that each article's contribution will be added to the calculator at the top one by one.

As a result of automating the function calls for every article, the Show Full Ranking List button now loads the ranking instantaneously, so there is no waiting to see the ranking table. Click it!
image.png

I have also isolated the code for connecting to SteemSQL database, because it is now on a VIP system and the password cannot be revealed, so I put it in a separate file steemSQLconnect2.php so I won't have to hide it every time I commit a page to Github.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

thanks for your good tool.
Appreciate what you do @magicmonk
Re-steemed

Thank you so much xpilar :)

Thank you for the contribution. It has been approved.

Great tool, good improvements.

I like how you bundled your commits into a pull request. Makes it easy to review.

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

Thank you so much @helo!

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

Achievements

  • You are generating more rewards than average for this category. Super!;)
  • 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 utopian!!

Great tool! I actually was wondering just the other day if there was a tool that does exactly this! Makes me wish I could program...

Hey :) it's very tiring.. Might be better to not know lol. Thank you.

Well I do a little bit, VBA mostly, but would be completely out of my depth with something like this... I kind of came to the same conclusion... might be better not to know ;D

Wow it`s wonderful tool! It can be used instead of several other tools! Great work @magicmonk! Keep it up!

This is great its hard to keep track of who upvotes you on here.

Thanks. Agreed :)

That's so awesome! I do love your app!Thanks a lot! :*

thank you :) glad you like it :)

Amazing post.

Very useful tool. Now we can see who always votes for us and who gave the heaviest vote. I'm definitely be using this tool a lot. Thank you and have a nice day.

Its Great invitation dear keep it up you are doing good i follow you hope you will do good thanks

Great.. Very helpful tool.. I can see who has upvoted me. Thanks for share @magicmonk

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.029
BTC 66217.53
ETH 3316.11
USDT 1.00
SBD 2.70