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

User centric home page


Once a user has logged into the site we will want to redirect them to a stream of user activity, to truly take them into the social network. We can do this using actions and triggers. At the moment we don't have a stream of activity, so we will set it up to take them to their own profile page for now.

Triggers are events on our site, such as a user logging in. Through the trigger settings we can assign an action to happen when the event is triggered. Actions are managed from Configuration | System | Actions. To redirect the user when they log in we need to create an advanced action, Redirect to URL:

To redirect the user to their profile page, we should enter user as the URL, and click Save:

Once we have created our action we can associate it with a trigger. Triggers are managed in Structure | Triggers, and we need to select the User tab to list triggers related to user events.

From here we select the newly created Redirect to URL action from the TRIGGER: AFTER A USER...

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