• Resolved nextrealmlfe

    (@nextrealmlfe)


    I am using a theme called Active and am using the buddypress plugin on my site. It does bring the user to the login page, but it won’t let users register. Nothing happens when the register link is clicked. As soon as I deactivated wordpress it worked. Is there anyway to get the registration to work while using buddypress?

    • This topic was modified 4 years, 10 months ago by nextrealmlfe.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nextrealmlfe

    (@nextrealmlfe)

    The theme is a word press theme as well.

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi– thanks for using Force Login!

    Force Login was built to work with the default WordPress login, lost-password, and register screens.

    You will need to use the BuddyPress Conditional Tags to specify what BuddyPress pages you want Force Login to allow visitors.

    For example:

    /**
     * Bypass Force Login to allow for exceptions.
     *
     * @param bool $bypass Whether to disable Force Login. Default false.
     * @return bool
     */
    function my_forcelogin_bypass( $bypass ) {
      // add exception for BuddyPress URLs
      if ( function_exists( 'bp_is_register_page' ) ) {
        if ( bp_is_register_page() || bp_is_activation_page() ) {
          $bypass = true;
        }
      }
      return $bypass;
    }
    add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass' );
    Thread Starter nextrealmlfe

    (@nextrealmlfe)

    Kevin,

    I tried adding the code above to the function.php and it seems that the register form still won’t open up due to buddy press. An;y idea why this may be?

    Plugin Author Kevin Vess

    (@kevinvess)

    Unfortunately I can’t know why it’s not working without inspecting and troubleshooting your site.

    Have you tried disabling all other plugins and enabling them one at a time to test for a plugin conflict? Or switching to a twenty-something theme to test if your theme is the cause of it?

    Let me know if you figure out the cause of your issue.

    Good luck!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Force Login with Site using buddypress plugin’ is closed to new replies.