Hello,
There are many posts in the issue queue requesting for better UR-Views integration. My aim here is to consolidate all the requests into this one post and hope that someone familiar with programming (and with a kind heart) would be able to create the necessary code to improve UR-Views integration. I feel that UR is missing just one or couple things that would be applied and make possible all scenarios listed below (but not sure as I don't know any programming).
Below are commonly needed views Node and User type scenarios
(I'm sure there are other scenarios but below is what I came up with from reading the posts)
Node type view
- show nodes where node author has an 'approved' relationship (of type x or all) with the current logged in user
- show nodes where node author has a 'pending' relationship (of type x or all) with the current logged in user who is the requester
- show nodes where node author has a 'pending' relationship (of type x or all) with the current logged in user who is the requestee
- show nodes where node author has a 'pending' relationship (of type x or all) with the current logged in user who is either the requester of requestee
- show nodes where node author has no relationship with the current logged in user
- show nodes where current logged in user has a common relationship with the node author as node author x (ie common friends)
User type view
- show users with an 'approved' relationship (of type x or all) with the current logged in user
- show users with a 'pending' relationship (of type x or all) with the current logged in user who is the requester
- show users with a 'pending' relationship (of type x or all) with the current logged in user who is the requestee
- show users with a 'pending' relationship (of type x or all) with the current logged in user who is either the requester of requestee
- show users with a no relationship with the current logged in user
- show users whom have a common relationship with user x and the current logged in user (ie common friends)
Useful fields
- number of approved relationships (of type x or all) of the current logged in user
- number of pending relationships (of type x or all) of the current logged in user, where the current logged in user is the requester
- number of pending relationships (of type x or all) of the current logged in user, where the current logged in user is the requestee
- number of pending relationships (of type x or all) of the current logged in user, where the current logged in user is either the requester or requestee
- customizable request relationship link => for example show "Send Request" then after sent show "Request Pending"
- customizable cancel relationship request link
- customizable remove relationship link
Other things to consider
- node being shown may be a content profile node
note: some views are already achievable but messy with many duplicates etc and some are not possible at the moment.
Below are posts in the queue requesting help with UR-Views Integration:
(I dare not to close them of duplicates to this unless the person who open it chooses or maintainer chooses to do so)
#360798: filter UR views based on Requester/Requestee is the Currently Logged in User
#716058: List of relationships using views (orkut style)
#337429: Display only approved Friends with Views
#700750: views - display all relationships of a user in a 2 way relationship
#719028: Views Pending Request
#701692: UR common friends
#720436: Show online friends (views + ur)
#684156: Views relationship count
#497826: Custom pending relationships tab with views?
#633204: Status Link - option to rename link
#755020: Approved filter for views showing pending relationships
#692418: Views of users with No Relationship with current user
I hope someone will be able to help with improving the already awesome User Relationships module =) Thanks!
Comments
Comment #1
YK85 commentedMANY of the above are solved by pedrofaria's patch at #866400: Views filter patch for current user
Remaining from above:
#701692: UR common friends
#684156: Views relationship count
#633204: Status Link - option to rename link
#755020: Approved filter for views showing pending relationships
#692418: Views of users with No Relationship with current user
Comment #2
ajayg commentedI would add following to the list as well as it is common use case
#864590: How to create "fans (them to you") view of one way relationship?
Comment #3
YK85 commentedI was able to achieve a view that solves #864590: How to create "fans (them to you") view of one way relationship?
Attached a views export and marked it as a duplicate of #866400: Views filter patch for current user
Many thanks to pedrofaria and I hope more people can test so it can get committed =)
Comment #4
smartsystems160 commentedHi,
i would like a feature to be added to UR views to filter the friend request by roles and possibly by users. For example, i have a view of site users and i want to see a 'send friend request' for members who are not my friends, but at the same time, i have other site users on the list belonging to another role who do not require friend request (like corporate members), thirdly, i am on the list too and i do not want the friend request link on my profile in the user list. So i want to achieve the following:
Filter the friend request to show only for individual members on the list
Filter the friend request to NOT show for corporate members on the list
Filter the friend request to NOT show for me on the list.
Maybe some php can do that but it would be great to have it in the module. Thanks. please help me anyone.
Comment #5
chuckbar77 commented+1 subscribing. Awesome module!
Only request would be improving views integration which would be really helpful.
Comment #6
spyderpie commentedI too, love this module!
My wish feature for better views integration is to be able to show more information in the view about the users relationship .. for example: if I have a category called "Associates" (assume its other teachers) and am showing on my profile "My Associates" - I would want to put the associates name, picture and subject they teach (from a cck field), maybe other cck fields and then link to their profile or content profile so a viewer can click their name or picture and go to the associates profile.
Currently, I can put their name .. but the link to the profile does not seem to work.
Peace,
Julie
Comment #7
mrf commentedComment #8
warmth commentedAny news about the common relationship view?