O'Reilly logo

Drupal 7 Social Networking by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Related user activity stream

Now that our users can connect with other users, and start to build a truly social network, we need to provide streams of information which relate to these connections. The heartbeat module can help us with just that; it's an extensible module which provides useful streams of activity, and comes with basic support, out of the box, for the User Relationships module.

Depending on the relationship type, we would want the stream to display a different message, for example:

  • Jack and Jill are now friends
  • Jack is now following Jill

This will involve us:

  • Creating a template for heartbeat to inform users of the relationship in their stream
  • Creating a new rule to detect when a relationship is approved (we don't want to add the relationship ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required