Filter on (requestee) User: Current No - not filtering

yoeld - October 11, 2009 - 20:58
Project:User Relationships
Version:6.x-1.0-rc2
Component:Code
Category:support request
Priority:normal
Assigned:yoeld
Status:closed
Description

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?

#1

alex.k - October 11, 2009 - 21:15

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.

#2

yoeld - October 11, 2009 - 22:15

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!!

#3

alex.k - October 12, 2009 - 17:16
Status:active» by design

#4

tamasco - October 13, 2009 - 20:36
Status:by design» 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.

#5

alex.k - October 14, 2009 - 09:00

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.

#6

tamasco - October 14, 2009 - 18:42

Thanks a lot. That was helpful.

#7

alex.k - October 14, 2009 - 19:20
Status:active» fixed

Great.

#8

yoeld - October 14, 2009 - 21:12
Component:Miscellaneous» Code
Assigned to:Anonymous» yoeld
AttachmentSize
exported-view.txt 5.17 KB

#9

System Message - October 28, 2009 - 21:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.