SteemFriends: Showing articles written by a user between 2 dates by magicmonk

View this thread on steempeak.com
· @magicmonk · (edited)
$64.25
SteemFriends: Showing articles written by a user between 2 dates
#### Repository
https://github.com/Bulletproofmonk/MySteemitFriends

Merged pull request 
https://github.com/Bulletproofmonk/MySteemitFriends/pull/20/files

Http://MySteemitFriends.Online is a popular tool with apporximately 20,000 hits per month.  It has recently be renamed to Http://SteemFriends.org for simplicity.

![](https://cdn.steemitimages.com/DQmai1ALt911CySdMkCSLi5qMsKdsX14d5MUNVNq7xNXYVX/image.png)

### New Features
- What feature(s) did you add?
Improved the website to include a new tool for finding and listing articles written by a user between two dates. It was becoming harder and harder to find articles written previously as Steemit only shows the latest articles and takes a long time to scroll back. With this tool, you can find articles you have written a long time ago instantly without waiting for a long time.

![](https://cdn.steemitimages.com/DQmRKoCt7Tf82NMZfv1y1V3MvSe81gQyADaCgL9qzFDKNJB/image.png)

Here are the steps to use this tool:
1) Click on User History button from the navigation bar to arrive at this page. Alternatively you can access this page directly using the URL https://steemfriends.org/articlelist.php
2) Type in the name of a user. e.g. magicmonk
3) Choose two dates you want to acquire the list of upvotes or articles. The Articles Written is the new functionality.
4) Click the blue button saying "List Articles Written". You will see a list of articles written by this user between those two dates, with links to each of the articles for easy access.

