Support Forums

modifying the quick search bar

This is a discussion on modifying the quick search bar within the Modules / Plugins / Modifications forums, part of the Developer Forums category; I am trying to modify the header quick search bar to search by: category & location. So the drop down ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 01-13-2009, 02:34 PM   #1
Member
 
Join Date: Dec 2008
Posts: 34
Rep Power: 12
cflo is on a distinguished road
Default modifying the quick search bar

I am trying to modify the header quick search bar to search by: category & location. So the drop down menus would be visible instead of the search by text field.

The search bar would look like this with the drop menus:
__________________________________________________ ___

Search: [Category] [Country] [State] [City] <<Search button>>
__________________________________________________ ___

If any one has a modified search script I am willing to pay for it.
Any help would be much appreciated.
Attached Images
File Type: png searchbar.png (36.4 KB, 22 views)
__________________
Developer v4.0.9
cflo is offline   Reply With Quote
Old 01-13-2009, 02:58 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I haven't tried doing this, but how I would approach it would be like this:
Create a borderless table with a set size to match within the layout of the existing search text field. Then I would copy the form inputs from the search.tpl for those three fields that you are wanting into data cells in the table.

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 01-13-2009, 08:02 PM   #3
Member
 
Join Date: Dec 2008
Posts: 34
Rep Power: 12
cflo is on a distinguished road
Default

I tired that but I ran in to a little problem.
When the category items are selected it automatically displays the related options as set in extra fields, and it pushes everything down.
__________________
Developer v4.0.9
cflo is offline   Reply With Quote
Old 01-13-2009, 08:15 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Perhaps like this

68 Classified Modules For Sale .

This module can be placed on any page or in the layout and you can of course style it as you wish.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 01-13-2009, 08:28 PM   #5
Member
 
Join Date: Dec 2008
Posts: 34
Rep Power: 12
cflo is on a distinguished road
Default

I bought the module from you last week.
Its great but I cant seem to modify it the way I like it to work.

Problem is that I need to disable the extra feilds in that particular search mod because it pushes the page down, I need to contain everything within the parameters of the quick search bar.

Perhaps you can help?


Quote:
Originally Posted by seymourjames
Perhaps like this

68 Classified Modules For Sale .

This module can be placed on any page or in the layout and you can of course style it as you wish.
__________________
Developer v4.0.9
cflo is offline   Reply With Quote
Old 01-14-2009, 09:14 AM   #6
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

It sounds like you just need to delete this part of the form for the categories:
HTML Code:
id="type" onChange="displaySec(this);
This part calls a javascript which in turn pulls the extra fields for the category selected which is the part you don't want.

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 01-14-2009, 09:44 AM   #7
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Just keep in mind that by removing the searchable extra fields you will prevent people from searching the contents of those extra fields. As far as I know the text entered in the text field does not get searched for in any of the extra fields.

Also an easier approach, especially if you are not going to allow people to search for data in the extra fields is to simply go back into the extra fields in admin and set them all to be non-searchable. I think this will prevent then from popping up in the search form when a category is selected. You may want to try it with just a single field first to test it though.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 01-15-2009, 12:01 PM   #8
Member
 
Join Date: Dec 2008
Posts: 34
Rep Power: 12
cflo is on a distinguished road
Default

Thank you for you feedback I will give it a shot.
__________________
Developer v4.0.9
cflo is offline   Reply With Quote
Old 01-15-2009, 01:36 PM   #9
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Larry's advice should work. The module emulates the default searchform.tpl behavior so you turn stuff on and off as you need. Another way is you can also pull out the ajax response from that part of the searchform.tpl in the module folder if you wish. Try that.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 01-20-2009, 10:24 AM   #10
Member
 
Join Date: Dec 2008
Posts: 34
Rep Power: 12
cflo is on a distinguished road
Default

It works but conflicts with the search page.
__________________
Developer v4.0.9
cflo is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Ad Search Problems bowers01 Technical Support 5 10-15-2008 03:54 AM
Quick Search out of alignment bowers01 Technical Support 0 06-29-2008 03:50 AM
Modifying Search Form jonahcoyote Technical Support 10 06-27-2008 12:50 PM


All times are GMT -4. The time now is 08:35 AM.


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