Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter thunksalot

    (@thunksalot)

    Sorry, I meant BuddyPress. BuddyPress is what is handling the registration form and confirmation emails. It seems like somehow I need to get this plugin to take over in place of BuddyPress, right?

    Thread Starter thunksalot

    (@thunksalot)

    My mistake, it appears the plugin is working, but it fires after the user is told that an activation email is on its way and after the activation email is sent. Perhaps that is fine if I can modify all of the messages that the user is getting so that it’s clear what all has to happen before they will have successfully run the registration gauntlet. Does the paid Add-ons package allow me to edit each of the following messages currently being displayed to the user?

    User sees this message after submitting their registration:
    “Check Your Email To Activate Your Account!
    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.”

    Then user receives this email:
    “Thanks for registering! To complete the activation of your account please click the following link:
    https://exampleurl.org/activate/675e9ea5fde4a71e6161daee7c15d1cb/”

    When they click that link, they get a message that their account is now activated:
    “Your account is now active!
    Your account was activated successfully! You can now log in with the username and password you provided when you signed up.”

    But, if they try to login, they get this error message:
    “ERROR: Your account is still pending approval.”

    Thread Starter thunksalot

    (@thunksalot)

    Well, I went ahead and bought the Add-on package in the hopes that it would allow me to override the messages listed in my previous message. The add-on package does make it very easy to customize the emails and error messages generated by New User Approve, but it unfortunately doesn’t help me edit/override the account activation messages and emails already being generated by BuddyPress. Those are the ones that are most confusing when combined with New User Approve, because they give the impression that the account has been fully authorized, when it hasn’t yet. It would be very helpful if the New User Approve add-on could provide an override interface for the BuddyPress messages, but I can understand why it doesn’t.

    Hi thunksalot, this is what I did to eliminate an activation link being sent to the user:

    Go to the following file and edit it:

    buddypress/bp-members/bp-members-functions.php starting at line 2236

    $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url );
    	$subject = bp_get_email_subject( array( 'text' => __( 'Activate Your Account', 'buddypress' ) ) );

    You’ll want to remove the ‘Thanks for registering….’ text between the double quotes to whatever you want. Then change or just remove the text between the single quotes ‘Activate Your Account’. (Be sure not to remove the actual single or double quotes.)

    Before doing that I would strongly encourage that you instead use the bp_core_signup_send_validation_email_subject filter to modify the subject of that email and the bp_core_signup_send_validation_email_message filter to modify the contents of the email.

    I still haven’t added support but I am planning on it for this next release.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Compatible with bbPress?’ is closed to new replies.