Altering Search Criteria Altering Search Criteria
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Altering Search Criteria

Started by Chili, September 29, 2005, 07:04:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chili

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.

Chili


Stramm

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

find "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

Works like a charm.  Many Thanks  ;D