Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'disable registration'

Viewing 25 results - 126 through 150 (of 463 total)
  • Author
    Search Results
  • #253998
    r-a-y
    Keymaster

    I also tested BP 2.5.3 on WP 4.5.2 on a fresh install and cannot duplicate your problem, Earl_D.

    I tested with the Extended Profiles component enabled.

    Are you using any caching plugins? If so, try to disable it or whitelist the register and activate pages from caching.

    Do you have any special extended profile registration fields? If so, can you list what they are and how they are configured?

    cahara
    Participant

    Hey all,

    Been digging for a solution but can’t seem to find one. My site has 2 registration forms (Form A and Form B) on separate pages that are working great. When users signup to Form B a hidden field called subscriber_type is populated. Otherwise Form A and B are identical. Once the forms are submitted a user should only be auto-activated and logged-in if this subscriber_type field is populated.

    So far users filling out Form B are activated (and don’t get the activation email) and are logged in. But users filling out Form A aren’t getting their activation emails either even though they should. Looks like no users are getting any activation emails, regardless of the form they fill.

    Is there any way to make sending of the activation emails conditional?

    What I’ve tried so far:

    
    // Auto-activate users from Form B (This works)
    function auto_activate_user( $user_id ) {
    
        $subscriber_type = $_POST['subscriber_type'];
        if ($subscriber_type || $subscriber_type === 'current_subscriber'){
            global $wpdb;
    
            //Hook if you want to do something before the activation
            do_action('bp_disable_activation_before_activation');
    
            $activation_key = get_user_meta($user_id, 'activation_key', true);
            $activate = apply_filters('bp_core_activate_account', bp_core_activate_signup($activation_key));
            BP_Signup::validate($activation_key);
            $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d", $user_id ) );
    
            //Add note on Activity Stream
            if ( function_exists( 'bp_activity_add' ) ) {
                $userlink = bp_core_get_userlink( $user_id );
    
                bp_activity_add( array(
                    'user_id' => $user_id,
                    'action' => apply_filters( 'bp_core_activity_registered_member', sprintf( __( '%s became a registered member', 'buddypress' ), $userlink ), $user_id ),
                    'component' => 'profile',
                    'type' => 'new_member'
                ) );
    
            }
            //Send email to admin
            wp_new_user_notification( $user_id );
            // Remove the activation key meta
            delete_user_meta( $user_id, 'activation_key' );
            // Delete the total member cache
            wp_cache_delete( 'bp_total_member_count', 'bp' );
    
            //Hook if you want to do something before the login
            do_action('bp_disable_activation_before_login');
    
            //Automatically log the user in	.
            $user_info = get_userdata($user_id);
            wp_set_auth_cookie($user_id);
    
            do_action('wp_signon', $user_info->user_login);
    
            //Hook if you want to do something after the login
            do_action('bp_disable_activation_after_login');
    
        }
    }
    
    // Fix validation on Form B (This works)
    function fix_signup_form_validation_text() {
        $subscriber_type = $_POST['subscriber_type'];
        if ($subscriber_type || $subscriber_type === 'current_subscriber'){
            return false;
        }
    }
    
    // Disable autivation email only for Form B (This doesn't work)
    function disable_activation_email() {
        $subscriber_type = $_POST['subscriber_type'];
        if ($subscriber_type || $subscriber_type === 'current_subscriber'){
            return false;
        }
    }
    
    add_action( 'bp_core_signup_user', 'auto_activate_user');
    add_filter( 'bp_registration_needs_activation', 'fix_signup_form_validation_text');
    add_filter( 'bp_core_signup_send_activation_key', 'disable_activation_email');
    
    #252205
    concoa
    Participant

    UPDATE:
    I deleted all BP files and the plugin and did a reinstall.

    PROBLEM #1)
    I am still having trouble with the Register page. I do not know what this error refers to:

    displays an error message:
    “Profile Details
    Warning: Creating default object from empty value in /home/content/p3pnexwpnas09_data01/28/2853428/html/wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-group.php on line 649”

    Line 649 is:
    $fields[ $key ]->visibility_level = $field_visibility;

    PROBLEM #2)
    Registration submission is now working, but an auto response email is being sent. Is there something in BuddyPress (or WordPress) to disable this? I’m getting an email saying:
    Hi test4,
    Thanks for registering!

    To complete the activation of your account, go to the following link: http://blahblahblah.com/activate/ef23a0f24958c3a125917f7e3bac95f8/

    I’m using s2Member to allow admin approval of registrations. This email needs to be removed. Thx.

    r-a-y
    Keymaster

    I turned off all Plugins except WordPress and Buddypress and this issue still occurs.

    Are you sure you disabled all plugins except BuddyPress? If so, check for any rogue code snippets in your theme’s functions.php or wp-content/plugins/bp-custom.php.

    Once that is done, delete all registration pages you have set up in WordPress. Create a new WordPress page to be used for BuddyPress registration. Just enter a post title and hit “Publish”. Also, ensure all your pages in the “Pages” trash are deleted.

    Next, go to “Settings > BuddyPress > Pages” and set the “Register” page to the page you just created.

    r-a-y
    Keymaster

    I cannot duplicate this problem with Theme My Login.

    I’m using the default Theme My Login settings untouched and was able to go to the register page and successfully submit the form with no redirections.

    Make sure for BuddyPress that you selected the BuddyPress “Register” page and not TMLs.

    Also disable any plugins that might be interferring with registration like New User Approve, etc.

    #249357
    edragonxx
    Participant

    I have similar problem. and also I can’t find anywhere here CREATE NEW TOPIC / POST link I am using this one.

    When I installed buddypress our site registration option was disabled. So I enabled it now, and then used REPAIR option –> The following active BuddyPress Components do not have associated WordPress Pages: Activate, Register. Repair <– But the problem is that REPAIR does nothing. How to fix that problem and create these registration and acitvate pages?

    Also I noticed from installation manual something weird –> Make sure you have pretty permalinks enabled on your WordPress install. <– WTF is that? There in wordpress does not exist option like pretty permalinks. You have plain, numeric, Post name, and other options, but not “pretty permalinks”. Anyway I am using date/postname version at the moment, it should be pretty enough, but still where is that “pretty permalinks” option and where I should find it?

    #249320
    discdemo
    Participant

    I found a plugin for this: https://wordpress.org/plugins/bp-disable-activation-reloaded/

    Now, i just need to edit the post-registration landing page. If anyone can point me to this, I’d be grateful.

    #247522
    FliP0x
    Participant

    Before I installed buddypress, users could register just fine. I also disabled the default generated password and let users choose their own passwords at registration.
    However, I cannot find that option anymore. If users can only create insanely strong passwords, I’d rather have it back to the automatically generated passwords, but I can’t find that option anymore.

    EDIT: When I deactivate BuddyPress, I get my old registration back, that works.
    I would like the option to keep buddypress, but also keep my old registration.

    #247395
    @mercime
    Participant

    > I meant how do I disable registration?
    Go back to where you enabled it in Settings > General for single site or in Network Admin > Settings if you’re on multisite.

    #247394
    beginner3
    Participant

    Sorry I meant how do I disable registration?

    #243378
    muskokee
    Participant

    Sorry, part of the above is not true. I am using bp-custom.php. The only function in there is to disable BP registration.

    //EDIT

    Oh my! I just found this post https://buddypress.org/support/topic/bp-legacy-in-bp-templates/ . Am I supposed to be using the files from bp-legacy as this post suggests? If so, what a terrible name for a folder!

    #243179
    djsteveb
    Participant

    first test with default 2014 or 2015 theme – and all other plugins disabled except bp – does it work then? If not…

    previous forum posts maybe helpful –
    (let us know what you find works!)

    With a new bp setup I usually check these things first if email are not seeming to send or go through ->https://buddypress.org/support/topic/activation-e-mail-failing-to-send/#post-241079 (From a recent similar thread)

    Better to check the basics before digging into whether it’s a email header config on the server, php settings limiting functionality – need for wp to send as smtp plugin – something just with gmail blackhole filtering –

    so many different things can affect wp sending, bp sending, your web serving sending email as php, or an email service accepting something that was sent, much less put in the actual inbox instead of junk mail / promotions box or whatever…

    =-=- also from danbp about 8 months ago:
    When encountering a registration problem, first thing to do is to test your install without any plugins and one of WP’s Twenty default theme. Ensure that your site send correctly emails. Before activating any plugin, your base WP install must work.

    Once WP is OK – you can install BuddyPress and check your permalinks. Pretty permalinks must be activated to get the plugin working correctly.

    This point is important, especially if you have redirection issues after BP is activated.

    Second point to check is your theme installation.

    Proceeding like this will help you to isolate easely the culprit. If:
    – WP install: OK
    – BP install: OK
    – theme activation: problem

    So you know here the problem comes from.

    While testing your install, you can activate wp_debug (set to TRUE) in the wp-config file. This can give you a lot of information about conflict and/or errors.

    Just keep in mind that these information have 2 levels of importance: notice and warning.
    While notice are generally harmless, warnings should be taken seriously in account and solved.

    If WP is the problem, see first the wordPress support
    If it’s BuddyPress, see the BP support
    If it’s the theme, see the theme support
    If it’s any other plugin, see first the plugin support.

    Henry Wright
    Moderator

    That’s strange and shouldn’t be happening. Can you activate TwentyFifteen, disable all plugins and then try a test registration?

    #241929
    modx
    Participant

    @djsteveb – Hi thanks for the info! So does this mean this has nothing to do with BuddyPress at all?

    Some posts are being posted with a user ID=0, even though registration is disabled already. Below is from the first 5

    log_id log_type log_function log_priority log_date log_date_gmt log_host log_username log_user log_url log_referrer log_data
    1 brute_force Invalid Login Attempt 5 2015-07-16 10:13:39 2015-07-16 10:13:39 23.250.34.71 rogeliomackie 0 a:0:{}
    2 brute_force Invalid Login Attempt 5 2015-07-16 10:16:56 2015-07-16 10:16:56 172.85.106.118 rogeliomackie 0 a:0:{}
    3 brute_force Invalid Login Attempt 5 2015-07-16 10:19:25 2015-07-16 10:19:25 172.85.103.167 rogeliomackie 0 a:0:{}
    4 brute_force Invalid Login Attempt 5 2015-07-16 10:23:32 2015-07-16 10:23:32 45.59.26.85 rogeliomackie 0 a:0:{}
    5 brute_force Invalid Login Attempt 5 2015-07-16 10:24:18 2015-07-16 10:24:18 50.118.159.10 rogeliomackie 0 a:0:{}

    #241353

    In reply to: Stopping forum spam?

    shanebp
    Moderator

    You shouldn’t need to disable the activity stream commenting – but try it.

    There are several plugins re bbPress spam, such as:
    https://wordpress.org/plugins/stop-spammer-registrations-plugin/

    #235208
    Vanish.Sequence
    Participant

    Update: Turns out another plugin had caused this error, and it is repaied now. The name of it was Frontend or something like that, it disables access to things like the registration and such for security, and idk how I missed that, but yeah.

    Thanks for the fix!

    #235197
    Vanish.Sequence
    Participant

    This was the question I had, and when I put this into the folder, I then got an error asking me if I was sure I was supposed to be doing this.

    Are there any other steps to this that I need to be aware of?

    The URL given was mydomain.com/user-error/?message=nononce

    I am really not sure how to get past that.. I did disable the registration and activation pages in the BP Page settings.

    #234721
    mcpeanut
    Participant

    Hi @aluxi33, this can easily be done via this code

    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'; 
        }

    What you will need to do is first create a bp-custom.php file (make sure you add the opening and closing tags at the top and bottom ) and put it in your plugins folder, then paste the code between the php opening and closing tags and save.

    This should disable buddypress registration and let you use wordpress registration as default, hope this helps.

    #234257
    mcpeanut
    Participant

    @daniel84uk i have had to do this myself on one of my sites for my own personal reasons using this snippet of code i came across.

    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'; 
        }

    Add this to your bp-custom.php

    #234050
    gina
    Participant

    Hello,

    Yes I had already tried changing theme and deactivating all plugins before I posted.

    But.. I see you’ve reproduced. 🙂

    I also noticed (after I downgraded to previous version) that even with registration disabled I was able to load register page. Then I upgraded BP again and it was still a case.

    Thank you for your help,
    Gina

    #233834

    In reply to: Fatal error 113

    r-a-y
    Keymaster

    Are you using any plugins that might interfere with the registration process? If so, disable them.

    #233824

    In reply to: Fatal error 113

    r-a-y
    Keymaster

    Thanks for the report.

    Since this bug was happening on v2.1.1, we need some more details to duplicate the problem.

    Are you using any registration plugins? If so, disable them and see if you get the same problem.

    If not, can you let us know exactly what you are doing on the registration form?

    For example:

    * First, I go to example.com/register
    * Next, I type in “newuser” under the “Username” field.
    * …

    Thanks!

    #233054
    #230725
    Amic58
    Participant

    Well, that was embarrassing.. 😀 Sorry for my stupidity.
    I was searching on forums by “Disable name change” “Hide Name in registration” etc. Most answers I found were outdated, that’s why I registered to ask.

    #221400
    DIYWWF
    Participant

    After lots of searching I finally got round the problem of BP/WP not taking you to the registration page by adding the following file into wp-content/plugins/

    bp-custom.php

    <?php
    /**
    * 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’;
    }

    This dispenses with BP’s registration system and falls back to the standard WP registration.

Viewing 25 results - 126 through 150 (of 463 total)
Skip to toolbar