Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2018-11-15 #25

Merged
merged 3 commits into from Nov 14, 2018
Merged

2018-11-15 #25

merged 3 commits into from Nov 14, 2018

Conversation

magicmonk8
Copy link
Owner

In this update, I have addes support for multiple tag entry in one textbox, so users can enter multiple tags such as "utopian-io development steemit" and they will be find articles matching their search, for both articles voted and articles written.

After gathering the tag input from the user, the controller will separate the tags into an array using the PHP Explode function before passing it onto the model and view, removing the need for collecting a separate input for tag2.
The tag2 input box has been removed. This is because we will now allow users to enter multiple tags in the tag textbox, separated by space. Explanation to this also provided.
Added a searchtag() function for use in both written and voted article modes. It searches through the database for multiple tags by using a for loop to add conditions to SQL. It uses the NEAR function to find matching tags in json_metadata so dApps storing info in json_metadata won't interfere with tag search.
@magicmonk8 magicmonk8 merged commit e6110d1 into master Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants