Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: SEARCH WITHIN RESULTS MOD  (Read 2340 times)

0 Members and 1 Guest are viewing this topic.

fotomad

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
SEARCH WITHIN RESULTS MOD
« on: June 20, 2006, 03:43:35 pm »

does anyone know of a mod for adding a checkbox below the main search field to 'search within results' i have searched all the forum still cannot find one ?

thanks
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: SEARCH WITHIN RESULTS MOD
« Reply #1 on: June 22, 2006, 02:44:35 pm »

I'm not sure I understand your question.  I do understand most search forms that have a "search within results" option.  But on Coppermine's search results page, there is no search field.  If you have set up a "quick search" box or some other extra search box, then I can see how you could add a "search within results". 

The way to implement it I guess is to merely add the new keywords to the old ones.  I wonder if it would be simpler to do that in the search field, put the current search terms into the search box, and let the user add more terms and search again - instead of having a "search within results".  The end effect would be the same (as long as the "AND" operation is selected), and it's much easier to implement.  To implement this without putting the search terms in the search box explicitly, I guess you'd have to set up a hidden field with the current search terms, to which the user will add others in the blank search box.  But to process this extra hidden field would take a little work.

The plugin "Search Album Title & Description" shows one way of processing new fields on the search form, and even though that way is clumsy (it uses a replacement search form and effectively replaces the search processing for those new fields), it may be the only way to do it as a plugin.  A mod or hack would be not preferable since future upgrades would be a pain.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.