Gossamer Forum
Home : Products : Links 2.0 : Customization :

simple question simple solution

Quote Reply
simple question simple solution
Hi,

I was just wondering how to make the search keep these settings without users having to specify what they want

25 results

as Keywords

OR connector


I am just wondering where I can set that so that I can eliminate those settings from the user side of the search. ThanX!!!Tongue
Quote Reply
Re: [chosen0ne] simple question simple solution In reply to
The code on your search page should look like this:

Code:
<table border="0" cellpadding="0" cellspacing="0">
<tr><td>Search: <input type="TEXT" name="query" size="30"> <input type="Submit" value="Search"></td></tr>
<tr><td>Number of Results: <SELECT name="mh"><OPTION>10<OPTION SELECTED>25<OPTION>50<OPTION>100</SELECT></td></tr>
<tr><td>As Keywords: <input type="RADIO" name="type" value="keyword" CHECKED> As Phrase: <input type="RADIO" name="type" value="phrase"></td></tr>
<tr><td>AND connector: <input type="RADIO" name="bool" value="and" CHECKED> OR connector: <input type="RADIO" name="bool" value="or"></td></tr>
</table>
The parts in red are the "presets," you can change 'em..;


Leonard
aka PerlFlunkie
Quote Reply
Re: [chosen0ne] simple question simple solution In reply to
Is there a way to have those radio buttons checked without the user browsing the web seeing them?

Regards,

Mark
Quote Reply
Re: [chosen0ne] simple question simple solution In reply to
Just <!-- comment --> out the part you don't want. I tested on my site, and the search still worked fine. Question: why bother having the search page, if you're not going to offer some options on it? Just use a small search box such as is standard with the Links templates. You can remove the link to the "search options" from all your other pages.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] simple question simple solution In reply to
WinkThanksWink