Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • 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.


    Brimfulof
    Participant

    @brimfulof

    @hnla I’ve read the codex and I’m struggling. I wonder if you can help.

    I’m trying to edit the registration page. So I’ve copied the existing one and renamed it index-register.php

    I’ve tried putting in in various places but it doesn’t seem to make any difference. Where should it be?


    Brimfulof
    Participant

    @brimfulof

    It’s actually pretty simple. It’s explained very briefly in the plugin’s installation page: https://wordpress.org/extend/plugins/bp-export-users/installation/

    Step-by-step:
    1. Download the plugin to your computer.
    2. Unzip it and open the file bp-export-users.php in a text editor (notepad, notepad++, gedit, etc.)
    3. Find these lines:
    $this->wp_fields = array(
    'ID',
    'user_login',
    #'user_pass',
    'user_nicename',
    'user_email',
    'user_url',
    'user_registered',
    #'user_activation_key',
    'user_status',
    'display_name',
    'spam',
    'deleted');

    4. Add the names of any custom WordPress user fields you want in ‘inverted commas’ before the closing bracket ) making sure you put a comma in between the fields. E.g. ‘deleted’, ‘custom field’, ‘custom field2’)
    5. Find the lines:
    $this->bp_fields = array(
    'Name',
    'Telephone',
    'Job Title',
    'Organisation',
    'Region',
    'Primary Discipline',
    'Grade',
    'A bit about you',
    'twitter',
    'flickr');

    6. Add the names of any custom BuddyPress (xProfile) fields you want to export in the same way.
    7. Save the file.
    8. Zip the folder.
    9. Install the plugin in your WordPress installation using the upload method.
    And you should be away.

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar