Hi,
I just read your post http://seventhqueen.com/blog/code-snippets/restrict-guest-users-from-accessing-buddypress-or-bbpress-pages.html and posted a comment but this support is may be more appropriate.
How to trigger the modal login to access restricted content instead?
Users usually find a redirect to a registration page quite harsh and it does not always make sense.
A better approach would be to kick in the modal login instead.
If the viewer is already a registered user, then why redirecting him to the registration page?
If the viewer is not yet a registered user, then he gets the message that he needs to register and click himself on the registration link on the modal login.
So how to trigger the modal login to access restricted buddypress content?