Author Topic: How to get the search funtion to search only movies or pics  (Read 1181 times)

0 Members and 1 Guest are viewing this topic.

Offline Rockhound

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
How to get the search funtion to search only movies or pics
« on: December 06, 2012, 10:39:56 PM »
Hi I am working on editing the search template to get everything displaying as I would like and I would like the search function to display only pics.

This is the basic search function

<form method="get" action="{$config.install_url}/search.php"> <input type="text" name="s" size="30" value=""> <select name="c"> <option value="">All Categories</option> {options from=$search_categories key=tag value=name} </select> <select name="f"> <option value="">All Formats</option> <option value="pictures">Pictures</option> <option value="movies">Movies</option> </select> <input type="hidden" name="pp" value="20"> <input type="hidden" name="mt" value="180x130"> <input type="hidden" name="pt" value="150x150"> <input type="submit" value="Search"> </form>


I would like the search to only search for pics instead of having the option bar

Thanks

Offline Chad

  • Administrator
  • Full Member
  • ***
  • Posts: 215
  • Karma: +27/-0
    • View Profile
Re: How to get the search funtion to search only movies or pics
« Reply #1 on: December 07, 2012, 03:34:39 PM »
This should do it.

Find:
Code: [Select]
<select name="f"> <option value="">All Formats</option> <option value="pictures">Pictures</option> <option value="movies">Movies</option> </select>

Replace with:
Code: [Select]
<input type="hidden" name="f" value="pictures">

Offline Rockhound

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: How to get the search funtion to search only movies or pics
« Reply #2 on: December 07, 2012, 07:50:50 PM »
This should do it.

Find:
Code: [Select]
<select name="f"> <option value="">All Formats</option> <option value="pictures">Pictures</option> <option value="movies">Movies</option> </select>

Replace with:
Code: [Select]
<input type="hidden" name="f" value="pictures">

I love this site! Thanks!

Offline Chad

  • Administrator
  • Full Member
  • ***
  • Posts: 215
  • Karma: +27/-0
    • View Profile
Re: How to get the search funtion to search only movies or pics
« Reply #3 on: December 08, 2012, 12:01:58 AM »

Unofficial JMB Support Forums

Re: How to get the search funtion to search only movies or pics
« Reply #3 on: December 08, 2012, 12:01:58 AM »


Tags:
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1178 Views
Last post May 10, 2012, 09:09:43 AM
by a4evermedia
0 Replies
793 Views
Last post July 30, 2012, 04:01:13 AM
by a4evermedia
0 Replies
1114 Views
Last post September 22, 2012, 05:55:29 PM
by Chad
1 Replies
809 Views
Last post January 05, 2013, 08:22:10 AM
by Rockhound
3 Replies
1038 Views
Last post October 08, 2013, 07:58:46 AM
by a4evermedia

anything