Activity Stream and User Relationships?

deltab - November 7, 2009 - 06:51
Project:Activity Stream
Version:6.x-1.0-rc2
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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?

#1

nitram079 - November 7, 2009 - 06:53

I totally second that - subscribing

#2

akalsey - November 7, 2009 - 16:45
Status:active» needs review

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.

AttachmentSize
buddies.patch 1.97 KB

#3

deltab - November 7, 2009 - 18:35

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

#4

akalsey - November 7, 2009 - 18:48

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.

#5

deltab - November 7, 2009 - 18:55

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

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

#6

akalsey - November 7, 2009 - 19:03

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.

#7

deltab - November 7, 2009 - 19:07

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.

#8

deltab - November 7, 2009 - 19:14

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.

#9

deltab - November 7, 2009 - 19:27

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.

 
 

Drupal is a registered trademark of Dries Buytaert.