Hi,
I'm having difficulty setting up an activity 2.0 feed that displays the combined activity of both a user and their friends in one view. I've tried this with UR but I don't think the support is there yet, and I've also tried this with Friend Flag. The problem I'm running into (can be found here http://drupal.org/node/503964) is that I can figure out which argument to use to tie both the facebook statuses and node inserts to a user.
I've cloned the all_activity view and added "activity:actor" as an argument to display the activity of the user who's profile is being viewed (I'm using panels 3 for overriding user profiles) but this removes facebook statuses and doesn't show the users friends' activity (even with activity access:flag_friend setup).
Any help would be much appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | view_activity_friends.txt | 4.6 KB | vermario |
Comments
Comment #1
pribeh commentedwhen I say above that "I can figure out which argument ..." I mean, instead, that "I CAN'T figure out ..."
Comment #2
Scott Reynolds commentedok got this. Really quick and simple:
http://drupal.org/cvs?commit=256434
So you create your View add in the Argument: Activity Access: Activity Context User
This will assure that all access filters use the user present in the url. Pretty slick.
Comment #3
Scott Reynolds commenteddoh! it didn't work...
still playing with it
Comment #4
Scott Reynolds commentedgot it now. Lil bit more magik in this one
http://drupal.org/cvs?commit=256560
Comment #6
vermario commentedI'm sorry to reopen this, but...
I can't really understand your instructions in #2... I'm using the latest dev version.
All I need is just to display the user's "friends" activity. I'm using the user relationship module and Activity 2.0.
I've fiddled quite a bit with a view to accomplish this, cloning the "activity all".
So far, I have a view that, when viewed in a properly configured panel in the user's profile (grabs the argument from context, that works), displays friend's activity related to nodes. This works because i have the "node access" filter, and I'm using user_relationship_access module to allow only friends to see nodes of a certain type.
I think it has to do with the fact that the view has both "node" and "user" relationships?
The goal would be to have something like the maintenance view, but filtered for the current user's friends (with user relationships). This way I could display to the user all activity types, and not just "node operations".
I'm attaching an export of my current view. If someone could point me in the right direction that would be great! (also useful for other who would like to build such a functionality, which used to be built in in 1.x, if I'm not wrong...)
Thanks!!!
Comment #7
vermario commentedClosed this one, since the title and my last message did not match. Starting a new more specific one. (hope it's ok).