Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Site Privacy

  • @style960

    Participant

    Would it be possible to include features that would enable site admins to make their sites accessible to logged-in users only? I’ve been using Ultimate Member a lot lately which allows admins to:

    Declare the site as private with the exception of selected pages
    Select who can see pages, posts, and menu links – everyone, visitors, or members – and by which role
    Set logged-in users to see a different home page to visitors

    Search the Buddypress forums and this has been requested for +5 years with no consistent response. Is there some resistance to this idea? Plugins like S2 Member and MemberPress are only applicable if your selling membership levels/content. The only plugin I’ve used that does this well is Ultimate Member but that’s a direct competitor to Buddypress and can’t be integrated on the same site.

    Thanks,
    Paul.

Viewing 7 replies - 1 through 7 (of 7 total)
  • @henrywright

    Moderator

    Would it be possible to include features that would enable site admins to make their sites accessible to logged-in users only?

    It certainly would be possible but even though such features have been requested lots of times here in the forum, it doesn’t mean everyone would want, or welcome that particular functionality. This is a great example that highlights why plugins exist. By providing this feature as a plugin, it ensures the core doesn’t become bloated. And users that do want the functionality can simply install a plugin.

    @style960

    Participant

    Hi Henry, thanks for the prompt reply. I understand what you’re saying and why that approach is always followed. It leaves me in a tricky spot though. I can’t use Ultimate Member and meet my deadline as their activity stream extension isn’t ready yet, and I can’t use Buddypress because the members functionality I need doesn’t exist in a single plugin (or if it does, I can’t find it). I’d like the solution to be in a single Buddypress plugin as opposed to relying on multiple plugins which may or may not be updated, or chunks of code taken from different sources that aren’t guaranteed to work further down the line.

    @style960

    Participant

    * single plugin compatible with Buddypress

    @henrywright

    Moderator

    Ah OK. Deadlines are always a pain! If a plugin isn’t available, you can do all of those things relatively easily with PHP. How is your PHP knowledge?

    @style960

    Participant

    Pretty basic but I’d be more than willing to take a little direction.

    @henrywright

    Moderator

    It’s probably worth giving it a shot and then just open a new topic for any specific coding questions you have.

    @style960

    Participant

    This works for me:

    if( is_user_logged_in() ) {
        $page = get_page_by_title( 'Dashboard');
        update_option( 'page_on_front', $page->ID );
        update_option( 'show_on_front', 'page' );
    }
    else {
        $page = get_page_by_title( 'Home' );
        update_option( 'page_on_front', $page->ID );
        update_option( 'show_on_front', 'page' );
    }

    Added to functions.php if anyone else references this post.

    I use My Private Site to keep the bulk of the site hidden from visitors / search engines – https://wordpress.org/plugins/jonradio-private-site/

    Thanks for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Site Privacy’ is closed to new replies.
Skip to toolbar