I'm using the D7 port (works great so far) and am looking to filter based off the current user's location stored in their profile field. How would you guys set this up? I'm thinking a relation needs to be setup but am lost at where to start. Should I add the user profile to the options in the filter?

Cheers,

Cellar-Door

Comments

garciac1212’s picture

Same problem here. I noticed the OL proximity filter does appear and works fine when using regular nodes but doesn't work for users or profiles for that matter.

garciac1212’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Priority: Normal » Critical

Just noticed this is filed under 6.x ver. changed it to 7ver...

benjarlett’s picture

I'm wanting this feature too... glad it's not just me. Great work so far!

hawkeye217’s picture

Definitely in the market for this feature too...

cellar door’s picture

Hey Guys - Just saw this update. I've got user proximity running through the git repo in http://drupal.org/node/1013450. I've since done some heavy editing in order to get it to work with a custom module so I'm going to have to revisit the two versions and see if I can merge them for my use. It should get you there though. I can do a write-up if you'd like when I get a chance

hawkeye217’s picture

Would love a writeup! I wonder if the maintainer of this module would be interested in integrating your work...

cellar door’s picture

I'll work on it. Basically what I did is take the repo by FeyP and it worked great for user proximity but in the case I was using it, I wanted to reference it programmatically through a module that would pass it the coordinates of a recently posted node. The coordinates were already in WKT so I altered some of the options to bypass the geocoding and ran it off the WKT.

In my use I then returned that list to a module that would send out an SMS notification. It allowed me to do proximity based notifications off of new node creations. Pretty slick!

hawkeye217’s picture

wow! very impressive!

garciac1212’s picture

Good to hear people are looking into this. In the meantime what I did to get USERS PROXIMITY was to scratch the open layers proximity and use the new dev version of the geofield module. There is an option there to get proximity for users, nodes, etc. Check that out as well...

http://drupal.org/project/geofield

noahlively’s picture

One thing I have done to work around the issue is to create a Location content type (one is provided by the ol_locator module if you're using that), put the geofield into the location node, and then create a node reference on the user account, so that every user points to one location.

This allows you to get the benefit of this module in its current state of dev. You can then build views based on the location proximity and then use views relationships to pull in data from the user profile.

B0ZE’s picture

I'm in the market for this feature too!

mdlopresti’s picture

subscribe