@modemlooper Revisiting this thread. I’m still looking to change the activation e-mail to go to the site admin instead, and even though this should be fairly easy I must be missing something. The code should be something like this, right?
`
function my_redirect_activation_email()
{
return get_site_option( ‘admin_email’ );
}
add_filter(‘bp_core_activation_signup_user_notification_to’, ‘my_redirect_activation_email’);
`
Added this to my custom-functions.php but can’t seem to get it to work, WordPress stills sends the e-mail with the activation link to the new user instead. Any ideas? Thanks!
I am also having this issue and I think I have narrowed it down to certain email providers and how they deal with links. Yahoo for instance opens the activation code page while at the same time the account is activated so you do not need to enter any code while gmail and hotmail link straight to a page that says the account is activated. This is indeed a problem.
I recently updated BuddyPress to version 1.7 today and while performing tests on my site to make sure everything was working properly, I noticed that the custom new user activation email from the Welcome Pack plugin was not being sent to new users. It has reverted back to sending the default new user activation email. It was just yesterday that the custom emails from Welcome Pack were being sent fine with no issue.
Could this be a possible conflict with the BP 1.7 update?
Currently using WP 3.5.1 and Welcome Pack 3.3
Thanks!
@binutz re time active -> use UTC +/- in Settings rather than city name and change to BP Default theme. Are you using a cache plugin by any chance? If so, which one?
re members count -> What do you mean that it’s wrong? Is this an installation which had registered members prior to installing BuddyPress? Then members have to log in at least once to be “counted”
re users’ avatars missing -> You mean the only the mystery man is showing up or that even the mystery man is not showing up? Are you developing locally or online? Change to BP Default theme, are the avatars showing up?
re email activation issue -> Are you sure that your installation is sending those activation emails in the first place? Or, have your users checked in their email spam folders? Where are you hosted?
And you have tested a plain WP view of your site? i.e have you first tested that all aspects of primary functions work under your initial install of WP before moving on to activating BP and then testing it’s registration process – this is important to help you establish that your site works and if issues arise at what stage they did e.g. on activation of BP or of Welcome pack ( fyi Welcome Pack might not be quite current with latest BP)
You now need to narrow down the issue!
fwiw this sort of issue is nearly always one of a server configuration and/or of your MX records rather than an issue with either WP or BP both process and foreward emails quite happily without fail.
Would anyone have any suggestions as to why a link code within a php file (this file includes the activation email code) displays as a link, opens a new window, but doesn’t show the link page?
The link tags look fine; have triple -checked, tested.
Only thing I notice is when rolling over the activation link from within the email, I can see the path show in my client lower left hand corner. Yet, when I rollover these other few links I’m trying to include, I don’t get any display, like the activation link. The code for the activation link follows the intro text: (click the activation link below:\n\n%1\$s\n\n
This one is fine. The <a href’s I’m adding open a new window, but then nothing.
Maybe what I’m trying isn’t possible, but want to verify.
thanks for any thoughts, in advance.
I know this is old but I had the same problem and figured out how to fix it so thought I would post it.
Instead of trying to feed the key in, I just trimmed the message to remove the original wording and then replaced it with my own wording.
`
function fix_bp_activation_message($message) {
$msgTrim = “Thanks for registering! To complete the activation of your account please click the following link:”;
$trimmed = trim($message,$msgTrim);
return __( “Thanks for signing up to Clandestine Cake Club! In order to take part in the fun, you’ll need to activate your account by clicking the link below. \n Once you’ve done that, we’ll need to approve the account, usually within 24 hours.”.$trimmed.”Best wishes,\n Lynn Hill – CCC Founder”, ‘buddypress’ );
}
add_filter(‘bp_core_signup_send_validation_email_message’, ‘fix_bp_activation_message’);
`
@sdglhm have you asked user who is not receiving the activation emails to check in spam folder?
I’m not sure what you mean, chouf. 1.2 simply came up in a google search, because the text I need is apparently in this 1.2 file which no longer appears to exist in the current version.
The closest thing I found to the text is in bp-core-filters.php, but it’s not an exact activation email text match and any edits I do prove it because the activation email text is unchanged. So, I must be editing the wrong file, which didn’t surprise me because I saw the slight difference in text.
I remain stuck. That old 1.2 file has the exact text of my activation email. I simply know not where to locate that source file, even though I have found some indicate it’s in the filters file. I’m not seeing it in there;-(
thanks. jz
I came across a file that I see has existed, but it’s not part of my BP install, which is the latest upgrade.
Here’s what is CRAZY! I googled the exact text in my activation email, because I’m trying to edit the text. the BP CORE-FILTERS.php file is close, but it’s not the exact text:
"Thanks for registering! To complete the activation of your account please"
The core-filters.php has "blog" in each of the thanks texts. But this isn't coming to me in my activation emails. Wacky! ;-)
Seriously, I have spent at least 2 full working days playing with this activation text issue, even trying plugin WELCOME PACK. How is this text from the subject slug getting into my activation emails? I see it NOT in my files, anywhere.
Here's the link where i see it.
NOTE AGAIN: There's a slight difference in the two "Thanks" Areas. But, in my current core-filters file, the two areas are the same. Neither exactly match my activation emails, the way this one does.
Help. It's giving me a major headache.
thx.
http://svn.buddypress.org/tags/1.2-rc/bp-core/bp-core-activation.php
jz
Hi. I have located a file some have said works for editing the activation email. I have also tried the plugin Welcome Pack, but each have left me searching for a solution.
The Welcome Pack coder confirmed the activation link isn’t linkable, and the file I have examined in the core files: bp-core-filters.php has text and code that looks exactly like what i need, but the activation email is slightly different than the text I get in my activation email. I have attempted to add in my custom text where the current text appears to be, but I must be in the wrong file or wring place to edit the text. I don’t personally think it’s the file since the text doesn’t match up perfectly with the activation email, but what do I know? 😉 I seem close, but still no results.
Any guidance is appreciated. Thanks!
jz
thanks..but still doesn’t work. My site is installed on Qnap 269L..so local server. I thought it has something to do with changing the mail address in the bp-core-filter. I had done it once before but don’t remember now and I cannot remember where I got the answer.Basically wit the above I’ve got a cannot cannect to smtp. However Qnap can send an email directly to any email account so the server is not the problem.
Thanks.
@byfchew See section on BuddyPress isn’t sending out emails (eg. activation emails, email notifications) at https://codex.buddypress.org/user/faq/
hi,hope someone can help. I have BP 1.6.4 and WP is 3.1.2. I also have buddy social installed 1.3.4. When a new member signs up, a notification is sent out to request the member to activate by email received. Problem is the email doesn’t seem to be sent out. So member can never activate. How to resolved this?
Thanks,
bert.
Hi. i’m in the file to edit this page.
I’m wondering how I might set up a few form fields right on this page, as the final step of activation. Primarily, how would I setup the submit button to store or email (or both) the form input? I just want to capture the first and last name of an approving parent.
thanks.
Hi. I have a comma in my web site name, so it must be causing this in the activation email’s subject line.
Can you tell me how to edit the file to fix? I’m in the bp core filters file now to address the text. it looks to be this line, but not sure how to back out the comma.
$subject = ‘[‘ . $from_name . ‘] ‘ . __( ‘Activate Your Account’, ‘buddypress’ );
ty.
jz
Ok, you can disable sending activation email to new registrant in WP multisite + BP installation by adding code below into your theme/child theme functions.php
`
// Change the text on the signup page
add_filter( ‘bp_registration_needs_activation’, ‘__return_false’ );
function my_disable_activation( $user, $user_email, $key, $meta = ” ) {
// Activate the user
bp_core_activate_signup( $key );
// Return false so no email sent
return false;
}
add_filter( ‘wpmu_signup_user_notification’, ‘my_disable_activation’, 10, 4 );
//Disable new blog notification email for multisite
remove_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );
add_filter( ‘wpmu_signup_blog_notification’, ‘__return_false’ );
// disable sending activation emails for multisite
remove_filter( ‘wpmu_signup_user_notification’, ‘bp_core_activation_signup_user_notification’, 1, 4 );
add_filter( ‘wpmu_signup_user_notification’, ‘__return_false’, 1, 4 );
`
Cheers! 😀
The last function has a bug, it activate the user after registration, but it’s still sending the activation key email using WP multisite, so it can be very confusing for the users, because they’re already active.
Any ideas to stop sending the activation key email?
Thanks
Hi!
If somebody still need to disable activation email, the following function works fine for me:
`
// Change the text on the signup page
add_filter( ‘bp_registration_needs_activation’, ‘__return_false’ );
function my_disable_activation( $user, $user_email, $key, $meta = ” ) {
// Activate the user
bp_core_activate_signup( $key );
// Return false so no email sent
return false;
}
add_filter( ‘wpmu_signup_user_notification’, ‘my_disable_activation’, 10, 4 );
remove_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );
add_filter( ‘wpmu_signup_blog_notification’, ‘__return_false’ );
`
Thanks to @cnorris23 for it! https://buddypress.trac.wordpress.org/ticket/3443
Hope it helps to someone 🙂
I am not getting authentication emails sent.
I am my smptp relay set up and it sends test emails fine, however when I sign up as a new user, the activation page says I will be sent an email with a code to complete the process…
but nothing is sent…
Any help would be appreciated
This drove me a bit nuts. I figured out how to do it though and it’s very easy.
With buddypress installed it takes over the registration entirely and ads this activation email which is outside the normal header load so it;s outside of the functions.php call include.
The way I got it to work was by adding a call to the welcome email action after the do_action( ‘bp_after_activation_page’ ); in plugins/buddypress/bp-themes/bp-default/registration/activation.php file.
Near the end of the file you see this.
do_action( ‘bp_after_activation_page’ );
Add the following
do_action( ‘welcome_email’ );
Now this may work because I am using a plugin to modify the welcome email to begin with. I am using SB Welcome Email Editor
As for why someone would need to send the user their id and password. I needed this because people can sign up using a name with spaces but the id is created with a dash in place of spaces so they may never know their id isn’t what they saved it as. I also added a condition on the id entry to force them to not use spaces but I like to cover all bases and let them know what they signed up with.
Hope this helps.
Hi
I’m getting a few complaints from subscribers saying that they are asked to provide an activation key after activating their account. The process is confusing for some users.
When a user registers, they get an activation link in an email, after clicking the link and activating their account they are taken to a avtivation success page. If the user views this page again by clicking on the link again, they are asked to ‘provide a valid activation key’ which is confusing if the user has already activated their account.
Can anyone suggest a solution to stop users seeing the ‘provide a valid activation key’ message if they have already activated their account?
For some really odd reason this is not working for me.
Thanks – I logged out and then clicked the activation email – returned an invalid key message – same in new browser.
if you look at my site you will see that the pages do not display correctly…how do I rectify this…?
Also, where do I configure the extended profile fields?