SteemFriends.org New Features - Tag and Title filters for Upvoted & Written Article Listings, Stricter rules to filter out comments

in #utopian-io6 years ago

Repository
https://github.com/Bulletproofmonk/MySteemitFriends

Merged Pull Request
https://github.com/Bulletproofmonk/MySteemitFriends/pull/23

http://steemfriends.org is a popular tool with approximately 20,000 hits per month.

New Feature One

You are now able to find an article you wrote, from a long time ago, instead of scrolling down your list of articles on Steemit for a very long time.

E.g. I wrote an article about Korea last year sometime, about my travel in Busan. If I wanted to find it on Steemit, I will have to scroll down on my main page through hundreds of articles. This is how you find it on my website.

Firstly, from the main page, type your Steem username in the textbox, then go to "User History" then click on "Written Articles".

You will see the follow page, with a list of articles you have written, in the last month:

Now, change the date range to when you think you wrote the article, so I changed it to beginning of 2017 until today. I then also typed the key word "Busan" into the title bar, which allowed me to find the two articles I wrote on Busan straight away.

Clicking on the permlink will also bring you to the Busan page.

New Feature Two

If you want to list all the articles you have written for a specific tag, you can also find it using this new feature.

Let's say I want to look at all the contributions I have made for Utopian. Simply type utopian-io into the tag textbox, set your wanted date range and then search.

Notice how the resulting list includes comments as well as articles. If I want to filter our comments, just click "Exclude Comments" and then the blue button to refresh results.

And now you can see all the articles I have written for Utopian! Yay!

New Feature Three

The tag and title filter boxes which work for the Written Articles also work for Upvoted articles. So, let's say I want to list all the articles in CN which I have upvoted in the last month. I simply go to the Upvoted Articles page by using the navigation bar (on the top right of the page):

Then I put my name in the username box, CN in the tag textbox and then click Search:

You may also use any of the other features, such as title filter and comments filter, with upvoted articles too.

In the last contribution, @emrebeyler mentioned that my code for filtering out comments may not be enough to filter out all comments made by other dapps. I have approached @arcange for assistance (thank you @arcange!) and now the new code uses the depth field of each post to decide whether it is a comment.

How they were implemented:

3 files were updated in this pull request:

articlelist.php
Controller gathers input for tag and title
The controller for article list now gathers Input for both the tag and the title filters set by the user. It then passes these to the models to retrieve data (list of articles filtered by tag and title).

articlelistmodel.php
Added tag and title filters to both votes and written articles
For both Written Articles and Voted Articles queries, the $tag and $title filters from the controller have been used to filter query results. If the user types a tag or a title or both into the form, the result will return articles matching their request.
The Written Articles query has also been re-written so that it does not rely on the "re-" prefix in the permlink to filter out comments. Rather, the TxVotes table has been joined with the Comments table using the author column as well as the permlink column, to use the depth field in the Comments table to filter out comments.

articlelistview.php
Added two input boxes for tag and title
Two input boxes have been added to the form:
The user can now enter a tag they want to filter the article list against.
The user can now enter a title they want to filter the article list against.
Both input boxes will work in both modes (Written & Upvoted articles).

GitHub Account
https://github.com/Bulletproofmonk

Sort:  

Hi there,

Great to see one of my favorite steem project getting constant updates.

  • You use the term upvote on vote history, but since this list also includes downvotes, using the term vote may make a better sense.

  • Do you think can you support multiple tag filters? That's something we cannot find in alternative Steem tools. For example, if I want to see my contributions (development) on Utopian, I need to search two tags: utopian-io and development. That would be awesome if steemfriends supports it.


Your contribution has been evaluated according to Utopian policies and 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.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you so much for the great suggestions emrebeyler. Will definitely look at implementing them in the next update.

Thank you for your review, @emrebeyler! Keep up the good work!

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 or Steeditor).

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

Vote for Utopian Witness!

thank you utopian!

Great to see all the new developments. I'm part of that 20,000 hits per month. I've found your tool to be very helpful and informative and I've recommended it in several articles and comments I've written.

Best of Luck!

Thanks mate. Glad to hear from you. Good to see people are using it :)

吃了吗?这是哪里?你是谁?我为什么会来这边?你不要给我点赞不要点赞,哈哈哈哈哈哈。倘若你想让我隐形,请回复“取消”。

Hi @magicmonk!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 4.433 which ranks you at #2138 across all Steem accounts.
Your rank has improved 17 places in the last three days (old rank 2155).

In our last Algorithmic Curation Round, consisting of 438 contributions, your post is ranked at #36.

Evaluation of your UA score:
  • Some people are already following you, keep going!
  • The readers like your work!
  • Good user engagement!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.26
TRX 0.13
JST 0.032
BTC 61663.08
ETH 2893.40
USDT 1.00
SBD 3.48