edit activation mail

Hi Team,

We installed a WP MU with Buddypress. It works fine.
But I like to edit the activation mail:
"Thanks for registering! To complete the activation of your account and blog, please click the following link:
http://activate?hjgkhf

After you activate, you can visit your blog here:
http://stijntemplate1.tnxt.nl/ "

I've been searching for hours now, but I still can't find it.
I already changed the buddypress language. That works fine for the pages, but nog for the activation mail.

Do you have a solution?

Thank you so much!

Cheers, Stijn

  • Rogier & Stijn
    • The Incredible Code Injector

    Hi David,

    I copy paste the following sentence in function.php of the educlean theme core.:
    "function fix_bp_activation_subject($subject) {
    return __( "Activate Your Account", 'buddypress' );
    }
    add_filter('bp_core_activation_signup_user_notification_subject', 'fix_bp_activation_subject');"

    But it still doesn't matter. In the subject of the activation mail I will see the dutch translation. For the subject is that ok, but in the message of the activation mail I will see the english sentence. I supposed to edit it in the translation, but that doesn't matter.

    So I added this sentence in function.php:
    "function fix_bp_activation_message($message) {
    return __( "Message for the activation mail TEST", 'buddypress' );
    }
    add_filter('bp_core_activation_signup_user_notification_message', 'fix_bp_activation_message');"

    But it still doesn't matter, because I will see the following activation mail:
    "Thanks for registering! To complete the activation of your account and blog, please click the following link:"

    Thanks for your help in advance!

    Stijn

  • gina
    • The Bug Hunter

    seems this ticket feel thru the cracks?

    i have an issue with this as well.. i have used poedit to change the wording of all kinds of things but this email for some reason will not change... any ideas why?

    the solution you gave david only allows you to edit the subject of the email.. not the body.

    thanks,
    gina

  • Lisa Thompson
    • WPMU DEV Initiate

    Hi Are you still looking for a solution?

    This what I used:

    function fix_bp_activation_message( $message ) {

    $msgTrim = "To complete the activation of your account and blog, please click the following link:";
    //$trimmed .= sprintf( __( "\n\n%1\$s\n\n\n\nAfter you activate, you can visit your blog here:\n\n\$s", 'buddypress' ), $activate_url, esc_url( "http://dev.abbeypost.com" ) );
    //trim($message,$msgTrim);
    $trimmed = str_ireplace("Thanks for registering! To complete the activation of your account and blog, please click the following link:","",$message);
    $trimmed1 = str_ireplace("After you activate, you can visit your blog here","After you're activated, you can visit your AbbeyPost store here",$trimmed);

    return __( "Thanks for signing up for AbbeyPost! \n\n In order to take part in the fun, you'll need to activate your account by clicking the link below. \n\n Once you've done that, we'll approve the account and you'll be good to go.\n\nPlease click the following link to activate: \n".$trimmed1." or just log into AbbeyPost.com.\n\nYou Rock!\n - AbbeyPost Team", 'buddypress' );
    }

    add_filter('bp_core_activation_signup_blog_notification_message', 'fix_bp_activation_message');

    This is the result:

    Thanks for signing up for AbbeyPost!

    In order to take part in the fun, you'll need to activate your account by clicking the link below.

    Once you've done that, we'll approve the account and you'll be good to go.

    Please click the following link to activate:

    http://dev.abbeypost.com/activate/?key=7feb3a9e13e5ee91

    After you're activated, you can visit your AbbeyPost store here:

    http://dev.abbeypost.com/testest/ or just log into AbbeyPost.com.

    You Rock!
    - AbbeyPost Team

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.