cache_enabled = false; do_action("activate_header"); } function bp_core_activation_do_activation() { global $current_site, $blog_id, $user_id; ?>


get_error_code() || 'blog_taken' == $result->get_error_code() ) { $signup = $result->get_error_data(); ?>

'.$result->get_error_message().'

'; } } else { extract($result); $user = new WP_User( (int) $user_id); ?>

Login or go back to the homepage.', 'buddypress' ), site_url( 'wp-login.php?redirect_to=' . site_url() ), site_url() ); ?>

user_login ?>

\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; $message = sprintf(__("To activate your blog, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your blog here:\n\n%s", 'buddypress' ), $activate_url, clean_url("http://{$domain}{$path}" ) ); $subject = '[' . $from_name . '] ' . sprintf(__('Activate %s', 'buddypress' ), clean_url('http://' . $domain . $path)); wp_mail($user_email, $subject, $message, $message_headers); // Return false to stop the original WPMU function from continuing return false; } add_filter( 'wpmu_signup_blog_notification', 'bp_core_activation_signup_blog_notification', 1, 7 ); function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) { global $current_site; // Send email with activation link. $admin_email = get_site_option( "admin_email" ); if ( empty( $admin_email ) ) $admin_email = 'support@' . $_SERVER['SERVER_NAME']; $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) ); $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; $message = apply_filters( 'wpmu_signup_user_notification_email', sprintf( __( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login.\n\n", 'buddypress' ), clean_url( bp_activation_page( false ) . "?key=$key" ) ) ); $subject = apply_filters( 'wpmu_signup_user_notification_subject', sprintf( __( 'Activate %s', 'buddypress' ), $user ) ); wp_mail( $user_email, $subject, $message, $message_headers ); // Return false to stop the original WPMU function from continuing return false; } add_filter( 'wpmu_signup_user_notification', 'bp_core_activation_signup_user_notification', 1, 4 );