Skip to:

Privatize BuddyPress

  • VegasKev88


    I’m working on a buddypress install where I want to keep /members/ , /forums/ , /groups/forums/ and a few other areas private to non-logged in users.

    I’ve thought about adding s2Member however, since I won’t be charging for anything on the site, s2Member is a bit overbearing for what I want to do.

    I also thought about adding the ‘Private BuddyPress’ plugin, however, that appears to only give options to select specific pages, rather than page templates, and for the buddypress, it seems to be an ‘all or nothing’ kind of scenario.

    If there isn’t a plugin out there that people can vouch for, I’m cool with coding it myself, I’ve just never attempted to make page templates function in this fashion.

    Ideally, what I’d like to do is this.

    when a non-logged in site visitor visits a page that is dedicated to logged in members only, they are able to visit the page, but the content would not appear, instead of the ‘content’ being shown, it could maybe route to pull content from another php template that would have a notification box with a message about registering or logging in and then I could add a banner to the login page and a banner to the register page.

    I know this isn’t too difficult to code, but I’m having some difficulty determining where best to start in the codex to start writing the code. If someone could point me in the right direction, that would be awesome, unless of course, there is a plugin that would solve my issue in 5 minutes instead of coding. I’m just fearful of using s2Member as it’s heavy for what I need.

    Thanks in advance for any assistance.

Viewing 1 replies (of 1 total)

  • danbpfr



    make a child theme, copy all bp-default template folder/files you’re interested to set as reserved to members into it

    Before each content area, add a simple if statement.

    if (is_user_logged_in) or if (!is_user_logged_in)

    the content to show/hide


Viewing 1 replies (of 1 total)
  • The topic ‘Privatize BuddyPress’ is closed to new replies.
Skip to toolbar