I'm using views and content profiles on a site and want to have a view on a user's profiles page that shows friends and fans of that user. When I use the user_relationship_browser view on a user's profile, though, the "Fan" (one-way) relationship appears backwards.
So, here's an example...
Let's say User A clicks on "Become a Fan of Me!" on User B's profile.
The behavior I'd want is for, on User B's profile, it to show User A as one of User B's fans.
Instead, under "Fans" on User A's profile, it shows User B (implying that User B is a fan of User A). On the other hand, no fan relationship is shown on User B's profile.
The "All User Relationships" block shows the relationship the way I want it when displayed on the profile, but I'd like to be able to include user pictures in the list of "friends" and "fans."
Is there a way to make this work as described? I'm using the defaults, but have included the screen shot of the Edit view screen just in case.
I also attached a screenshot of the "All Relationships" Block above the "User Relationship Browser" view. Again, the block shows the "Fan relationship" correctly ("Fan of NickLaSlay"), but the view shows NickLaSlay as a fan of Benjammin626, which is backwards.
Thank you for your time!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Screen shot 2009-12-20 at 12.17.19.png | 110.91 KB | alex.k |
| #1 | followers_view.txt | 7.17 KB | alex.k |
| user_relationships_block.jpg | 19.01 KB | osirisioux | |
| user-relationships-browser.jpg | 79.73 KB | osirisioux |
Comments
Comment #1
alex.k commentedTry the attached view, it worked for me using a one-way relationship in the way you described. In case the import doesn't work see attached screenshot of the changes from the standard view - replacing the argument with a "Requestee user" (because you are looking at requestee's profile), and changing the relationship in the field to requestee (because you want to show the requester's username, not the user's who received the relationship).
Comment #2
osirisioux commentedSPOT ON! That was exactly what I needed. Thanks so much! :-)
Comment #3
kenorb commentedI've done it by adding Relationships: 'User relationships: Requestee user' and adding Filter: 'User: Current' using user relationship.