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: Altering Search Criteria  (Read 3044 times)

0 Members and 1 Guest are viewing this topic.

Chili

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Altering Search Criteria
« on: September 29, 2005, 07:04:48 am »

I've used search here but have come up empty  I'd like to change the search function on my gallery so that it does not include the image # as part of the results.  For my file descriptions I use the racers bike number but if you do a search for "6" you will get all riders entered as #6 in the description as well as every image with the number 6 in the file name.

Thanks for any assistance as I'm very new to all this and haven't a clue where to look are start.
« Last Edit: October 08, 2005, 07:15:57 am by GauGau »
Logged

Chili

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Altering Search Criteria
« Reply #1 on: October 07, 2005, 01:13:31 am »

Anybody have any ideas?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Altering Search Criteria
« Reply #2 on: October 07, 2005, 09:03:26 am »

find WHERE MATCH(filename, title, caption, keywords) in search.inc.php ... remove filename (forgotten to say that there are 2 occurances)

find
Code: [Select]
"OR filename LIKE '$match_word' " . in that file and remove it

make a backup of that file first and tell  me if it works. Haven't tried ;)

Chili

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Altering Search Criteria
« Reply #3 on: October 07, 2005, 09:08:39 pm »

Works like a charm.  Many Thanks  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.061 seconds with 20 queries.