Support Forums

Adding Searcrh Text Functionality

This is a discussion on Adding Searcrh Text Functionality within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? v4.1.6 Designer I understand the Search Text field only searches the title, ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 12-05-2009, 02:15 PM   #1
Customer
 
tlombard's Avatar
 
Join Date: Oct 2009
Location: Parker, CO
Posts: 37
Rep Power: 10
tlombard is on a distinguished road
Default Adding Searcrh Text Functionality

What version of 68 Classifieds are you running?
v4.1.6 Designer


I understand the Search Text field only searches the title, short description, and long description.

BUT I have added several extra fields...It seems crazy that the Search Text does not search those.

#1 How can I add the extra fields to also be searched and returned with the search text field?

any ideas how to search the extra fields also...via the search text field?

-Tom
tlombard is offline  
Old 12-05-2009, 11:00 PM   #2
Customer
 
Join Date: Sep 2006
Location: USA
Posts: 156
Rep Power: 25
BigOrange will become famous soon enough
Default

Extra fields are tied to categories. When you select a category (or subcategory) on the search page the extra fields you have associated with the category will appear.

It is best to set up all your categories and subcategories before setting up your extra fields. That way when you setup an extra field you can associate it with the appropriate categories at the same time. IF you setup categories and extra fields randomly it can get very confusing.
__________________
v4.1.9 Designer - Default template (modified)

"I have never forgotten anything... if I have I can't remember what it was."
BigOrange is offline  
Old 12-05-2009, 11:14 PM   #3
Customer
 
tlombard's Avatar
 
Join Date: Oct 2009
Location: Parker, CO
Posts: 37
Rep Power: 10
tlombard is on a distinguished road
Default

I understand the advance search feature...BUT I need a single text field that searches it all:...a quick search

Th 68 Demo has this listing


As you can see Sex is an extra field.

When I type in male in the search text field in the header of every page OR in the advance search with all fields set to 'search all'...i get no returns.

I need the text search field to search everything about an ad...including the extra fields of that ad.

-Tom
tlombard is offline  
Old 12-07-2009, 10:04 AM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

With the current extra field setup it is virtually impossible to search everything. That is why we load extra fields after the category has been selected. The major cause for this is the extra fields are stored in several tables and creating a complex join is not something easily accomplished.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 12-07-2009, 10:06 AM   #5
All Hands On Deck
 
seymourjames's Avatar
 
Join Date: Mar 2008
Posts: 3,529
Rep Power: 89
seymourjames is a jewel in the rough
Default

A thought but it might be possible to embed the extrafields into the description at checkout like a breadcrumb.

Eric???
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline  
Old 12-07-2009, 10:24 AM   #6
Customer
 
tlombard's Avatar
 
Join Date: Oct 2009
Location: Parker, CO
Posts: 37
Rep Power: 10
tlombard is on a distinguished road
Default

Great idea...I dont use the shirt description field....how tough would it be to loop through the extra fields for that ad and store them in the short description field.?
tlombard is offline  
Old 12-07-2009, 10:38 AM   #7
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Very interesting idea. I could see that working but from a coding stand point would be tricky to integrate. I would probably look at creating a module for this and tie into the add listing and modify listing hooks.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 12-07-2009, 11:47 AM   #8
Customer
 
tlombard's Avatar
 
Join Date: Oct 2009
Location: Parker, CO
Posts: 37
Rep Power: 10
tlombard is on a distinguished road
Default

Im new to the 68 structure and flow....

where are the add listing and modify listing hooks.?

...and I assume these are the files that handle inserting and updating the database when adding and editing ads?

-Tom
tlombard is offline  
Old 12-07-2009, 11:55 AM   #9
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

"hooks" are lines of code scattered throughout the core script files of 68C. They are places where the execution of the code looks for an external (via the module system) function and if one exists it runs the external function.

If you look down at the bottom of the page at the following link you can see some documentation creating a module and module hooks.

68 Classifieds Docs - 68 Classifieds
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 12-07-2009, 12:13 PM   #10
Customer
 
tlombard's Avatar
 
Join Date: Oct 2009
Location: Parker, CO
Posts: 37
Rep Power: 10
tlombard is on a distinguished road
Default

WOW....Lost me already.

To store the extra field values to the description field...how would I even start?

I'm thinking, storing the extra field values in a space delimited string, then have that string saved to the short description database field.

-Tom

Last edited by tlombard; 12-07-2009 at 12:20 PM.
tlombard is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extend Parent Child Functionality go3matix Technical Support 1 07-15-2009 09:03 AM
adding extra text for each category page anna245 Modules / Plugins / Modifications 2 07-12-2008 05:16 AM


All times are GMT -4. The time now is 06:10 AM.


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