Author Topic: Photo Search (Search By Tags/Description)  (Read 1307 times)


  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 380
  • Karma: +45/-2
  • Etano Contributor (Skins & Mods)
Photo Search (Search By Tags/Description)
« on: June 22, 2016, 04:28:55 PM »
Some will already know that there is in fact a search by tags option available for photos but isn't used by default. So here how to add it. This option is great for making the most of the photo description option, allowing your users to find photos based on certain interests.

Search by Tags (Search by Description)

To add it, simply add a search form to your skin file (example photo_search.html , if you're not using bootstrap then you'll most likely need to change it to a more suitable form)
Code: [Select]
<form action="photo_search.php" method="get" id="tag-search" class="general-form">
<input type="hidden" name="st" value="tag" />
<dt><label>Search by description</label></dt>
<div class="input-group">
<input type="text" name="tags" id="tags" class="form-control" placeholder="summer dress" required />
<div class="input-group-btn">
<input type="submit" class="btn btn-default" value="Search" />