Domain flipping by Millionaire Society

Want To Learn More About Flipping Domains For Profit: Read My Post On Domain Flipping!

BuddyPress How To Customize Activation Email

Posted on August 13th, 2010 by admin in Domain Development | 6 Comments »

I have a couple of sites now running with BuddyPress, so not a week goes by without me doing some sort of customization to make things run smoother.

A recent problem I ran into was the inflexibility of the Activation notification emails users are sent when they register a BuddyPress account on my sites.

Amongst other things that I noticed was the ugly email subject whereby BuddyPress puts your site title in square brackets [] before the message “Activate Your Account”. I really do not want to have the site title in the subject as the site title is already part of the From field in the email.

Here is how I resolved this issue. You will find that you can use the same approach to customize other email fields also.

I discovered that BuddyPress defines a filter for the notification email subject in buddypressbp-corebp-core-signup.php called bp_core_activation_signup_user_notification_subject

So, in order to customize my notification email subject I added the following to my theme’s functions.php file:


function fix_bp_activation_subject($subject) {
return __( "Activate Your Account", 'buddypress' );
}
add_filter('bp_core_activation_signup_user_notification_subject', 'fix_bp_activation_subject');

You can do the same for the “to” and “message” fields too as there is a filter defined for each in the same file.

Want To Learn More About Flipping Domains For Profit: Read My Post On Domain Flipping!

6 Responses to BuddyPress How To Customize Activation Email

  1. Rafael says:

    Do you know to add photos and videos to buddypress?

  2. admin says:

    Hi Rafael,

    Do you care to clarify your problem?

    BuddyPress is a plugin to WordPress so obviously if you as the admin write blog posts you can add photos and videos – regardless of buddypress.

    If you want each user to add photos/videos perhaps you can enable multiple blogs? If you don’t want to do that, you’d have to do a bit more customization to be able to enable your BuddyPress users to be authors on your original blog without giving any other powers.

    John

  3. Line says:

    Hi, as you are a user of buddypress, could you tell if a shared hosting is ok or a dedicated server is needed for buddypress?

    Thanks

  4. admin says:

    Hi Line,

    If you are just starting out, it really doesn’t matter. I would recommend you start out with shared hosting definitely and see how you go.

    Buddypress is a plugin of WordPress and as such uses caching etc which improves performance greatly.

    Obviously as your site grows, or if you already have a high traffic website where you want to use BuddyPress, you will benefit from better hosting.

    John

  5. didim says:

    this is good, l was looking for this and usefull. but catching for performance impressed me tho

  6. teonsight says:

    Hi,
    I tried your code in my installation (WP3.3 + BP 1.5.2) but doesn’t change anything.
    My BP version doesn’t have buddypress/bp-core/bp-core-signup.php but the filter bp_core_activation_signup_user_notification_subject is in buddypress/bp-core/bp-core-filters.php

    Many thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Explore other similar posts that might interest you

Click on a post title to read the post!