• Resolved pdj1988

    (@pdj1988)


    Hi guys

    Before I dive into the issue, I must just thank you for all the support in the past. I’ve resolved all issues in my sandbox site, but now I’m picking up problems in the main site.

    Here is the description of my problem and the process I followed.

    1) The user is forced to log in with the Force Login plugin.
    2) I used custom php code to redirect the user to a custom login page I created with elementor
    3) Built a custom registration page with Buddybuilder pro
    4) Created a blank page for called ‘Registration’
    5) Linked that page in Buddypress as the registration page
    6) Bypassed force login with custom code to allow the registration and password reset page with the following code:

    function my_forcelogin_bypass( $bypass) {
      // add exception for BuddyPress URLs
      if ( function_exists( 'bp_is_register_page' ) ) {
        if ( /*bp_is_register_page() ||*/ is_page('registration')|| bp_is_activation_page() ||is_page('reset-password') )
    		{
          $bypass = true;
        }
      }
      return $bypass;
    }
    add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass' );
    
    // // Custom Registration URL**************************************************
    function my_registration_page( $register_url ) {
        return site_url( '/registration/' , 'login-page' );
    }
    add_filter( 'register_url', 'my_registration_page', 10, 1 );

    Now what happens is that when the user gets to the site they are met with my custom login page. If I click on reset password, they are directed to the custom password reset page. If I click on Register, the page loads (so the bypass is working), but I’m met with a blank standard WordPress page.

    Any idea what I’m doing wrong?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pdj1988

    (@pdj1988)

    btw, I was testing the code and commented this out in the above, but its still not working

    /*bp_is_register_page() ||*/

    Plugin Support john

    (@johnweru)

    Hey there,

    Thanks for reaching out to us.

    With respect to your question here, I’m afraid this relates to the BuddyBuilder Pro plugin. Kindly note that commercial products are not supported here and developers cannot support customers on this site. For BuddyBuilder pro support please contact the plugins’ support team here: https://my.staxwp.com/

    I hope this helps.

    Kind Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Registration Page not working again’ is closed to new replies.