1
animatedken
Custom search form
  • 2006/12/18 11:32

  • animatedken

  • Just popping in

  • Posts: 6

  • Since: 2006/7/26


Is there a hack that allows me to remove all the options below the keyword field?

Aside from removing the options, I'd like to keep the default values on, so that the search form's "Type" is set to "All", the "Search in" still checks all the modules, and the Search Rule retains its settings.

Resized Image

In effect, these parameters are still active but hidden from the user, and the user only sees keyword field.

I found the following hacks also helpful, but I can't get the effect I want from these:
Cleaning up the Search Results

Search only one module


Thanks for the assist!

2
rabideau
Re: Custom search form
  • 2006/12/18 13:55

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


You might try editing the search.php script.
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

3
hervet
Re: Custom search form
  • 2006/12/20 14:08

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


the quicker way to do it is to hide the access to this page because if you succeed to remove the fields, you'll have the equivalent of the normal search.

4
kris_fr
Re: Custom search form
  • 2006/12/20 22:00

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


hi,

Look this plugin, in action here

A ++

5
animatedken
Re: Custom search form
  • 2006/12/21 11:38

  • animatedken

  • Just popping in

  • Posts: 6

  • Since: 2006/7/26


Quote:

hervet wrote:
the quicker way to do it is to hide the access to this page because if you succeed to remove the fields, you'll have the equivalent of the normal search.


thanks for the tip! You're right, visually, the search form should act like a normal search form, but functionally, it must still search with all the defaults activated.

do you hide the access to the advanced search form by modifying the search.php as also suggested? or can this be done from the administration's group options? I couldn't find any Search Module Access rights on the Administration panel.

6
animatedken
Re: Custom search form
  • 2006/12/21 11:40

  • animatedken

  • Just popping in

  • Posts: 6

  • Since: 2006/7/26


Quote:

kris_fr wrote:
hi,

Look this plugin, in action here

A ++


thanks for the lead! will look into this!

Login

Who's Online

137 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 137


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits