Hello,

I need to show the list of relationship (friends -2 ways) that the currently logged user has initiated and where approved by the users. I created a list based on filter (requestee) User: Current No. But I see the in the list also the friends request that the current user received and approved.

Any hints?

CommentFileSizeAuthor
#8 exported-view.txt5.17 KByoeld

Comments

alex.k’s picture

Not sure quite what you mean... two possibilities:
1. To show pending relationships that the user has requested, use the (requester) relationship
2. If you are showing approved relationships - since it's two-way, there is unfortunately no way to tell which user initiated the relationship once approved, as it's bidirectional.

yoeld’s picture

Hi Alex,

Thanks for your prompt reply.

I was mentioning the situation #2. I though the that the initial requester for the relationship is still flagged as the initiator of the whole relationship, regardless whether it is a one way or 2 way. Not that critical though! Thanks anyway!!

alex.k’s picture

Status: Active » Closed (works as designed)
tamasco’s picture

Status: Closed (works as designed) » Active

Hello Alex,

Is there a way I can filter friends of the currently logged in user using views?

For example, in friendlist, one can combine with the aid of Views Or module
1. 'requestee is the currently logged in user' and
2. 'requester is the currently logged in user' to get this done.

I'm really in need of this. Your help will be very much appreciated. Thanks.

alex.k’s picture

Sure. If you use the UR: Requestee and UR: Requester relationships, you can add the 'User: current' filter and assign it to the relationship. That's what the original poster is doing in his view, I believe.

@yoeld if you could post an export of your view that'd would probably be helpful. Thanks.

tamasco’s picture

Thanks a lot. That was helpful.

alex.k’s picture

Status: Active » Fixed

Great.

yoeld’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » yoeld
StatusFileSize
new5.17 KB

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.