Support » Plugin: Member Approval » Username etc in email

  • Resolved Andy


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andy


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

    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.



    Many thanks Rob

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Username etc in email’ is closed to new replies.