PDA

View Full Version : Find members by Zip Code?


JeffeVerde
Thu 19th Jul '07, 9:10pm
I'm in a motorcycling forum that's using vBulletin 3.5.4, and it would be a useful feature to be able to find other members in an X-mile radius of a zip code when we're organizing group rides.

Is there a built-in feature like this? If not, I can do the coding to do the database search. Does vBulletin allow customizations so that I could keep the search interface within vBulletin instead of jumping out to a seperate page?

I tried searching on ZIP CODE to see if there were any relavent threads, but your search engine won't search on a three-character word :P

Steve Machol
Fri 20th Jul '07, 12:25am
Create a custom User Profile Field for Zip Code, make it required, t5en you will be able to search for it in the Member list.

JeffeVerde
Fri 20th Jul '07, 2:45am
Create a custom User Profile Field for Zip Code, make it required, t5en you will be able to search for it in the Member list.

Thanks Steve-- but I need more than a simple "Find user profile where ZIP=<input>". I want to input my zip code, for example, and get a list of all members within, say, 20 miles of me. So I need two inputs - ZIP and DISTANCE - with these two parameters, I have a mapping applet that returns a list of all zip codes that are within <DISTANCE> miles of <ZIP>. WIth this list of all zip codes that are in my target area, I can then query the user profiles zip's found in this list.

So the question is-- can I create a form in vBulletin with two input fields and button whose click event I can use to call my widget? Or does this have to be done outside of vBulletin.

thanks,
Geoff

Steve Machol
Fri 20th Jul '07, 4:31pm
Well of course there is no function to do this. This requires modifying the code. We cannot officially support code modifications or forums running modified code, however you can try searching or asking for help with this over at www.vbulletin.org (http://www.vbulletin.org).

ThorstenA
Sun 22nd Jul '07, 3:52pm
Thanks Steve-- but I need more than a simple "Find user profile where ZIP=<input>". I want to input my zip code, for example, and get a list of all members within, say, 20 miles of me. So I need two inputs - ZIP and DISTANCE - with these two parameters, I have a mapping applet that returns a list of all zip codes that are within <DISTANCE> miles of <ZIP>. WIth this list of all zip codes that are in my target area, I can then query the user profiles zip's found in this list.

So the question is-- can I create a form in vBulletin with two input fields and button whose click event I can use to call my widget? Or does this have to be done outside of vBulletin.

I have made my ZIP profile field searchable for just the first 35xxx or 3xxxx :) but you have to make changes via plugin system so that if you in put 35 in search field you 'll not get users from xxx35 as a search result ;)