Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

modifying search criteria

Quote Reply
modifying search criteria
To all Glinks gurus,

One of the fields in my DB is City. A user can search for a link by a city match but the issue is there are links in rural cities which arnt being found.
I have a field, nearestMajorCity so that a listing in Long Island can put New York City as its nearest city.

What i need to do is modify the Glinks code to do a search for both city and nearestMajorCity.

so instead of a query like this:
Code:
select * from glinks_Links where City = '$city'[/code]
It would acctually process a query like this:

Code:
select * from glinks_Links where (City = '$city' OR nearestMajorCity = '$city')[/code]
Any ideas on which files contain the code that i would need to change?
Is this something that could be done with a plugin? plugin hook? how?

Thanks.
Subject Author Views Date
Thread modifying search criteria hagai 3586 May 29, 2009, 1:53 PM
Post Re: [hagai] modifying search criteria
Andy 3426 May 30, 2009, 12:25 AM