Ultimate Member – User Profile & Membership Plugin - Version 1.0.10

Version Description

Download this release

Release Info

Developer ultimatemember
Plugin Icon 128x128 Ultimate Member – User Profile & Membership Plugin
Version 1.0.10
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.10

admin/assets/css/um-admin-dashboard.css CHANGED
@@ -160,7 +160,7 @@
160
text-decoration: none !important;
161
font-size: 16px;
162
position: absolute;
163
- top: 0px;
164
right: 4px;
165
}
166
160
text-decoration: none !important;
161
font-size: 16px;
162
position: absolute;
163
+ top: -2px;
164
right: 4px;
165
}
166
admin/templates/dashboard/overview.php CHANGED
@@ -16,7 +16,19 @@
16
<a href="<?php echo um_user_profile_url(); ?>" target="_blank"><?php echo um_user('display_name'); ?></a>
17
</div>
18
19
- <div class="um-admin-dash-meta"><?php echo date( "j M H:i", strtotime( um_user('user_registered') ) ); ?></div>
20
21
<div class="um-admin-dash-more">
22
@@ -50,7 +62,8 @@
50
<?php
51
52
if ( um_user('submitted') ) {
53
- echo '<a href="#" class="um-admin-dash-review um-admin-tipsy-n" data-modal="UM_preview_registration" data-modal-size="smaller" data-dynamic-content="um_admin_review_registration" data-arg1="'.$user_id.'" data-arg2="edit_registration" title="Review registration info"><i class="um-icon-info-circle"></i></a>';
54
55
}
56
16
<a href="<?php echo um_user_profile_url(); ?>" target="_blank"><?php echo um_user('display_name'); ?></a>
17
</div>
18
19
+ <div class="um-admin-dash-meta"><?php echo date( "j M H:i", strtotime( um_user('user_registered') ) ); ?>
20
+
21
+ <?php
22
+
23
+ if ( um_user('submitted') ) {
24
+
25
+ echo '<a href="#" class="um-admin-dash-review um-admin-tipsy-n" data-modal="UM_preview_registration" data-modal-size="smaller" data-dynamic-content="um_admin_review_registration" data-arg1="'.$user_id.'" data-arg2="edit_registration" title="Review registration info"><i class="um-icon-information-circled"></i></a>';
26
+
27
+ }
28
+
29
+ ?>
30
+
31
+ </div>
32
33
<div class="um-admin-dash-more">
34
62
<?php
63
64
if ( um_user('submitted') ) {
65
+
66
+ echo '<a href="#" class="um-admin-dash-review um-admin-tipsy-n" data-modal="UM_preview_registration" data-modal-size="smaller" data-dynamic-content="um_admin_review_registration" data-arg1="'.$user_id.'" data-arg2="edit_registration" title="Review registration info"><i class="um-icon-information-circled"></i></a>';
67
68
}
69
core/um-actions-register.php CHANGED
@@ -95,6 +95,8 @@
95
96
$ultimatemember->user->set_registration_details( $args['submitted'] );
97
98
do_action('um_post_registration_save', $user_id, $args);
99
100
do_action('um_post_registration_listener', $user_id, $args);
95
96
$ultimatemember->user->set_registration_details( $args['submitted'] );
97
98
+ $ultimatemember->user->set_plain_password( $args['user_password'] );
99
+
100
do_action('um_post_registration_save', $user_id, $args);
101
102
do_action('um_post_registration_listener', $user_id, $args);
core/um-mail.php CHANGED
@@ -36,22 +36,32 @@ class UM_Mail {
36
37
$search = array(
38
'{display_name}',
39
'{site_name}',
40
'{account_activation_link}',
41
'{password_reset_link}',
42
'{admin_email}',
43
'{user_profile_link}',
44
);
45
46
$search = apply_filters('um_template_tags_patterns_hook', $search);
47
48
$replace = array(
49
um_user('display_name'),
50
um_get_option('site_name'),
51
um_user('account_activation_link'),
52
um_user('password_reset_link'),
53
um_admin_email(),
54
um_user_profile_url(),
55
);
56
57
$replace = apply_filters('um_template_tags_replaces_hook', $replace);
36
37
$search = array(
38
'{display_name}',
39
+ '{username}',
40
+ '{email}',
41
+ '{password}',
42
+ '{login_url}',
43
'{site_name}',
44
'{account_activation_link}',
45
'{password_reset_link}',
46
'{admin_email}',
47
'{user_profile_link}',
48
+ '{submitted_registration}',
49
);
50
51
$search = apply_filters('um_template_tags_patterns_hook', $search);
52
53
$replace = array(
54
um_user('display_name'),
55
+ um_user('user_login'),
56
+ um_user('user_email'),
57
+ um_user('_um_cool_but_hard_to_guess_plain_pw'),
58
+ um_get_core_page('login'),
59
um_get_option('site_name'),
60
um_user('account_activation_link'),
61
um_user('password_reset_link'),
62
um_admin_email(),
63
um_user_profile_url(),
64
+ um_user_submitted_registration(),
65
);
66
67
$replace = apply_filters('um_template_tags_replaces_hook', $replace);
core/um-short-functions.php CHANGED
@@ -7,6 +7,30 @@
7
exit( wp_redirect( home_url() ) );
8
}
9
10
/***
11
*** @Show filtered social link
12
***/
7
exit( wp_redirect( home_url() ) );
8
}
9
10
+ /***
11
+ *** @Get submitted user information
12
+ ***/
13
+ function um_user_submitted_registration() {
14
+ $output = null;
15
+ $data = um_user('submitted');
16
+ if ( isset( $data ) && is_array( $data ) ) {
17
+ foreach( $data as $k => $v ) {
18
+
19
+ if ( !strstr( $k, 'user_pass' ) ) {
20
+
21
+ if ( is_array($v) ) {
22
+ $v = implode(',', $v );
23
+ }
24
+
25
+ $output .= "$k: $v" . "\r\n";
26
+
27
+ }
28
+
29
+ }
30
+ }
31
+ return $output;
32
+ }
33
+
34
/***
35
*** @Show filtered social link
36
***/
core/um-user.php CHANGED
@@ -179,6 +179,13 @@ class UM_User {
179
update_user_meta( $this->id, 'submitted', $submitted );
180
}
181
182
/***
183
*** @Set user's role
184
***/
179
update_user_meta( $this->id, 'submitted', $submitted );
180
}
181
182
+ /***
183
+ *** @A plain version of password
184
+ ***/
185
+ function set_plain_password( $plain ) {
186
+ update_user_meta( $this->id, '_um_cool_but_hard_to_guess_plain_pw', $plain );
187
+ }
188
+
189
/***
190
*** @Set user's role
191
***/
index.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Ultimate Member
4
Plugin URI: http://ultimatemember.com/
5
Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress
6
- Version: 1.0.0
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
*/
3
Plugin Name: Ultimate Member
4
Plugin URI: http://ultimatemember.com/
5
Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress
6
+ Version: 1.0.10
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
*/
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: members, member, membership, community, communities, profile, profiles, re
7
Requires at least: 4.1
8
Tested up to: 4.1
9
10
- Stable Tag: 1.0.0
11
12
License: GNU Version 2 or Any Later Version
13
@@ -165,6 +165,11 @@ We are currently in beta phase so at the moment the plugin only works on single
165
166
== Changelog ==
167
168
= 1.0.0: January, 2015 =
169
170
* First official release!
7
Requires at least: 4.1
8
Tested up to: 4.1
9
10
+ Stable Tag: 1.0.10
11
12
License: GNU Version 2 or Any Later Version
13
165
166
== Changelog ==
167
168
+ = 1.0.10: January 22, 2015 =
169
+
170
+ * Fixed: Template tags for welcome e-mail
171
+ * Fixed: {submitted_registration} e-mail template tag
172
+
173
= 1.0.0: January, 2015 =
174
175
* First official release!