![](https://cdn.steemitimages.com/DQmZjzUzKTdRTCuR2trtpL6Sovj1ojYTMUHKVUMYtxD9NNb/image.png)

- How did you implement it/them?
Here are the files I updated:

<b>Articlelist.php</b>
The controller now retrieves an additional input value called Mode. Using the mode, it will either retrieve list of articles written by the user or voted by the user.

<b>Articlelistmodel.php</b>
his file replaces the old upvotehistory.php as the model manages the data for both upvote history and written articles, it makes sense to rename this file. It can now retrieve data for both upvotes and written articles by this user between two dates.

<b>Articlelistview.php</b>
The view has also renamed from articlelist.php to articlelistview.php as it represents the view of the article list page. A new button has been created so that when the user clicks on it, they will get a list of articles they wrote between two dates. The table display will vary depending on which button the user clicked (upvotes or written articles).

#### GitHub Account
https://github.com/Bulletproofmonk
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 10 others
properties (23)
post_id63,442,678
authormagicmonk
permlinksteemfriends-showing-articles-written-by-a-user-between-2-dates
categoryutopian-io
json_metadata{"format":"markdown","app":"steemit\/0.1","image":["https:\/\/cdn.steemitimages.com\/DQmai1ALt911CySdMkCSLi5qMsKdsX14d5MUNVNq7xNXYVX\/image.png"],"tags":["utopian-io","development","steemit","steemdev","steemfriends"],"links":["https:\/\/github.com\/Bulletproofmonk\/MySteemitFriends","https:\/\/github.com\/Bulletproofmonk\/MySteemitFriends\/pull\/20\/files","Http:\/\/MySteemitFriends.Online","Http:\/\/SteemFriends.org","https:\/\/steemfriends.org\/articlelist.php","https:\/\/github.com\/Bulletproofmonk"]}
created2018-10-01 05:54:24
last_update2018-10-01 11:59:30
depth0
children11
net_rshares32,407,449,031,188
last_payout2018-10-08 05:54:24
cashout_time1969-12-31 23:59:59
total_payout_value48.278 SBD
curator_payout_value15.974 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,572
author_reputation263,026,799,189,538
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (74)
@cnbuddy ·
帅哥/美女!你好!家中可愛的寵物照想要跟大家分享嗎?或是出去玩拍到一些可愛的動物,別忘了到@dpet分享,可以得到@dpet的獎勵喔!如果不想再收到我的留言,请回复“取消”。
properties (22)
post_id63,443,572
authorcnbuddy
permlinkre-magicmonk-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181001t061943663z
categoryutopian-io
json_metadata{}
created2018-10-01 06:19:45
last_update2018-10-01 06:19:45
depth1
children0
net_rshares0
last_payout2018-10-08 06:19:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length87
author_reputation-1,405,328,253,928
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@markvance ·
$0.21
Cool, I will check this out!
👍  , ,
properties (23)
post_id63,451,832
authormarkvance
permlinkre-magicmonk-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181001t095645786z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-10-01 09:56:45
last_update2018-10-01 09:56:45
depth1
children0
net_rshares104,772,028,339
last_payout2018-10-08 09:56:45
cashout_time1969-12-31 23:59:59
total_payout_value0.154 SBD
curator_payout_value0.051 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length28
author_reputation35,663,357,100,120
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (3)
@amosbastian ·
$12.30
Thanks for the contribution, @magicmonk! That's definitely a cool feature to have and should be useful to people looking for some older posts - great work!

Some feedback: the indentation of your code seems pretty inconsistent in places. Sometimes it's 2, 4, 8 or even 0. I would recommend you stick to the best practices of each language (e.g. HTML would be 2 spaces).

Another thing I would like to remark is that some comments are not very useful. 

```
if ($voter&&$mode=="upvote") {
// get list of results
$results = $articlelistmodel -> gethistory($date,$todate,$voter);
```
It should be pretty obvious what you are doing here, so there isn't much need to add a comment describing what is happening imo.

Finally, since you made a [pull request](https://github.com/Bulletproofmonk/MySteemitFriends/pull/20/files) (which is great) it would be nice if you could link it in the body of your contribution, but that's just for our convenience of course.

Good to see you back contributing and working on improving SteemFriends!

---
Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/1332212).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
👍  , , , , , , , , , , , ,
properties (23)
post_id63,454,173
authoramosbastian
permlinkre-magicmonk-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181001t105257653z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"],"users":["magicmonk"],"links":["https:\/\/github.com\/Bulletproofmonk\/MySteemitFriends\/pull\/20\/files","https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/3\/1332212","https:\/\/support.utopian.io\/","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"]}
created2018-10-01 10:52:57
last_update2018-10-01 10:52:57
depth1
children2
net_rshares6,207,286,966,912
last_payout2018-10-08 10:52:57
cashout_time1969-12-31 23:59:59
total_payout_value9.271 SBD
curator_payout_value3.027 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,523
author_reputation174,225,255,912,876
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (13)
@magicmonk ·
Thank you so much amosbastian. Your reviews are very useful and detailed as always. Much appreciated. Have linked the pull request in the article and will definitely watch the indenting and commenting in the future. Thank you very much.
properties (22)
post_id63,457,182
authormagicmonk
permlinkre-amosbastian-re-magicmonk-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181001t120242734z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-10-01 12:02:45
last_update2018-10-01 12:02:45
depth2
children0
net_rshares0
last_payout2018-10-08 12:02:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length236
author_reputation263,026,799,189,538
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
Thank you for your review, @amosbastian!

So far this week you've reviewed 11 contributions. Keep up the good work!
properties (22)
post_id63,618,039
authorutopian-io
permlinkre-re-magicmonk-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181001t105257653z-20181004t040039z
categoryutopian-io
json_metadata{"app":"beem\/0.20.1"}
created2018-10-04 04:00:42
last_update2018-10-04 04:00:42
depth2
children0
net_rshares0
last_payout2018-10-11 04:00:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length115
author_reputation152,913,012,544,965
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
$0.03
#### Hi @magicmonk!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
👍  
properties (23)
post_id63,462,747
authorsteem-ua
permlinkre-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181001t135435z
categoryutopian-io
json_metadata{"app":"beem\/0.20.5"}
created2018-10-01 13:54:36
last_update2018-10-01 13:54:36
depth1
children0
net_rshares13,735,134,868
last_payout2018-10-08 13:54:36
cashout_time1969-12-31 23:59:59
total_payout_value0.019 SBD
curator_payout_value0.006 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length288
author_reputation23,203,609,903,979
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@utopian-io ·
$0.16
Hey, @magicmonk!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
👍  
properties (23)
post_id63,590,620
authorutopian-io
permlinkre-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181003t161514z
categoryutopian-io
json_metadata{"app":"beem\/0.20.1"}
created2018-10-03 16:15:15
last_update2018-10-03 16:15:15
depth1
children3
net_rshares90,492,098,243
last_payout2018-10-10 16:15:15
cashout_time1969-12-31 23:59:59
total_payout_value0.123 SBD
curator_payout_value0.040 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length591
author_reputation152,913,012,544,965
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@magicmonk ·
$0.05
Thank you so much utopian!
👍  
properties (23)
post_id63,601,519
authormagicmonk
permlinkre-utopian-io-re-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181003t161514z-20181003t202236834z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-10-03 20:22:48
last_update2018-10-03 20:22:48
depth2
children2
net_rshares26,095,788,661
last_payout2018-10-10 20:22:48
cashout_time1969-12-31 23:59:59
total_payout_value0.034 SBD
curator_payout_value0.011 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length26
author_reputation263,026,799,189,538
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@enchantedspirit ·
$0.03
Now *that's more like* the kind of rewards your work on these tools should be getting!!
👍  
properties (23)
post_id63,615,330
authorenchantedspirit
permlinkre-magicmonk-re-utopian-io-re-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181003t161514z-20181004t024736728z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-10-04 02:47:36
last_update2018-10-04 02:47:36
depth3
children1
net_rshares23,702,272,256
last_payout2018-10-11 02:47:36
cashout_time1969-12-31 23:59:59
total_payout_value0.031 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length87
author_reputation41,157,069,523,808
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@steamsteem ·
Good steem usage statistics.
https://steemfriends.org/
Thank you for sharing this useful tools.
👎  
properties (23)
post_id64,272,352
authorsteamsteem
permlinkre-magicmonk-steemfriends-showing-articles-written-by-a-user-between-2-dates-20181015t055922391z
categoryutopian-io
json_metadata{"links":["https:\/\/steemfriends.org\/"],"tags":["utopian-io"],"app":"steemit\/0.1"}
created2018-10-15 05:59:24
last_update2018-10-15 05:59:24
depth1
children0
net_rshares-52,269,720,966
last_payout2018-10-22 05:59:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length95
author_reputation-2,936,146,883,511
root_title"SteemFriends: Showing articles written by a user between 2 dates"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)