I'd like to add a feature to an upcoming church site (Drupal 6) I'm working on where users will be able to store their address (zip code in particular) and then go to a search page where they can locate other users who live nearby them. The idea is to be part of a system to help assemble groups of people who live close to each other for local/neighborhood Bible studies or small groups. On a search page, users would be able to enter their zip code and see a list of all other users within a certain number of miles.
I've tried to get this working using Location module and a custom View (user view, not nodes), but haven't had much success. I've got users storing their address info and zip codes in their profiles (standard profiles) through Location module's added fields. However, my View to search the fields using exposed filters doesn't seem to work no matter what I try. In fact in the exposed filters dialog box it even says "FIXME" (haha) so I'm leaning towards the idea that this might not even be possible right now. Showing the results on a Google map would be icing on the cake too, though need the cake in the first place before thinking about that haha :)
Anyhow, if anyone has any advice or ideas or has done something like this before, any help would be greatly appreciated. Perhaps it will take some other location-related modules which I'm not yet familiar with. Thanks!
You might need some custom code to accomplish this. If there is a FIXME note in the code It might now be there, yet. But, it should be possible with come custom goodness.
Hey guys -
I'd like to add a feature to an upcoming church site (Drupal 6) I'm working on where users will be able to store their address (zip code in particular) and then go to a search page where they can locate other users who live nearby them. The idea is to be part of a system to help assemble groups of people who live close to each other for local/neighborhood Bible studies or small groups. On a search page, users would be able to enter their zip code and see a list of all other users within a certain number of miles.
I've tried to get this working using Location module and a custom View (user view, not nodes), but haven't had much success. I've got users storing their address info and zip codes in their profiles (standard profiles) through Location module's added fields. However, my View to search the fields using exposed filters doesn't seem to work no matter what I try. In fact in the exposed filters dialog box it even says "FIXME" (haha) so I'm leaning towards the idea that this might not even be possible right now. Showing the results on a Google map would be icing on the cake too, though need the cake in the first place before thinking about that haha :)
Anyhow, if anyone has any advice or ideas or has done something like this before, any help would be greatly appreciated. Perhaps it will take some other location-related modules which I'm not yet familiar with. Thanks!
- David
davidnewkerk.com | absolutecross.com
View my Drupal lessons & guides