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 problem...  (Read 11920 times)

0 Members and 1 Guest are viewing this topic.

oscar_rocha

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Search problem...
« on: July 26, 2006, 04:28:45 pm »

Hello guys...

I'm very happy using CPG, specially using the keywords (tags) navigation feature that is related to the search function.

My problem is the next:
If I do a quick search of "whatever" in the search page, and I include a parameter in the "newer than" field (i.e. 5), and click search, problably I will get a result or not (depending on my db), but if later I click on a keyword from the displayed images it will be still searching with the "newer_than" condition, so in many cases i don' get any result because not only will be searching for the keyword but also for the condition...

How can improve my code to have keywords navigation clear of previous parameters?
Can this be a bug in the search??
« Last Edit: December 28, 2006, 09:55:03 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Search problem...
« Reply #1 on: July 26, 2006, 07:07:34 pm »

Try clearing your cookies, and post a link to your site, so we could test for ourselves.
Logged

oscar_rocha

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Search problem...
« Reply #2 on: July 26, 2006, 09:27:32 pm »

Thanks for answering, unfortunately our website is in a localserver, but i performed a trial with your coppermine demo site in your homepage.

So check this:
Step 1: Performed a search of "ArtitstWantedCompetition2006", with field "Newer than" empty, so the search gave me 20 pages of results.
Step 2: Performed a search of "ArtitstWantedCompetition2006" now with fiel "newer than" = 200 days, got 6 pages results.

Till here everything is ok, but suppose I continue navigating, so "randomly" go to album "architecture" and find "Carrousel - Alderdi Eder" (first album pic) and I find it "interesting", so in order to see more, I click its keyword which again is "ArtitstWantedCompetition2006" and unfortunately it displays me only 6 result pages...so there's something wrong, because i performed a research hours ago and cpg is still recording the parameter, I've tried this in several machines and happens the same until I make an empty search and restart keyword navigating.

I will thank your answers!!
Logged

Nibbler

  • Guest
Re: Search problem...
« Reply #3 on: July 26, 2006, 10:19:09 pm »

Try changing thumbnails.php from

Code: [Select]
if (isset($_GET['search'])) {
    $USER['search']['search'] = $_GET['search'];
}

to

Code: [Select]
if (isset($_GET['search'])) {
    $USER['search'] = array('search' => $_GET['search']);
}
Logged

oscar_rocha

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Search problem...
« Reply #4 on: July 27, 2006, 12:01:51 pm »

Thanks for the answer, now it's working very good! CPG is great!

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Search problem...
« Reply #5 on: December 27, 2006, 09:36:51 am »

@Nibbler: should this go into the core code?
Logged

Nibbler

  • Guest
Re: Search problem...
« Reply #6 on: December 27, 2006, 06:24:18 pm »

Yes, it should.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Search problem...
« Reply #7 on: December 28, 2006, 09:54:46 am »

Committed to stable and devel branch of SVN, i.e. the fix will be in cpg1.4.11 and cpg1.5.0. Marking thread accordingly.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.