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

  1. theTechnaddict
    Posted 3 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!



  2. theTechnaddict
    Posted 3 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

  • Private BuddyPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.