Skip to:
Content
Pages
Categories
Search
Top
Bottom

Solved – Disable Automatic Account Activation and Manually Approve it


  • benedictbani
    Participant

    @benedictbani

    Hello, Please I would like to manually approve my BuddyPress registration requests and Disable Automatic Account Activation, and also change the registration message to [ Your membership account is awaiting approval by the site administrator ] am using WordPress 4.9.8, http://betalifes.com/, Please help out

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

  • Prashant Singh
    Participant

    @prashantvatsh

    add_filter( 'bp_core_signup_send_activation_key', 'ps_disable_activation_email' );
    function ps_disable_activation_email() {
    	return false;
    }

    Please try this code.


    benedictbani
    Participant

    @benedictbani

    @prashantvatsh AM new with wordpress, can you pls tell me how to go about it.. where to add the code..


    Prashant Singh
    Participant

    @prashantvatsh

    https://wordpress.org/plugins/code-snippets/ Please add this plugin and then in snippets add a new snippet and paste the code.

    Thanks


    benedictbani
    Participant

    @benedictbani

    okay will try it out, will be right back to give you feed back


    benedictbani
    Participant

    @benedictbani

    @prashantvatsh thanks, the email ACTIVATION Stopped but how can i change this message [You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.] to this one message [ Your membership account is awaiting approval by the site administrator ] so my members wont be confused


    Prashant Singh
    Participant

    @prashantvatsh

    add_filter( 'gettext', 'ps_change_activation_message', 20, 3 );
    
    function ps_change_activation_message( $translated_text, $text, $domain ) {
    
        switch ( $translated_text ) {
            case 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.' :
                $translated_text = __( 'Your membership account is awaiting approval by the site administrator.', 'buddypress' );
                break;
        }
    
        return $translated_text;
    }

    Please add this snippet as well.

    Thanks


    benedictbani
    Participant

    @benedictbani

    @prashantvatsh thanks alot all the issues are fixed


    Prashant Singh
    Participant

    @prashantvatsh

    Welcome 🙂


    benedictbani
    Participant

    @benedictbani

    @prashantvatsh sorry for disturbing, but is they a way for my members to receive mail that i have approved their registration..


    Prashant Singh
    Participant

    @prashantvatsh

    Hi,

    You can use this plugin https://wordpress.org/plugins/bp-registration-options/ which allows moderation and members will be restricted to their own profile till when they are not approved. And after approval, a mail will be sent to them.

    Maybe this solution can help you with what you want to achieve.

    Thanks

    Hi all,

    I know this post is a bit older, but is there a better solution to the problem.

    I also want to activate new members manually, but the user should receive a mail with an activation code, so I can be sure that he has registered with his e-mail address.

    The solution with the mentioned plugin doesn’t work either, because when the user activates his account, he can already log in on the site, no matter if he has already been activated by the administrator or not.

    Bes regards,
    Chris


    behaugabook
    Participant

    @behaugabook

    Did you find a solution to this?

    Hi @behaugabook

    not really.

    I have an idea in my head with user groups and roles, but I haven’t had time to test it yet.

    It’s a pity that there is no simple solution here, because this use case is likely to occur more often.


    welsh10
    Participant

    @welshlamb10

    Hi,

    I’m using BuddyBoss (with BuddyPress).

    I used this snippet:

    add_filter( 'gettext', 'ps_change_activation_message', 20, 3 );
    
    function ps_change_activation_message( $translated_text, $text, $domain ) {
    
        switch ( $translated_text ) {
            case 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.' :
                $translated_text = __( 'Your membership account is awaiting approval by the site administrator.', 'buddypress' );
                break;
        }
    
        return $translated_text;
    }

    But this did not work for changing the message.

    Please can you advise?

    Thanks


    behaugabook
    Participant

    @behaugabook

    Does anyone know how to get rid of the side bar on the activation email? The page that day activate is find… it’s the one that shows the activation code and link… that page I can’t seem to get the side bar off.

Viewing 15 replies - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.
Skip to toolbar