Hey together,

is there any current development inprogress to integrate USER location-data in views?
The great location_views module does an excellent job regarding the integration of node-locations ... however, often you (well, at least i ;) need to integrate - and later proximity-search - the location of the user who posted the content.
Example: a Skill- or Equipmepment-Database build with CCK, location and views, where Skill- or Equipment-nodes are added by each user and listet/searched via a view. There you need to display and proximity-search for the user's location - not a node-specific location (since not a single skill or equipment has a - maybe changing! - location, but it's user).

KarenS has built an excellent proximity-search into the location_views module ( http://groups.drupal.org/node/929 ) - something like that for an imaginary module userlocation_views would be great, too.

I don't think integrating the user's location is much different, however a first test to alter location_views didn't work (i have to admit my knowledge about devloping for the location or views-module is not that deep ;)

So ... is anyone working on some kind of userlocation_views integration module??
Is there a need of it besides my example?
Or are there suggestions how we could start development on this module?

Thanks,

Daniel

[see http://groups.drupal.org/node/1744]

Comments

KarenS’s picture

Status: Active » Fixed

There was another issue on this subject, too, but anyway I just made a commit to get this working. It requires that you install usernode. Once usernode is installed, Event Views will expose a list of additional fields labeled 'User Location: City', etc to match the fields available for node locations. It seems to be mostly working. You can use user location fields, filters, and arguments. I haven't attempted to get the proximity search working for users yet, though. I have changes to make to it first, then I'll try to get it working for users, too.

Anonymous’s picture

Status: Fixed » Closed (fixed)
John Hodgins’s picture

Status: Closed (fixed) » Active

hi there,

i've been using the location_view module to build views of users by countries, and it works really well. thanks! but the functionality described above would be really useful. i want to be able to build views of posts that have been authored by users from particular locations -- eg. all the posts by users from canada, all the posts by users from the u.s., etc.

what i did was to change, on line 222:

'table' => 'usernode',

into:

'table' => 'node',

this has two positive consequences -- (1) you can build views of all nodes by their author's location (rather than just usernodes) and (2) you don't have to install the usernode module. if you want to build lists of users, then you can always keep the usernode module and filter the node type to usernode.

does this seem like useful functionality to you? is there something i've missed that makes this a bad idea? i'd be happy to try and make a patch (never done it before....)

csc4’s picture

+1 - this is a brilliant idea.