Closed (fixed)
Project:
User Relationships
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 May 2008 at 02:56 UTC
Updated:
19 Feb 2009 at 13:59 UTC
I don't know how hard this would be or if its even possible, but it would useful if users could have a block, list, etc. indicating which users on their buddylist are attending the same events they have also signed up for.
I know the Signup module hasn't been upgraded to D6 yet and may not be for a while, but 5.x is always an option for now.
Comments
Comment #1
Apollo610 commentedBringing this thread back from the dead as my request is a slight offshoot...
Has anyone been able to leverage Views with UR and Signup to provide a view that displays the nodes that the user's friends have signed up for? Right now I have a view that shows the nodes that the user's friends have CREATED, but I need to extend that slightly to include signups as well.
While I know how to create the actual SQL to do this, the logistics of doing it in views is kinda making my head hurt. :)
I'll post the export if I can nail this down in the meantime, but if someone can help me out I'd greatly appreciate it.
Comment #2
Apollo610 commentedOk, think I got it. Not difficult at all, though admittedly I haven't been through every test case yet to ensure it works 100%.
In Views I'm using the following configuration.
Relationships
Signup: User
(Signup user) User relationships: Requester user
Fields
(Signup user) User: Name Friend
Node: Title Title
Filters
(requester) User relationships: Relationship status = 1
Comment #3
alex.k commentedGreat info, thanks for posting! I knew that signup views integration was under development, but it looks like it's complete now.
Comment #4
Apollo610 commentedMy pleasure Alex, the least us users can do is help support the effort the devs and maintainers put in.
So thanks for the time, effort, and energy you've put into UR!
Comment #5
Apollo610 commentedOk, just a quick update... I had to make some tweaks, since my original suggestion wasn't 100% correct in all test cases. This one so far is much more accurate.
Relationships
Signup: User
(Signup user) User relationships: Requester user
(Signup user) User relationships: Requestee user
Fields
(Signup user) User: Name Friend
Node: Title Title
Filters
(requester) User relationships: Relationship status = 1
User: Current No
(requester) User: Current Yes
Regarding the filters - the
user:current nois in there to exclude the user running the query from being a result in the signup list... and the(requester) user:current yesis used to verify that we only return results for the current user regardless of direction of the friend request. I'm sure there are prettier ways to do it, but this works for me so far...Just an aside - Views, while awesome in power, is headache-inducing. :)