Support » Plugin: Private BuddyPress » [Plugin: Private BuddyPress] failing to implement FAQ to redirect to homepage…

  • 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/

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Private BuddyPress] failing to implement FAQ to redirect to homepage…’ is closed to new replies.