From 7417611957538713f39389889fdd6f0ba41943fa Mon Sep 17 00:00:00 2001 From: ultimatemember Date: Thu, 22 Jan 2015 02:10:26 +0200 Subject: [PATCH] Version 1.0.10 --- admin/assets/css/um-admin-dashboard.css | 2 +- admin/templates/dashboard/overview.php | 17 +++++++++++++++-- core/um-actions-register.php | 2 ++ core/um-mail.php | 10 ++++++++++ core/um-short-functions.php | 24 ++++++++++++++++++++++++ core/um-user.php | 7 +++++++ index.php | 2 +- readme.txt | 7 ++++++- 8 files changed, 66 insertions(+), 5 deletions(-) diff --git a/admin/assets/css/um-admin-dashboard.css b/admin/assets/css/um-admin-dashboard.css index dd1855e3..95d6cfd7 100644 --- a/admin/assets/css/um-admin-dashboard.css +++ b/admin/assets/css/um-admin-dashboard.css @@ -160,7 +160,7 @@ text-decoration: none !important; font-size: 16px; position: absolute; - top: 0px; + top: -2px; right: 4px; } diff --git a/admin/templates/dashboard/overview.php b/admin/templates/dashboard/overview.php index ebe7bf4d..7d057e44 100644 --- a/admin/templates/dashboard/overview.php +++ b/admin/templates/dashboard/overview.php @@ -16,7 +16,19 @@ -
+
+ + '; + + } + + ?> + +
@@ -50,7 +62,8 @@ '; + + echo ''; } diff --git a/core/um-actions-register.php b/core/um-actions-register.php index b6a8b13e..9dd293cf 100644 --- a/core/um-actions-register.php +++ b/core/um-actions-register.php @@ -95,6 +95,8 @@ $ultimatemember->user->set_registration_details( $args['submitted'] ); + $ultimatemember->user->set_plain_password( $args['user_password'] ); + do_action('um_post_registration_save', $user_id, $args); do_action('um_post_registration_listener', $user_id, $args); diff --git a/core/um-mail.php b/core/um-mail.php index 43d3db8d..3fab32b7 100644 --- a/core/um-mail.php +++ b/core/um-mail.php @@ -36,22 +36,32 @@ class UM_Mail { $search = array( '{display_name}', + '{username}', + '{email}', + '{password}', + '{login_url}', '{site_name}', '{account_activation_link}', '{password_reset_link}', '{admin_email}', '{user_profile_link}', + '{submitted_registration}', ); $search = apply_filters('um_template_tags_patterns_hook', $search); $replace = array( um_user('display_name'), + um_user('user_login'), + um_user('user_email'), + um_user('_um_cool_but_hard_to_guess_plain_pw'), + um_get_core_page('login'), um_get_option('site_name'), um_user('account_activation_link'), um_user('password_reset_link'), um_admin_email(), um_user_profile_url(), + um_user_submitted_registration(), ); $replace = apply_filters('um_template_tags_replaces_hook', $replace); diff --git a/core/um-short-functions.php b/core/um-short-functions.php index 997a1f8e..cbea0ec3 100644 --- a/core/um-short-functions.php +++ b/core/um-short-functions.php @@ -7,6 +7,30 @@ exit( wp_redirect( home_url() ) ); } + /*** + *** @Get submitted user information + ***/ + function um_user_submitted_registration() { + $output = null; + $data = um_user('submitted'); + if ( isset( $data ) && is_array( $data ) ) { + foreach( $data as $k => $v ) { + + if ( !strstr( $k, 'user_pass' ) ) { + + if ( is_array($v) ) { + $v = implode(',', $v ); + } + + $output .= "$k: $v" . "\r\n"; + + } + + } + } + return $output; + } + /*** *** @Show filtered social link ***/ diff --git a/core/um-user.php b/core/um-user.php index b503401f..58aa527d 100644 --- a/core/um-user.php +++ b/core/um-user.php @@ -179,6 +179,13 @@ class UM_User { update_user_meta( $this->id, 'submitted', $submitted ); } + /*** + *** @A plain version of password + ***/ + function set_plain_password( $plain ) { + update_user_meta( $this->id, '_um_cool_but_hard_to_guess_plain_pw', $plain ); + } + /*** *** @Set user's role ***/ diff --git a/index.php b/index.php index df72f15d..87bf5be5 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ Plugin Name: Ultimate Member Plugin URI: http://ultimatemember.com/ Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress -Version: 1.0.0 +Version: 1.0.10 Author: Ultimate Member Author URI: http://ultimatemember.com/ */ diff --git a/readme.txt b/readme.txt index d7cc1c78..ba44e2d6 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Tags: members, member, membership, community, communities, profile, profiles, re Requires at least: 4.1 Tested up to: 4.1 -Stable Tag: 1.0.0 +Stable Tag: 1.0.10 License: GNU Version 2 or Any Later Version @@ -165,6 +165,11 @@ We are currently in beta phase so at the moment the plugin only works on single == Changelog == += 1.0.10: January 22, 2015 = + +* Fixed: Template tags for welcome e-mail +* Fixed: {submitted_registration} e-mail template tag + = 1.0.0: January, 2015 = * First official release! \ No newline at end of file