Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Keywords "Search" Question  (Read 1992 times)

0 Members and 1 Guest are viewing this topic.

masksmaster

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
[Solved]: Keywords "Search" Question
« on: May 04, 2008, 05:27:02 am »

Hello,

I've noticed that when clicking on the keyword I'm getting the result with that word being a part of title or description on pictures that don't even have keywords associated with them. I was wondering if you could point me in the right direction to make sure that "keyword search" is only searching on the keyword field.

Many thanks
« Last Edit: May 04, 2008, 03:02:30 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Keywords "Search" Question
« Reply #1 on: May 04, 2008, 12:22:42 pm »

include/search.inc.php

find

Code: [Select]
if (!isset($USER['search']['params'])){
        $USER['search']['params']['title'] = $USER['search']['params']['caption'] = $USER['search']['params']['keywords'] = $USER['search']['params']['filename'] = 1;
}

change to

Code: [Select]
if (!isset($USER['search']['params'])){
        $USER['search']['params']['keywords'] = 1;
}
Logged

masksmaster

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Keywords "Search" Question
« Reply #2 on: May 04, 2008, 02:05:33 pm »

Thank you very much!
That definitely provides the functionality I need!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.