Steemfriends.org new features: find articles written with specific tags and titles without specifying author, second tag can be used to filter article search results

in #utopian-io6 years ago

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

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

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

New Feature One

As @emrebeyler suggested last update, I have now added a second tag to my article finder search forms, for both Voted and Written Articles.

So let's say I wanted to find all the tutorial articles I have written for utopian-io.

Step 1: Click on "User History" on the navigation bar, then click on "Written Articles". This will take you to the Article Search form. Alternatively, just go to this link: http://steemfriends.org/articlelist.php?mode=written

Step 2: Type in your username and two tags. In my case, I'm going to type in magicmonk as the username, and the two tags will be utopian-io and tutorial.

Step 3: Change the dates so you are able to find articles between the specified two dates. I'm going to make it January 1 2016 until now, so I can search for all the articles I've written from the start.

Step 4: Tick "exclude comments" so comments won't be included.

Step 5: Click the "List Articles Written" blue button.

A screenshot of all the steps plus the search results has been provided below:

You can see a list of tutorials that I have written for Utopian-io during this time.

You can also try the above steps for articles you have voted here: http://magicmonktutorials.com/mysteemitfriends/articlelist.php?mode=upvote

New Feature Two

Now let's say I want to do a tutorial for angular.js and I'd like to see if someone else has done the same thing for Utopian-io.

I can search for articles even without providing the author's name. Under the same page, I can simply type utopian-io for the first tag, tutorial for the second tag, "angular" for the title, pick 2 dates and search.

Now you can see a list of angular tutorials people have written for Utopian-io.

How they were implemented:

3 files were updated in this pull request:

articlelist.php
input for second tag, allow no author

  • The Articlelist controller now accepts input for the second tag.
  • The controller now allows for no author to be provided and still run a query as long as the first tag has been provided (e.g. find all articles written for a particular tag).

articlelistmodel.php
queries allow for 2nd tag input, no author and limit results

  • 2nd tag input accepted into query to database functions.
  • no author needs to be provided if a tag has been specified
  • results limited to 500 to relieve pressure on database resources.

articlelistview.php
modify form to submit 2nd tag, add link to author

  • Modified the form to include a text box to enter a second tag.
  • Added hyperlinks to authors on table.

GitHub Account
https://github.com/Bulletproofmonk

Sort:  

Thanks for the contribution, @magicmonk! It's cool to see you implemented a feature suggested by @emrebeyler!

It would've been great if the number of tags was dynamic instead of being limited to 2, so you could just type "utopian-io, development, steemfriends" for example, but maybe you can add that in the future. Nevertheless, it's pretty neat!

As for the code itself; it seems to be missing some spaces, e.g. between parameters of a function, which makes it less readable. I would recommend using a linter that can point out these small inconsistencies for you.


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 amosbastian, always learn heaps from you, will definitely incorporate it in my next update.

Thank you for your review, @amosbastian! 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!

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

Thanks steem ua 🙏

帅哥/美女!快来使用超级好用的steemit客户端---Partiko,这个可是我们华人团队开发的哦。如果不想再收到我的留言,请回复“取消”。

Congratulations @magicmonk! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published a post every day of the week

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard:

SteemFest3 and SteemitBoard - Meet the Steemians Contest

Support SteemitBoard's project! Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.27
TRX 0.13
JST 0.032
BTC 62683.02
ETH 2962.44
USDT 1.00
SBD 3.64