coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Bottie on May 08, 2006, 11:22:28 PM

Title: Problem with search
Post by: Bottie on May 08, 2006, 11:22:28 PM
since yesterday I'm working with the latest version (1.4.5), coming from 1.3.2.

Everything works fine, except a small detail in the search funtion. I have one field in my database called 'Registration' (airplanes), and it doesn't work for some.

example: searching for 'N224NW' works perfect, searching for 'OO-DWE' doesn't give a result but 'DWE' does give result. This worked perfect in the old version.

my site is: http://members.airliners.be/index.php

Any idea's?

thank in advance

Bram
Title: Re: Problem with search
Post by: Paver on May 09, 2006, 02:58:47 AM
I cannot reproduce your problem.  I added 4 custom fields to my site, with the last one being "Registration" then added "OO-DWE" to this field for one photo.  When searching for "OO-DWE", it returned the photo correctly.

Have you added any mods or plugins?

Maybe check to make sure the registration has the correct hyphen by editing one of the photos and pasting in "OO-DWE", applying this change, then pasting in the same string to the Search page to see if it returns.  (Maybe an em-dash or en-dash creeped in??)
Title: Re: Problem with search
Post by: Bottie on May 09, 2006, 07:18:04 AM
Thank you so far ;)

It happens with every registration like OO-DWE, OO-SSK, CS-TLO, in other words, every registration with a "xx-xxx"-structure in it, al the others without a '-' are working fine.

The only 'mod' I've added, is in the displayimage.php, for displaying the forumcode to have clickable thumbnails.
Title: Re: Problem with search
Post by: Bottie on May 11, 2006, 04:53:07 PM
Problem solved, Character encoding has to be Unicode  :)
Title: Re: Problem with search
Post by: Paver on May 11, 2006, 05:15:49 PM
Ah, that makes sense.  Good job!