Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 7 Social Networking

You're reading from   Drupal 7 Social Networking Build a social or community website with friends lists, groups, custom user profiles, and much more

Arrow left icon
Product type Paperback
Published in Sep 2011
Publisher Packt
ISBN-13 9781849516006
Length 328 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Drupal 7 Social Networking
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Drupal and Social Networking FREE CHAPTER 2. Preparing Drupal for a Social Networking Site 3. User Content: Contributions, Forums, and Blogs 4. Users and Profiles 5. Enabling User Interaction 6. Social Seasoning 7. Module Development: Rapidly Improve your Social Network 8. How We Can Design Our Site 9. Communicating with Our Users 10. Deploying and Maintaining Your Social Network 11. Easing Growing Pains 12. Promotion, SEO, User Retention, and Monetization Strategies Setting up a Local Development Environment Installed Modules Index

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 to the stream until it has been approved) and to send notification to heartbeat

A template for each relationship type

Let's start by creating a heartbeat template for the friend relationship; we need to go to Administer | Structure | Heartbeat...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image