68 Classifieds Forums  

Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Modifications
Register Projects FAQ Members List Calendar Search Today's Posts Mark Forums Read

v3.1 Modifications Questions on modifying 68 Classifieds. Please note these are not supported by 68 Classifieds, and may make future updates more difficult.

 
Thread Tools Display Modes
  #1  
Old 10-14-2007, 06:46 PM
Greg H Greg H is offline
Member
 
Join Date: Jul 2007
Posts: 54
Default Extra fields to be searchable on the first search page, before a category is chosen

I have created a few extra fields and I need them to be searchable on the first search page, before a category is chosen. In my case the extra fields do apply to ALL categories.

As it is, extra fields only show up in search AFTER you choose a category and click search.

Help with this would be greatly appreciated, I have discussed this in another thread but got nowhere.

Thanks
__________________
Greg

Version 3.1.9 Developer
Reply With Quote
  #2  
Old 10-24-2007, 02:10 PM
suzkaw suzkaw is offline
Trained to break arms!
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 2,487
Default

If you open the search template file and locate the javascript at the top. Right above the closing {/literal} tag try to add this:

Code:
type=1; //1 is the id of the preselected category.
displaySec(type);
I haven't tested this but it should point you in the right direction.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Knowledge Base | User Manuals | My Blog
Reply With Quote
  #3  
Old 10-24-2007, 09:56 PM
Greg H Greg H is offline
Member
 
Join Date: Jul 2007
Posts: 54
Default

Thanks for the reply.

I just tried this with no luck.

I assume that all this is supposed to do is preselect all(assuming I used all the category id's) my categories for the search.

If so, I guess it would be ok, but it would be better to have the extra field search boxes show up on the first page as well.

Would I be right in assuming that I would need to do it for every single category ID?
If so would it be like this..

type=1; //1 is the id of the preselected category.
displaySec(type);
type=1; //1 is the id of the preselected category.
displaySec(type);

or like this..
type=1; //1 is the id of the preselected category.
type=2;
type=3; //etc
displaySec(type);

Thanks
__________________
Greg

Version 3.1.9 Developer
Reply With Quote
  #4  
Old 11-27-2007, 06:59 PM
Greg H Greg H is offline
Member
 
Join Date: Jul 2007
Posts: 54
Default

Thanks to MAffO for solving this for me.

Cheers
__________________
Greg

Version 3.1.9 Developer
Reply With Quote
  #5  
Old 11-28-2007, 01:10 PM
kampbell kampbell is offline
Junior Member
 
Join Date: Aug 2007
Posts: 16
Default

Is there anyway you could maybe PM or post here on how you were able to search extra fields on your home page? I have been having trouble with this for a while now. I have also been trying to have a search for all the categories in extra fields and have it searchable on my index. Thanks in advance.
__________________
Karim
v3.1.9 Developer Edition
Reply With Quote
  #6  
Old 11-28-2007, 03:29 PM
Greg H Greg H is offline
Member
 
Join Date: Jul 2007
Posts: 54
Default

Maffo did some recoding for me to make this happen, I dont know the details but I do know he did not simply modify the way extra listings are handled, he hard coded it.

You would need to ask Maffo for full details, but understand he will not do this for free, it takes time and money.
__________________
Greg

Version 3.1.9 Developer
Reply With Quote


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searchable Extra Fields pbraz v3.1 Questions & Support 17 02-15-2007 10:13 AM
Extrafields to be displayed on the search results and category listings page objelland v3.1 Questions & Support 1 01-13-2007 09:50 AM
Search on Extra Fields LR v3.1 Questions & Support 10 07-28-2006 09:45 AM
Extra Fields Not Appearing In Search Results Dan Ashton v3.0 Questions & Support 4 05-02-2006 11:37 AM
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:54 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.