WordPress.org

Ready to get started?Download WordPress

Forums

Private BuddyPress
failing to implement FAQ to redirect to homepage... (2 posts)

  1. theTechnaddict
    Member
    Posted 2 years ago #

    Hi there -

    After I edit wp-includes/functions.php to include

    function redirect_nonloggedin_users($current_uri, $redirect_to) {
        // Redirect users to the homepage
        // Caution! Exclude the homepage from 'Private BuddyPress' options
        // to avoid redirection loops!
        return get_option('siteurl') . '/?from=' . $redirect_to;
    }
    
    add_filter('pbp_redirect_login_page', 'redirect_nonloggedin_users', 10, 2);

    It redirects to a white screen.

    I have excluded the homepage from 'Private BuddyPress' options.

    Being a novice I have almost certainly misunderstood.

    Could a kind soul set me on a path to correction!

    TIA

    http://wordpress.org/extend/plugins/private-buddypress/

  2. theTechnaddict
    Member
    Posted 2 years ago #

    All working - the answer should anyone be interested is to be patient - I was working on a website that had not yet had hosting records propagated - I had altered my hosts file to 'fool' my browser to the right ip address, but of course the redirection would not work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.