Support Forums

Filter on state

This is a discussion on Filter on state within the Technical Support forums, part of the Technical Support Forums category; Hello another question. For example: When i go the categorie auto>autoparts the i see al the autopart listings. I like ...


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 03-11-2008, 03:04 PM   #1
Member
 
Join Date: Mar 2008
Posts: 49
Rep Power: 15
wesse249 is on a distinguished road
Default Filter on state

Hello another question.

For example: When i go the categorie auto>autoparts the i see al the autopart listings. I like to have on my site the following option: A jumpbox with al states in it and when i select an state the page must reload and only show the listing in that state? Is there a module for this option? or can somebody tell me how to do this?

Greetings Jan
wesse249 is offline  
Old 03-13-2008, 09:49 PM   #2
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

The easiest thing I can think of would be to create a form or set of links that link directly to the search results with the state in question.

NJ Link -> searchresults.php?state=NJ

Of course, I haven't been keeping up with the latest v4 code so my example might not be perfect. You could just search by state and copy/paste the url into a form or html block.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline  
Old 03-13-2008, 10:41 PM   #3
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 25
cwp is a jewel in the rough
Default

If you look here --> http://demo.68classifieds.com/search.php You'll see the dropdown of the box with all the states. You could use that code and take out all of the other search options and there you go!
__________________
Version 4.0.3 Developer
cwp is offline  
Old 03-14-2008, 12:08 AM   #4
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

Do you mean a select box? I'm not familiar with "jumbo box". If that is what you meant you could do something like this:

HTML Code:
<script type="text/javascript">
  function searchState()
  {
      var selObj = document.getElementById('stateSearch');
      var selIndex = selObj.selectedIndex;
      window.location="searchresults.php?state=" + selObj.options[selIndex].value;
  }
</script>
<select id="stateSearch" onchange="searchState();">
  <option value="NJ">New Jersey</option>
</select>
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline  
Old 03-14-2008, 09:38 AM   #5
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,342
Rep Power: 52
Maffo is just really nice Maffo is just really nice
Default

I am currently writing a module that specifically deals with locality. It should be ready within a fortnight.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline  
Old 04-07-2008, 10:19 AM   #6
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 17
ksuralta is on a distinguished road
Default

I did the same for my site. Just used another page to select the location, instead of using a combo box.
__________________
Kenneth
http://www.phlist.com
v4.0.8 Developer + Custom Template
ksuralta is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
State menu as custom field cheesegrits Technical Support 5 01-24-2008 04:31 PM


All times are GMT -4. The time now is 09:51 AM.


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