Support » Plugins and Hacks » [Plugin: Absolute Privacy] Email variables

Viewing 5 replies - 1 through 5 (of 5 total)
  • I looked through the code and found the variables:

    '%username%' => $user->user_login,
    '%name%' => $user->display_name,
    '%blogname%' =>  get_bloginfo('name'),
    '%blogurl%' => get_bloginfo('url'),
    '%approval_url%' => get_bloginfo('url') . '/wp-admin/options-general.php?page=' . dirname(plugin_basename(__FILE__)) . '/absolute_privacy.php&mode=moderate&id='.$user_id

    As an example here is the old approval notification:

    Your registration with %blogname% has been approved!
    
    Your may login using the following information:
    
    Username: %username%
    Password: (hidden)
    URL: %blogurl%/wp-login.php'

    @muckngrind5, ah, an oversite on my part. I should have included that in the documentation. I’ll add that in the next version.

    Glad it looks like you found what you needed.

    Hi kolbert!… Is there a variable to include the user email into the “Admin Notification Message” ???

    Thanks, great job!

    Currently not, but I’ll add it in for an upcoming version. In the mean time, you can add it in yourself if you are comfortable editing PHP. Just open absolute_privacy.php and replace lines 515-520 (the $replace array variable) with this:

    $replace = array('%username%' => $user->user_login,
    				 '%name%' => $user->display_name,
    				 '%blogname%' =>  get_bloginfo('name'),
    				 '%blogurl%' => get_bloginfo('url'),
    				 '%approval_url%' => get_bloginfo('url') . '/wp-admin/options-general.php?page=' . dirname(plugin_basename(__FILE__)) . '/absolute_privacy.php&mode=moderate&id='.$user_id,
    				 '%user_email%' => $user->user_email
    				 );

    I have been using the default “%name%” since I enabled the plug-in, but the emails all are displaying the “username” in this location instead.

    Has anyone else seen this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Absolute Privacy] Email variables’ is closed to new replies.