URGENT! Made changes to php file and now site is forcing login/registration

  • In Progress
    Posted in: Highend WP Theme  
  • Customer
    nikschultz
    March 20, 2015 at 12:14 am #32675

    I’m a newbie so I apologize… I was trying to force buddypress to use wordpress register pages. Now when you go to the site it makes you register or login.

    I followed some instruction on the buddypress site to add a bp-custom.php file in the plugin directory with the following code.


    <?php
    // hacks and mods will go here
    /**
    * Disables BuddyPress’ registration process and fallsback to WordPress’ one.
    */
    function my_disable_bp_registration() {
    remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );
    remove_action( ‘bp_screens’, ‘bp_core_screen_signup’ );
    }
    add_action( ‘bp_loaded’, ‘my_disable_bp_registration’ );

    add_filter( ‘bp_get_signup_page’, “firmasite_redirect_bp_signup_page”);
    function firmasite_redirect_bp_signup_page($page ){
    return bp_get_root_domain() . ‘/wp-signup.php’;
    }
    ?>

    It worked, but then forced login or registration to view the entire site which is not what I wanted. I deleted the file, but now i’m still stuck. 🙁

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.