WordPress.org

Forums

Member Approval
[resolved] Username etc in email (5 posts)

  1. Andy
    Member
    Posted 1 year ago #

    Hi Bruce, great plugin, one small issue I am seeing is that in the registration and approval notification emails the user replacement codes (as used by s2Member plugin) i.e. %%user_first_name%% or %%user_full_name%% do not display correctly.

    Does your plugin use different replacement codes?

    http://wordpress.org/plugins/member-approval/

  2. Andy
    Member
    Posted 1 year ago #

    Sorry, just realised that this plugin uses %%firstname%%, %%lastname%%, and %%fullname%% replacement codes. However, these do not work either.

  3. Rob Marlbrough
    Member
    Posted 1 year ago #

    Andy, change the line in the public static function approved($user_id) function to this:

    $opts['approval-email']['body'] = str_replace(array('%%firstname%%', '%%lastname%%', '%%fullname%%'), array($user->first_name, $user->last_name, $user->first_name.' '.$user->last_name), $opts['approval-email']['body']);

    It was clearly a copy/paste from the new_user function, using the wrong email options.

  4. Andy
    Member
    Posted 1 year ago #

    Many thanks Rob

  5. Rob Marlbrough
    Member
    Posted 1 year ago #

    My pleasure. The author replied that he'll be updating this plugin to resolve this shortly as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.