We need to integrate user relationships with views, perhaps via a separate module user_relationship_views.

API: http://drupal.org/handbook/modules/views/api.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sprsquish’s picture

Title: user relationships needs integration with views » Integration with Views
jjeff’s picture

Seconded.

I'm digging User Relationships! We're using it on a project and we'll take a shot at Views integration.

sprsquish’s picture

Glad to hear it!

Recently we've needed to do a few things as a special circumstance that has caused me to rethink a bit of the architecture of the module.

I'll keep the API as is, but the way data is stored is going to change some. As is, it's nearly impossible to do a proper join with the UR table without completely taking down the DB. I have some changes in mind that I'll start working on either tomorrow evening or Monday.

Send me an email if you'd like to talk it out.

Michelle’s picture

I was discussing getting at buddies via bio with jjef on IRC and he mentioned that the 'bots are using this module now. I need views support to integrate this into user profiles so I'm "subscribing" to keep an eye on the progress.

Michelle

catch’s picture

Also subscribing as I lurked on irc during this conversation :P

sprsquish’s picture

I've started overhauling the module to make views integration easier.

I'll talk things over with the rest of the team, but I believe we're coming up on the 1.0 release of this thing as it is. After that's released I'll commit the changes I have and start in on 2.0. The next version will have many, many significant API changes. Also database changes. And finally views support.

eaton’s picture

It may be a bit late, but here's some very rough Views integration code that I wrote for an internal project. It provides some simple filters, and an argument that allows you to filter based on friends-of-a-uid.

sprsquish’s picture

Version: 5.x-1.x-dev » 5.x-2.x-dev
Assigned: Unassigned » sprsquish
Status: Active » Fixed

Hey whadda ya know about that? I've finally had some time and motivation to get this thing up to speed.

I bit the bullet and rebuilt a ton of stuff. It's basically a whole new module now. My apologies for the inconvenience this may cause, but believe me when I say it's better this way. It's all around faster and finally able to support views.

If you wanna pull it from HEAD you'll have the latest and greatest of course. You could wait for the release script to run and provide a downloadable package tagged as 5.x-2.x-dev.

I haven't written up a changelog to make the transition easier, but that'll be next. Beat the thing up a bit and let me know of any bugs. Also let me know if it's working as it should. I'd like to push a 2.0 release as soon as I can.

sprsquish’s picture

Status: Fixed » Closed (fixed)