Activity Stream is a great module, but in a site with 100s of users, it becomes less than useful as a user will see activity of people unrelated to him.

Is it possible to setup Activity Stream in such as way that a user only sees the stream of users he has a User Relationships connection with?

CommentFileSizeAuthor
#2 buddies.patch1.97 KBakalsey

Comments

nitram079’s picture

I totally second that - subscribing

akalsey’s picture

Status: Active » Needs review
StatusFileSize
new1.97 KB

There was some code in there already for BuddyList and Drupal 5, so it shouldn't be too complicated.

This patch is totally untested but here's what it should do.

If you're looking at your own profile page and you have either User Relationships or FriendList installed, show the activity stream of your friends instead of your own.

The patch is for Activity Stream 2.x (no new features going into 1.0). Try it out and let me know how it works.

deltab’s picture

the old simplepie conflict is back (and yes, i have other modules using Simplepie, and Activigtystream was working correctly post http://drupal.org/node/303765 settings). I thought the Simplepie conflict was resolved in 2.x?

Call to undefined function simplepie_require() in /PATH/sites/all/modules/activitystream/activitystream_feed/activitystream_feed.module on line 13

akalsey’s picture

Could you try installing the Utility module and setting the Activity Stream module weight to be lower than Simplepie?

http://drupal.org/project/util

I think what's happening is the AS module is loading before Simplepie.

deltab’s picture

Can't, as you know, simplepie results in a whitescreen error.

Can it be an issue with older activityscreen items still in the database?

akalsey’s picture

In your database, find the activitystream and activitystream_feed modules in the system table and set the weight to 50.

Or delete the activitystream folder from your modules directory, install Util and set Simplepie to -50 weight. The put the acrivitystream folder back in and re-enable the module. All your AS accounts and items will still be there.

deltab’s picture

Okay, you are right - some diddling with the modules (moved activitystream out of the ./modules dir, installed util, put simplepie at -100, moved activitystream back) and it works.

Question is, what do I do next for the UR stuff to work? I am not a coder, but what I figure is, there are two situations (1) the user is _not_ logged in (show him everything), and (2) the user is logged in, and the system knows his relationships, therefore show only his friends activity. So howto?

Step-By-Step configuration instructions are much appreciated.

deltab’s picture

As it stands, I can only see my Activity Stream, not my colleagues or any of the other specific User Relationship types. Therefore the question.

deltab’s picture

also, with users I know haven't configured anything with activity stream, i.e., if i browse to mysite/stream/userWhoDidNotConfigure, i still see only my activity, ditto with mysite/stream/userWhoConfigured - i do not see his activity.

something is surely failing somewhere.