Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need original WordPress Registration page back

  • Avatar of snowlas
    snowlas
    Participant

    @snowlas

    I have been using Buddy Press for almost a year and on our website we have people registering through the default WordPress register page, not the BuddyPress register page. This is because of data we need to collect but don’t want displayed on their public profiles, so the extended field function for buddypress doesn’t work for us.

    It used to be I just had the other registration page unlinkable and linked directly to the WordPress registration page. But now, when I go to this page, it redirects itself to the BuddyPress registration page.

    I just upgraded from 1.5.5 to 1.61. I’m running WP 3.4.2. I tried to reinstall my old 1.5.5 plugin, but that did not solve the problem. This leads me to believe that a core WP file has been rewritten and I would like to know which one that is, so I can simply replace with with a back up. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    If you were using the WordPress registration page before while running BuddyPress, then it was actually a bug in BuddyPress! :)

    However, if you really need to use the WP registration page, add this code snippet to /wp-content/plugins/bp-custom.php:

    `remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );`

    This snippet disables the redirect from WP’s registration to BP’s registration page. It’s not really recommended to this, so I note this as a disclaimer now!

    You’ll also want to probably remove the “Registration” page from the BuddyPress admin settings area so that page cannot be used for registering.

    Avatar of snowlas
    snowlas
    Participant

    @snowlas

    Ray,

    Thanks for the help. I created the custom file like the directions said to and placed the code in like this:

    `<?php
    // hacks and mods will go here

    remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );

    ?>
    `
    However, registration page still does the redirect. :/ Any other suggestions? It is in the wp-content/plugins/ directory.

    Avatar of snowlas
    snowlas
    Participant

    @snowlas

    Any ideas anyone? The remove action code did not work. Maybe it’s set up wrong?

    Avatar of dcavins
    dcavins
    Participant

    @dcavins

    I think a better bet is to collect that info on the BP registration page and then not display it on the user profile (that way you’ll still be able to use it in other ways). With BP 1.6. you can change the visibility of each xprofile field to friends only, logged-in users, or public (and force that level or allow the user to override your selection). (Visible to admin only is coming in BP 1.7, btw, which would totally fix you up.) At the moment, you can modify your theme template file (themes/yourtheme/members/single/profile/profile-loop.php) to hide some fields like this:
    `about line 17:

    <?php $no_display_fields = array( // Enter the field name of any field that you don't want to appear on the user profile.
    ‘E-mail’,
    ‘Name of Field Hide’,
    ‘Another’
    );

    if ( bp_field_has_data() && !in_array( bp_get_the_profile_field_name(), $no_display_fields ) ) : ?>`

    It’s a hack, but it works for me (until BP 1.7).

    Avatar of snowlas
    snowlas
    Participant

    @snowlas

    This will work I think for the time being. I need to test a couple other things to work with my other plugins.

    Something you should know, the code you gave me works. But I’m not sure it’s talking to the field names, because it doesn’t publicly display any fields now. Even ones that I have not named in the code, like names and the show people work on in my media center. Not a big deal for me, but might be a big deal for someone else. Maybe this will be fixed in the code in 1.7.

    Thanks.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    @snowlas – Sorry! I didn’t test that snippet.

    I just tested this and it will work:

    `
    /**
    * Removes BP’s redirect from the regular WP registration page.
    */
    function my_remove_bp_register_redirect() {
    remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );
    }
    add_action( ‘bp_loaded’, ‘my_remove_bp_register_redirect’ );
    `

    Snippet belongs in `/wp-content/plugins/bp-custom.php`.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.