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:
select * from glinks_Links where City = '$city'[/code]
It would acctually process a query like this:
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.
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:
It would acctually process a query like this:
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.