Skip to:
Content
Pages
Categories
Search
Top
Bottom

Registration Process


  • tayenewm
    Participant

    @tayenewm

    I would like to change the default registration process to the following:

    1. New member registers (currently free)
    2. Email is sent to new member with login password and invite to complete their profile.

    I can’t figure out how to customize the activation email. Please let me know.
    thanks,
    taye

    I am using BuddyPress 1.8.1 with S2Member 130816 with WordPress 3.5.2.

Viewing 11 replies - 1 through 11 (of 11 total)

  • Henry
    Member

    @henrywright-1

    The activation email body can be filtered using bp_core_signup_send_validation_email_message

    The subject line can also be changed bp_core_signup_send_validation_email_subject

    For example: To change the subject line you would add this to functions.php

    
    function activation_email_subject_filter( $subject, $user_id ) {
    	$subject = 'Hello New User';
    	return $subject;
    }
    add_filter('bp_core_signup_send_validation_email_subject', 'activation_email_subject_filter', 10, 2 );

    tayenewm
    Participant

    @tayenewm

    can I add this code to my Theme CSS code to avoid changing the core code or having to redo with all updates?


    Henry
    Member

    @henrywright-1

    You’re on the right track – although it isn’t your theme’s style.css that you’d want to add it to. You’d add it to your theme’s functions.php file.


    tayenewm
    Participant

    @tayenewm

    But wouldn’t I run into the same problem with every theme update? I don’t know code and don’t like diddling in it. Maybe I need to just hire a developer to resolve all my little issues. Does BuddyPress offer dev services? Where do I go to sign up? thanks


    Henry
    Member

    @henrywright-1

    Your theme’s functions.php file wouldn’t get overwritten with each update. The changes you make to this file will be safe going forward.

    A great place to hire a BuddyPress developer would be the BP Jobs Board:

    BP Jobs Board


    tayenewm
    Participant

    @tayenewm

    ok – i will check out the jobs board. Are you for hire Henry? taye@digz.ca


    Henry
    Member

    @henrywright-1

    Not currently for hire due to a lack of time – that said, there are quite a few BP developers who will be able to help. Perhaps check who is available on the jobs board. @shanebp might be a good person to ask


    tayenewm
    Participant

    @tayenewm

    Thanks – I sent @shanebp an email. Hopefully he is available. Thanks for the help!
    Have a great day,
    taye


    shanebp
    Moderator

    @shanebp


    Brimfulof
    Participant

    @brimfulof

    Hi,

    I’m trying to edit the message body and I’ve managed using your code @henrywright-1 but in the process I have lost the link that they need to click on. I’m obviously missing a variable, can you help me identify what it is?

    This is the code I have:

    #-------------------------
    # Edit activation email
    #----------------------------
    function activation_email_message_filter( $message, $user_id ) {
    	$message = 'Thanks for registering! To complete the activation of your account please click the following link or copy and paste it into your browser\'s address bar:';
    	return $message;
    }
    add_filter('bp_core_signup_send_validation_email_message', 'activation_email_message_filter', 10, 2 );

    The email comes through with the edited message text, but the activation ink itself is missing.

    You’ll need to look at the core function that filter ‘bp_core_signup_send_validation_email_message’ belongs to to see what has been missed in the return;.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Registration Process’ is closed to new replies.
Skip to toolbar