Home : Products : Links 2.0 : Customization :

Products: Links 2.0: Customization: Re: [Andy] Searching on a specific definitions?: Edit Log

Here is the list of edits for this post
Re: [Andy] Searching on a specific definitions?
Hi Andy and Stu,

I have indeed made that selection. The thing is IŽd like the visitors be able to choose for the thing they want to search in) well... that was an idea I came up with this morning, not Yesterday evening when I first posted this question.

Right now the search field is set to enable visitors to search:
  • title
  • URL
  • Description
  • Fandom
  • Fanficrating
  • Pairing
  • Genre


The result is that when I enter ER in the searchform the system tries to get all the links with er displayed in one or more of the above fields, do I understand that correctly? It also gets all the categories where these letters are in. So, for the quicksearch links (which I'm making with the serieslist) I only need to look in the field fandom. But I'd like to have the ability for visitors to make a choice in searching. For instance if they solely want to look for the pairing Buffy/Spike they can select the field pairing and enter the searchterm buffy/spike and they will get all the links in which this pairing is entered. Can I do that in the search form with the code you gave:

Code:
if ($IN-param('field') eq "all") {

# Field names you want to allow visitors to search on:
@search_fields = (1,2,3,4,5,6,7);

} else {

# Field names you want to allow visitors to search on:
@search_fields = (1,7);

}


What do I have to change in the field form to have them selected? Cause the above code suggests (as I see it anyway) that there's a choice between a slection of all fields or something else, but in the search form I have, I don't have that option.

I'm very grateful for all the help you're giving, since I really don't know that much about programming as I wish I knew. This is all helping me understand everything much better :)

Regards,

Ilse

Last edited by:

angelscharmedsla: Oct 2, 2002, 11:17 PM

Edit Log: