Where is the custom field search function?

This is a discussion on Where is the custom field search function? within the v3.1 Modules & Modifications forums, part of the v3.1 Legacy Help & Support category; Hello all, I have custom search fields on my site set up as searchable, but the results are not as ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Modules & Modifications

 
LinkBack Thread Tools Display Modes
  #1  
Old 12-08-2006, 06:03 PM
Junior Member
 
Join Date: Dec 2006
Posts: 2
Rep Power: 0
Default Where is the custom field search function?

Hello all,

I have custom search fields on my site set up as searchable, but the results are not as expected. In which file can I find the function that does the searching for custom fields? If it is a large function, please send some more specific information.

On the topic, I do have a secondary question: How does the system search? None of the results for custom search fields seem accurate at all. I'm sure I will be enlightened when I can look at the code.

Also, as a note to developers: When you use a function outside of one file, include a comment explaining what file that you used. Editing these massively linked files is very confusing...

Reply With Quote
  #2  
Old 12-08-2006, 06:16 PM
Moderator
 
Join Date: Mar 2006
Posts: 3,734
Rep Power: 91
Default

When you create an extra field (in admin) and tie it to a specific category and make it searchable it will only appear on the front end when you specify the category via the dropdown on the search page for the defined/linked extra fields to appear.

For example if I have 2 categories, one called houses and one called cars. Then I have two extra fields defined, year built is defined and linked to only the houses category and model year is defined and linked to the car category. Both are made searchable.

On the user front end when I use the search feature I will be initially shown a field to enter my search criteria and a dropdown list showing me the currently defined categories. If I select cars from the category dropdown the defined/linked extra fields set as searchable will appear, in the case of this example, model year.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #3  
Old 12-08-2006, 06:59 PM
Junior Member
 
Join Date: Dec 2006
Posts: 2
Rep Power: 0
Default

Sorry if my post was confusing. I am refering to the actual PHP function that does the searching. I have the fields showing up and everything, but the search is unreliable at best. I also want to implement a special searching routine for one option, and I would prefer to edit the code at the source rather than fixing it down the line.
Reply With Quote
  #4  
Old 12-08-2006, 07:33 PM
Moderator
 
Join Date: Mar 2006
Posts: 3,734
Rep Power: 91
Default

Seaching is handled in searchresults.php by using LIKE in the mysql query.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Home Page with Search stuarthutchinson v3.1 Questions & Support 3 03-14-2007 06:49 PM
Ad Preview, Search Custom Fields, and more summer v3.1 Suggestions and Feedback 1 08-09-2006 03:24 PM
Search Ranges on Custom Fields philmaw v3.1 Questions & Support 2 08-03-2006 08:55 AM
Custom Field Sets for Different Categories robgo777 v3.1 Modules & Modifications 2 06-11-2006 06:22 PM
Displaying extra field in Search and category listings Bucketman v3.0 Questions & Support 3 04-26-2006 10:48 AM


All times are GMT -4. The time now is 04:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22