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

in utopian-io •  7 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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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.

  ·  7 years ago (edited)

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

Great initiative for keeping track of progress. Keep it up.
Following you and lookimg to have further useful tools from you. Thanks.

Usuful and needed. Thank you

Didn't known about this tool until today, what a nice work you got there, thanks for the app.!

This tool just keeps getting better and better!
In the Upvote section, I'm not sure how possible it is, but I'd love to see the accumulated earnings per follower next to the accumulated votes. The info is at the top of each follower when you click on them, but would it be possible to bring that data into the first screen... or is it too much processing?

Hey mate. Yep that's in the books for the future. Cheers

This is an awesomely great initiative.

Your tool just gets more and more powerful. Thank you for this!

ohhh man this is amazing thank for sharing this aazing thing with us

Great .... Very interesting post and useful for all steemian, can open the insight for us all about it, and this is a post that I've been waiting for a long time ..

A very nice tool, will definitely come in handy

Good job..

your post @magicmonk is very good and very useful for visitors and readers ... continue to work

Hallo my friend @magicmonk
Your post is very good ...
I like it ...

If you do not mind upvote my posting also: https://www.steemit.com/aceh/@mahyul/jalan-jalan-ke-dams-lhokseumawe-8edd295ed6fc1

Nice app...but this is gonna make so many steemit friends unfollow each other...because some followers will never upvote any post...now u can know those who are really your steemit friends.....this is gonna bring a lot of worries anyway

which follow button?