Requiring Login to Access Community and getting error message correct
-
We have a membership site. I got BuddyPress installed and functional. Now I would like to protect the community by requiring that someone log in before accessing any of the BuddyPress features. Working with WishList Member tech support I was advised to use these lines of code in each of the BP Template Pack files listed in step 3 of the setup.
1) “before this `
`
and after this ``
2) “
3) ` `
4) ` `
The file buddypress-protect.php contains the following code:
`You must be logged in to view this content.
`
So, the good news is that the community is protected, but the bad news is that the error message is not showing up. I get a page that shows a header and footer, but the rest is blank. I searched the internet trying to learn more about “include templatepath” and an obtuse post briefly mentioned that this will not work with BuddyPress. Is this true and is there a better way to do this?
- The topic ‘Requiring Login to Access Community and getting error message correct’ is closed to new replies.