Version Description
Download this release
Release Info
Developer | ultimatemember |
Plugin | Ultimate Member – User Profile & Membership Plugin |
Version | 1.0.75 |
Comparing to | |
See all releases |
Code changes from version 1.0.74 to 1.0.75
- addons/bp_avatar_transfer.php +108 -0
- admin/assets/css/um-admin-redux.css +46 -23
- admin/core/um-admin-dashboard.php +1 -1
- admin/core/um-admin-redux.php +1 -1
- core/um-actions-password.php +4 -4
- core/um-files.php +11 -4
- core/um-filters-addons.php +33 -0
- core/um-form.php +2 -2
- index.php +1 -1
- readme.txt +9 -1
- templates/email/approval_email.html +10 -10
- templates/email/changedpw_email.html +9 -9
- templates/email/checkmail_email.html +9 -9
- templates/email/deletion_email.html +9 -11
- templates/email/inactive_email.html +9 -9
- templates/email/pending_email.html +9 -9
- templates/email/rejected_email.html +9 -9
- templates/email/resetpw_email.html +9 -9
- templates/email/welcome_email.html +10 -10
- um-config.php +10 -0
- um-init.php +17 -0
addons/bp_avatar_transfer.php
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class UM_ADDON_bp_avatar_transfer {
|
4 |
+
|
5 |
+
function __construct() {
|
6 |
+
|
7 |
+
add_action('admin_menu', array(&$this, 'admin_menu'), 1001);
|
8 |
+
|
9 |
+
add_action('admin_init', array(&$this, 'admin_init'), 1);
|
10 |
+
|
11 |
+
add_action('um_admin_addon_hook', array(&$this, 'um_admin_addon_hook') );
|
12 |
+
|
13 |
+
}
|
14 |
+
|
15 |
+
/***
|
16 |
+
*** @extends the admin menu
|
17 |
+
***/
|
18 |
+
function admin_menu() {
|
19 |
+
|
20 |
+
global $ultimatemember;
|
21 |
+
$this->addon = $ultimatemember->addons['bp_avatar_transfer'];
|
22 |
+
add_submenu_page('ultimatemember', $this->addon[0], $this->addon[0], 'manage_options', 'bp_avatar_transfer', array(&$this, 'content') );
|
23 |
+
|
24 |
+
}
|
25 |
+
|
26 |
+
/***
|
27 |
+
*** @Runs a custom hook
|
28 |
+
***/
|
29 |
+
function um_admin_addon_hook( $hook ) {
|
30 |
+
global $ultimatemember;
|
31 |
+
switch( $hook ) {
|
32 |
+
case 'bp_avatar_transfer':
|
33 |
+
if ( class_exists('BuddyPress') ) {
|
34 |
+
|
35 |
+
$path = bp_core_avatar_upload_path() . '/avatars';
|
36 |
+
|
37 |
+
$files = glob( $path . '/*');
|
38 |
+
$i = 0;
|
39 |
+
foreach( $files as $key ) {
|
40 |
+
$q = (count(glob("$key/*")) === 0) ? 0 : 1;
|
41 |
+
if ( $q == 1 ) {
|
42 |
+
$photo = glob( $key . '/*');
|
43 |
+
foreach( $photo as $file ) {
|
44 |
+
if ( strstr( $file, 'bpfull' ) ) {
|
45 |
+
$get_user_id = explode('/', $file);
|
46 |
+
array_pop($get_user_id);
|
47 |
+
$user_id = end($get_user_id);
|
48 |
+
if ( !file_exists( $ultimatemember->files->upload_basedir . $user_id . '/profile_photo.jpg' ) ) {
|
49 |
+
$ultimatemember->files->new_user( $user_id );
|
50 |
+
copy( $file, $ultimatemember->files->upload_basedir . $user_id . '/profile_photo.jpg' );
|
51 |
+
update_user_meta($user_id, 'profile_photo', 'profile_photo.jpg');
|
52 |
+
$i++;
|
53 |
+
}
|
54 |
+
}
|
55 |
+
}
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
$this->content = '<p><strong>Done. Process completed!</p>';
|
60 |
+
$this->content .= $i . ' user(s) changed.</strong></p>';
|
61 |
+
|
62 |
+
}
|
63 |
+
break;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
|
67 |
+
/***
|
68 |
+
*** @Change admin content
|
69 |
+
***/
|
70 |
+
function admin_init() {
|
71 |
+
if ( isset( $_REQUEST['um-addon-hook'] ) ) {
|
72 |
+
$hook = $_REQUEST['um-addon-hook'];
|
73 |
+
do_action("um_admin_addon_hook", $hook);
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
function content() {
|
78 |
+
|
79 |
+
$this->process_link = add_query_arg('um-addon-hook','bp_avatar_transfer');
|
80 |
+
|
81 |
+
?>
|
82 |
+
|
83 |
+
<div class="wrap">
|
84 |
+
|
85 |
+
<h2>Ultimate Member <sup style="font-size:15px"><?php echo ultimatemember_version; ?></sup></h2>
|
86 |
+
|
87 |
+
<h3><?php echo $this->addon[0]; ?></h3>
|
88 |
+
|
89 |
+
<?php if ( isset( $this->content ) ) {
|
90 |
+
echo $this->content;
|
91 |
+
} else { ?>
|
92 |
+
|
93 |
+
<p>This tool allows you to move all custom user photos/avatars from BuddyPress to Ultimate Member platform. This can help you If you are switching from BuddyPress.</p>
|
94 |
+
<p>Depending on your users database, this could take a few moments. To start the process, click the following button.</p>
|
95 |
+
|
96 |
+
<p><a href="<?php echo $this->process_link; ?>" class="button button-primary">Start transferring avatars</a></p>
|
97 |
+
|
98 |
+
<?php } ?>
|
99 |
+
|
100 |
+
</div><div class="clear"></div>
|
101 |
+
|
102 |
+
<?php
|
103 |
+
|
104 |
+
}
|
105 |
+
|
106 |
+
}
|
107 |
+
|
108 |
+
$UM_ADDON_bp_avatar_transfer = new UM_ADDON_bp_avatar_transfer();
|
admin/assets/css/um-admin-redux.css
CHANGED
@@ -33,6 +33,7 @@
|
|
33 |
|
34 |
.redux-sidebar .redux-group-menu li.active a, .admin-color-fresh .redux-sidebar .redux-group-menu li.activeChild a {
|
35 |
color: #3ba1da !important;
|
|
|
36 |
}
|
37 |
|
38 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections a {
|
@@ -47,6 +48,9 @@
|
|
47 |
|
48 |
.redux-main {
|
49 |
background: none !important;
|
|
|
|
|
|
|
50 |
}
|
51 |
|
52 |
.redux-container-sortable .checkbox-container input {
|
@@ -54,29 +58,34 @@
|
|
54 |
}
|
55 |
|
56 |
#redux-header {
|
57 |
-
background:
|
58 |
-
border
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
62 |
}
|
63 |
|
64 |
#redux-header .display_header span {
|
65 |
-
|
66 |
-
font-size: 14px;
|
67 |
position: relative;
|
68 |
-
top: -
|
69 |
-
|
70 |
padding-left: 4px;
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
#redux-header h2 {
|
74 |
-
color: #
|
75 |
-
font-size: 24px !important;
|
76 |
-webkit-font-smoothing: antialiased;
|
77 |
-moz-osx-font-smoothing: grayscale;
|
78 |
-
|
79 |
-
|
|
|
|
|
80 |
}
|
81 |
|
82 |
#redux-share {margin-top: 11px !important}
|
@@ -118,15 +127,16 @@
|
|
118 |
|
119 |
.redux-sidebar .redux-group-tab-link-a i {
|
120 |
vertical-align: middle;
|
121 |
-
font-size: 1.
|
122 |
position: absolute;
|
123 |
width: 20px;
|
124 |
text-align: center;
|
125 |
-
top:
|
|
|
126 |
}
|
127 |
|
128 |
.redux-sidebar .redux-menu-warning i, .redux-sidebar .redux-menu-error i, .redux-sidebar .hasSubSections .extraIconSubsections i {
|
129 |
-
top:
|
130 |
}
|
131 |
|
132 |
.redux-container ul.data-full{padding:0!important;margin:0!important}
|
@@ -140,38 +150,51 @@
|
|
140 |
|
141 |
.redux-container-switch {font-size: 13px}
|
142 |
|
|
|
|
|
|
|
|
|
143 |
.redux-sidebar .redux-group-menu li a {
|
144 |
color: #555;
|
145 |
opacity: 1 !important;
|
146 |
-
padding:
|
|
|
|
|
|
|
147 |
}
|
148 |
|
149 |
.redux-sidebar .redux-group-menu li a:hover {
|
150 |
-
background: #
|
151 |
-
color: #
|
152 |
}
|
153 |
|
154 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections a {
|
155 |
background: #3ba1da !important;
|
|
|
156 |
}
|
157 |
|
|
|
|
|
158 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li.active {
|
159 |
border-right: 0;
|
160 |
}
|
161 |
|
162 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li {
|
163 |
-
border-right:
|
|
|
|
|
164 |
}
|
165 |
|
166 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a {
|
167 |
background: transparent !important;
|
168 |
color: #555 !important;
|
169 |
-
border-bottom:
|
170 |
-
padding:
|
171 |
}
|
172 |
|
173 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a:hover {
|
174 |
-
background: #
|
|
|
175 |
}
|
176 |
|
177 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li.active a {
|
33 |
|
34 |
.redux-sidebar .redux-group-menu li.active a, .admin-color-fresh .redux-sidebar .redux-group-menu li.activeChild a {
|
35 |
color: #3ba1da !important;
|
36 |
+
background: #e5e5e5;
|
37 |
}
|
38 |
|
39 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections a {
|
48 |
|
49 |
.redux-main {
|
50 |
background: none !important;
|
51 |
+
box-shadow: none !important;
|
52 |
+
border-left: 0 !important;
|
53 |
+
padding: 0 25px;
|
54 |
}
|
55 |
|
56 |
.redux-container-sortable .checkbox-container input {
|
58 |
}
|
59 |
|
60 |
#redux-header {
|
61 |
+
background: transparent !important;
|
62 |
+
border: none !important;
|
63 |
+
padding: 0 !important;
|
64 |
+
}
|
65 |
+
|
66 |
+
.redux-container #redux-header .display_header {
|
67 |
+
margin: 0 0 10px 0 !important;
|
68 |
}
|
69 |
|
70 |
#redux-header .display_header span {
|
71 |
+
font-size: 15px;
|
|
|
72 |
position: relative;
|
73 |
+
top: -8px;
|
74 |
+
left: -3px;
|
75 |
padding-left: 4px;
|
76 |
+
font-weight: 400;
|
77 |
+
line-height: 29px;
|
78 |
+
color: #222 !important;
|
79 |
}
|
80 |
|
81 |
#redux-header h2 {
|
82 |
+
color: #222;
|
|
|
83 |
-webkit-font-smoothing: antialiased;
|
84 |
-moz-osx-font-smoothing: grayscale;
|
85 |
+
font-size: 23px;
|
86 |
+
font-weight: 400;
|
87 |
+
padding: 2px 15px 4px 0px;
|
88 |
+
line-height: 29px;
|
89 |
}
|
90 |
|
91 |
#redux-share {margin-top: 11px !important}
|
127 |
|
128 |
.redux-sidebar .redux-group-tab-link-a i {
|
129 |
vertical-align: middle;
|
130 |
+
font-size: 1.2em;
|
131 |
position: absolute;
|
132 |
width: 20px;
|
133 |
text-align: center;
|
134 |
+
top: 6px;
|
135 |
+
color: #888;
|
136 |
}
|
137 |
|
138 |
.redux-sidebar .redux-menu-warning i, .redux-sidebar .redux-menu-error i, .redux-sidebar .hasSubSections .extraIconSubsections i {
|
139 |
+
top: 11px;
|
140 |
}
|
141 |
|
142 |
.redux-container ul.data-full{padding:0!important;margin:0!important}
|
150 |
|
151 |
.redux-container-switch {font-size: 13px}
|
152 |
|
153 |
+
.redux-sidebar .redux-group-menu li {
|
154 |
+
margin-top: 4px;
|
155 |
+
}
|
156 |
+
|
157 |
.redux-sidebar .redux-group-menu li a {
|
158 |
color: #555;
|
159 |
opacity: 1 !important;
|
160 |
+
padding: 6px 4px 6px 14px;
|
161 |
+
border-radius: 3px;
|
162 |
+
border: none;
|
163 |
+
transition: all .2s linear !important;
|
164 |
}
|
165 |
|
166 |
.redux-sidebar .redux-group-menu li a:hover {
|
167 |
+
background: #e5e5e5;
|
168 |
+
color: #333;
|
169 |
}
|
170 |
|
171 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections a {
|
172 |
background: #3ba1da !important;
|
173 |
+
color: #fff;
|
174 |
}
|
175 |
|
176 |
+
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections a i {color: #fff !important}
|
177 |
+
|
178 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li.active {
|
179 |
border-right: 0;
|
180 |
}
|
181 |
|
182 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li {
|
183 |
+
border-right: 0;
|
184 |
+
margin-top: 4px;
|
185 |
+
padding-left: 12px;
|
186 |
}
|
187 |
|
188 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a {
|
189 |
background: transparent !important;
|
190 |
color: #555 !important;
|
191 |
+
border-bottom: 0;
|
192 |
+
padding: 6px 4px 6px 14px !important;
|
193 |
}
|
194 |
|
195 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a:hover {
|
196 |
+
background: #e5e5e5 !important;
|
197 |
+
color: #333 !important;
|
198 |
}
|
199 |
|
200 |
.redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li.active a {
|
admin/core/um-admin-dashboard.php
CHANGED
@@ -154,7 +154,7 @@ class UM_Admin_Dashboard {
|
|
154 |
function admin_page() {
|
155 |
|
156 |
$page = $_REQUEST['page'];
|
157 |
-
if ( $page == 'ultimatemember' ) {
|
158 |
|
159 |
?>
|
160 |
|
154 |
function admin_page() {
|
155 |
|
156 |
$page = $_REQUEST['page'];
|
157 |
+
if ( $page == 'ultimatemember' && !isset($_REQUEST['um-addon']) ) {
|
158 |
|
159 |
?>
|
160 |
|
admin/core/um-admin-redux.php
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
|
53 |
$this->args = array(
|
54 |
'opt_name' => 'um_options', // This is where your data is stored in the database and also becomes your global variable name.
|
55 |
-
'display_name' => __('
|
56 |
'display_version' => ultimatemember_version, // Version that appears at the top of your panel
|
57 |
'menu_type' => 'submenu', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
|
58 |
'allow_sub_menu' => false, // Show the sections below the admin menu item or not
|
52 |
|
53 |
$this->args = array(
|
54 |
'opt_name' => 'um_options', // This is where your data is stored in the database and also becomes your global variable name.
|
55 |
+
'display_name' => __('Ultimate Member', 'ultimatemember'), // Name that appears at the top of your panel
|
56 |
'display_version' => ultimatemember_version, // Version that appears at the top of your panel
|
57 |
'menu_type' => 'submenu', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
|
58 |
'allow_sub_menu' => false, // Show the sections below the admin menu item or not
|
core/um-actions-password.php
CHANGED
@@ -76,10 +76,10 @@
|
|
76 |
$form_timestamp = trim($_POST['timestamp']);
|
77 |
$live_timestamp = current_time( 'timestamp' );
|
78 |
|
79 |
-
if ( $form_timestamp == '' )
|
80 |
wp_die( __('Hello, spam bot!') );
|
81 |
|
82 |
-
if ( $live_timestamp - $form_timestamp < 3 )
|
83 |
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!') );
|
84 |
|
85 |
if ( strlen(trim( $_POST['username_b'] ) ) == 0 ) {
|
@@ -107,10 +107,10 @@
|
|
107 |
$form_timestamp = trim($_POST['timestamp']);
|
108 |
$live_timestamp = current_time( 'timestamp' );
|
109 |
|
110 |
-
if ( $form_timestamp == '' )
|
111 |
wp_die( __('Hello, spam bot!') );
|
112 |
|
113 |
-
if ( $live_timestamp - $form_timestamp < 3 )
|
114 |
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!') );
|
115 |
|
116 |
if ( !$args['user_password'] ) {
|
76 |
$form_timestamp = trim($_POST['timestamp']);
|
77 |
$live_timestamp = current_time( 'timestamp' );
|
78 |
|
79 |
+
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
80 |
wp_die( __('Hello, spam bot!') );
|
81 |
|
82 |
+
if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 )
|
83 |
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!') );
|
84 |
|
85 |
if ( strlen(trim( $_POST['username_b'] ) ) == 0 ) {
|
107 |
$form_timestamp = trim($_POST['timestamp']);
|
108 |
$live_timestamp = current_time( 'timestamp' );
|
109 |
|
110 |
+
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
111 |
wp_die( __('Hello, spam bot!') );
|
112 |
|
113 |
+
if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 )
|
114 |
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!') );
|
115 |
|
116 |
if ( !$args['user_password'] ) {
|
core/um-files.php
CHANGED
@@ -419,16 +419,23 @@ class UM_Files {
|
|
419 |
}
|
420 |
|
421 |
/***
|
422 |
-
*** @
|
423 |
***/
|
424 |
-
function
|
425 |
-
|
426 |
-
// if he does not have uploads dir yet
|
427 |
if ( !file_exists( $this->upload_basedir . $user_id . '/' ) ) {
|
428 |
$old = umask(0);
|
429 |
@mkdir( $this->upload_basedir . $user_id . '/' , 0755, true);
|
430 |
umask($old);
|
431 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
|
433 |
// name and extension stuff
|
434 |
$source_name = basename( $source );
|
419 |
}
|
420 |
|
421 |
/***
|
422 |
+
*** @make a user folder for uploads
|
423 |
***/
|
424 |
+
function new_user( $user_id ) {
|
|
|
|
|
425 |
if ( !file_exists( $this->upload_basedir . $user_id . '/' ) ) {
|
426 |
$old = umask(0);
|
427 |
@mkdir( $this->upload_basedir . $user_id . '/' , 0755, true);
|
428 |
umask($old);
|
429 |
}
|
430 |
+
}
|
431 |
+
|
432 |
+
/***
|
433 |
+
*** @new user upload
|
434 |
+
***/
|
435 |
+
function new_user_upload( $user_id, $source, $key ) {
|
436 |
+
|
437 |
+
// if he does not have uploads dir yet
|
438 |
+
$this->new_user( $user_id );
|
439 |
|
440 |
// name and extension stuff
|
441 |
$source_name = basename( $source );
|
core/um-filters-addons.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/***
|
4 |
+
*** @add-ons panel
|
5 |
+
***/
|
6 |
+
add_filter("redux/options/um_options/sections", 'um_add_addons_settings_tab', 8 );
|
7 |
+
function um_add_addons_settings_tab($sections){
|
8 |
+
global $ultimatemember;
|
9 |
+
|
10 |
+
foreach( $ultimatemember->addons as $addon_id => $addon ) {
|
11 |
+
$array[] = array(
|
12 |
+
'id' => 'addon_' . $addon_id,
|
13 |
+
'type' => 'switch',
|
14 |
+
'title' => $addon[0],
|
15 |
+
'desc' => $addon[1],
|
16 |
+
'on' => __('Activated','ultimatemember'),
|
17 |
+
'off' => __('Deactivated','ultimatemember'),
|
18 |
+
);
|
19 |
+
}
|
20 |
+
|
21 |
+
$array = apply_filters('um_builtin_addons_options', $array );
|
22 |
+
|
23 |
+
$sections[] = array(
|
24 |
+
|
25 |
+
'icon' => 'um-faicon-plug',
|
26 |
+
'title' => __( 'Add ons','ultimatemember'),
|
27 |
+
'fields' => $array
|
28 |
+
|
29 |
+
);
|
30 |
+
|
31 |
+
return $sections;
|
32 |
+
|
33 |
+
}
|
core/um-form.php
CHANGED
@@ -78,10 +78,10 @@ class UM_Form {
|
|
78 |
$form_timestamp = trim($_POST['timestamp']);
|
79 |
$live_timestamp = current_time( 'timestamp' );
|
80 |
|
81 |
-
if ( $form_timestamp == '' )
|
82 |
wp_die( __('Hello, spam bot!') );
|
83 |
|
84 |
-
if ( $live_timestamp - $form_timestamp <
|
85 |
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!') );
|
86 |
|
87 |
}
|
78 |
$form_timestamp = trim($_POST['timestamp']);
|
79 |
$live_timestamp = current_time( 'timestamp' );
|
80 |
|
81 |
+
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
82 |
wp_die( __('Hello, spam bot!') );
|
83 |
|
84 |
+
if ( $live_timestamp - $form_timestamp < 6 && um_get_option('enable_timebot') == 1 )
|
85 |
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!') );
|
86 |
|
87 |
}
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
-
Version: 1.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: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
+
Version: 1.0.75
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: access control, author, authors, author profile, comments, community, comm
|
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1.1
|
9 |
|
10 |
-
Stable Tag: 1.0.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -189,6 +189,14 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
189 |
|
190 |
== Changelog ==
|
191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
= 1.0.74: March 4, 2015 =
|
193 |
|
194 |
* Fixed: bug with numeric validation for a field
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1.1
|
9 |
|
10 |
+
Stable Tag: 1.0.75
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
189 |
|
190 |
== Changelog ==
|
191 |
|
192 |
+
= 1.0.75: March 5, 2015 =
|
193 |
+
|
194 |
+
* New: improved & modern html e-mail templates
|
195 |
+
* New: addon to transfer BuddyPress profile photos to Ultimate Member (user request)
|
196 |
+
* New: added option to turn off time bot feature (fixes conflict with plugins)
|
197 |
+
* New: added built-in addons support
|
198 |
+
* Tweak: improved backend design and css
|
199 |
+
|
200 |
= 1.0.74: March 4, 2015 =
|
201 |
|
202 |
* Fixed: bug with numeric validation for a field
|
templates/email/approval_email.html
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
<html>
|
2 |
-
<body>
|
3 |
|
4 |
-
<div style="max-width:
|
5 |
|
6 |
-
<div style="
|
7 |
-
<div style="
|
8 |
-
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
-
<div style="padding: 0 30px 30px 30px;border-bottom:
|
13 |
|
14 |
-
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;"
|
15 |
|
16 |
-
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{login_url}" style="background: #
|
17 |
|
18 |
-
<div style="
|
19 |
|
20 |
-
<div style="background: #eee;color: #444;padding: 12px 15px; border-radius: 3px
|
21 |
|
22 |
<div style="padding: 10px 15px 0 15px;color: #333;"><span style="color:#999">Your account e-mail:</span> <span style="font-weight:bold">{email}</span></div>
|
23 |
<div style="padding: 10px 15px 0 15px;color: #333;"><span style="color:#999">Your account username:</span> <span style="font-weight:bold">{username}</span></div>
|
1 |
<html>
|
2 |
+
<body style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;">
|
3 |
|
4 |
+
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin:40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666;">
|
5 |
|
6 |
+
<div style="color: #444444;font-weight: normal;">
|
7 |
+
<div style="text-align: center;font-weight:600;font-size:26px;padding: 10px 0;border-bottom: solid 3px #eeeeee;">{site_name}</div>
|
8 |
+
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
+
<div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee;">
|
13 |
|
14 |
+
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">Thank you for signing up!<span style="display: block;">Your account is now approved.</span></div>
|
15 |
|
16 |
+
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{login_url}" style="background: #555555;color: #fff;padding: 12px 30px;text-decoration: none;border-radius: 3px;letter-spacing: 0.3px;">Login to our site</a></div>
|
17 |
|
18 |
+
<div style="padding: 0 0 15px 0;">
|
19 |
|
20 |
+
<div style="background: #eee;color: #444;padding: 12px 15px; border-radius: 3px;font-weight: bold;font-size: 16px;">Account Information</div>
|
21 |
|
22 |
<div style="padding: 10px 15px 0 15px;color: #333;"><span style="color:#999">Your account e-mail:</span> <span style="font-weight:bold">{email}</span></div>
|
23 |
<div style="padding: 10px 15px 0 15px;color: #333;"><span style="color:#999">Your account username:</span> <span style="font-weight:bold">{username}</span></div>
|
templates/email/changedpw_email.html
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
<html>
|
2 |
-
<body>
|
3 |
|
4 |
-
<div style="max-width:
|
5 |
|
6 |
-
<div style="
|
7 |
-
<div style="
|
8 |
-
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
-
<div style="padding: 0 30px 30px 30px;border-bottom:
|
13 |
|
14 |
-
<div style="padding: 30px 0;font-size:
|
15 |
|
16 |
-
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{
|
17 |
|
18 |
-
<div style="
|
19 |
|
20 |
</div>
|
21 |
|
1 |
<html>
|
2 |
+
<body style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;">
|
3 |
|
4 |
+
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin:40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666;">
|
5 |
|
6 |
+
<div style="color: #444444;font-weight: normal;">
|
7 |
+
<div style="text-align: center;font-weight:600;font-size:26px;padding: 10px 0;border-bottom: solid 3px #eeeeee;">{site_name}</div>
|
8 |
+
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
+
<div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee;">
|
13 |
|
14 |
+
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">You recently changed the password associated with your account.</div>
|
15 |
|
16 |
+
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{user_account_link}" style="background: #555555;color: #fff;padding: 12px 30px;text-decoration: none;border-radius: 3px;letter-spacing: 0.3px;">Go to your Account</a></div>
|
17 |
|
18 |
+
<div style="padding: 15px;background: #eee;border-radius: 3px;text-align: center;">If you did not make this change and believe your account has been compromised, please <a href="mailto:{admin_email}" style="color: #3ba1da;text-decoration: none;">contact us</a> ASAP.</div>
|
19 |
|
20 |
</div>
|
21 |
|
templates/email/checkmail_email.html
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
<html>
|
2 |
-
<body>
|
3 |
|
4 |
-
<div style="max-width:
|
5 |
|
6 |
-
<div style="
|
7 |
-
<div style="
|
8 |
-
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
-
<div style="padding: 0 30px 30px 30px;border-bottom:
|
13 |
|
14 |
-
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">Thank you for signing up
|
15 |
|
16 |
-
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{account_activation_link}" style="background: #
|
17 |
|
18 |
-
<div style="
|
19 |
|
20 |
</div>
|
21 |
|
1 |
<html>
|
2 |
+
<body style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;">
|
3 |
|
4 |
+
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin:40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666;">
|
5 |
|
6 |
+
<div style="color: #444444;font-weight: normal;">
|
7 |
+
<div style="text-align: center;font-weight:600;font-size:26px;padding: 10px 0;border-bottom: solid 3px #eeeeee;">{site_name}</div>
|
8 |
+
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
+
<div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee;">
|
13 |
|
14 |
+
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">Thank you for signing up!<span style="display: block;">Please click the following link to activate your account.</span></div>
|
15 |
|
16 |
+
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{account_activation_link}" style="background: #555555;color: #fff;padding: 12px 30px;text-decoration: none;border-radius: 3px;letter-spacing: 0.3px;">Activate your Account</a></div>
|
17 |
|
18 |
+
<div style="padding: 15px;background: #eee;border-radius: 3px;text-align: center;">Need help? <a href="mailto:{admin_email}" style="color: #3ba1da;text-decoration: none;">contact us</a> today.</div>
|
19 |
|
20 |
</div>
|
21 |
|
templates/email/deletion_email.html
CHANGED
@@ -1,21 +1,19 @@
|
|
1 |
<html>
|
2 |
-
<body>
|
3 |
|
4 |
-
<div style="max-width:
|
5 |
|
6 |
-
<div style="
|
7 |
-
<div style="
|
8 |
-
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
-
<div style="padding: 0 30px 30px 30px;border-bottom:
|
13 |
-
|
14 |
-
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;"><span style="display: block;color:#333">This is an automated email to let you know your account has been deleted.</span></div>
|
15 |
-
|
16 |
-
<div style="padding: 0 0 30px 0; font-size: 16px;text-align: center;line-height: 28px;">All of your personal information has been permanently deleted and you will no longer be able to login to {site_name}.</div>
|
17 |
|
18 |
-
<div style="
|
|
|
|
|
19 |
|
20 |
</div>
|
21 |
|
1 |
<html>
|
2 |
+
<body style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;">
|
3 |
|
4 |
+
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin:40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666;">
|
5 |
|
6 |
+
<div style="color: #444444;font-weight: normal;">
|
7 |
+
<div style="text-align: center;font-weight:600;font-size:26px;padding: 10px 0;border-bottom: solid 3px #eeeeee;">{site_name}</div>
|
8 |
+
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
+
<div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee;">
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">Your account is now removed.<span style="display: block;">All your personal details and uploads have been removed.</span></div>
|
15 |
+
|
16 |
+
<div style="padding: 15px;background: #eee;border-radius: 3px;text-align: center;">If your account has been deleted by accident please <a href="mailto:{admin_email}" style="color: #3ba1da;text-decoration: none">contact us</a>.</div>
|
17 |
|
18 |
</div>
|
19 |
|
templates/email/inactive_email.html
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
<html>
|
2 |
-
<body>
|
3 |
|
4 |
-
<div style="max-width:
|
5 |
|
6 |
-
<div style="
|
7 |
-
<div style="
|
8 |
-
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
-
<div style="padding: 0 30px 30px 30px;border-bottom:
|
13 |
-
|
14 |
-
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;"><span style="display: block;color:#333">This is an automated email to let you know your {site_name} account has been deactivated.</span></div>
|
15 |
|
16 |
-
<div style="
|
|
|
|
|
17 |
|
18 |
</div>
|
19 |
|
1 |
<html>
|
2 |
+
<body style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;">
|
3 |
|
4 |
+
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin:40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666;">
|
5 |
|
6 |
+
<div style="color: #444444;font-weight: normal;">
|
7 |
+
<div style="text-align: center;font-weight:600;font-size:26px;padding: 10px 0;border-bottom: solid 3px #eeeeee;">{site_name}</div>
|
8 |
+
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
+
<div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee;">
|
|
|
|
|
13 |
|
14 |
+
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">Your account is now deactivated.</div>
|
15 |
+
|
16 |
+
<div style="padding: 15px;background: #eee;border-radius: 3px;text-align: center;">If you want your account to be re-activated, please <a href="mailto:{admin_email}" style="color: #3ba1da;text-decoration: none">contact us</a>.</div>
|
17 |
|
18 |
</div>
|
19 |
|
templates/email/pending_email.html
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
<html>
|
2 |
-
<body>
|
3 |
|
4 |
-
<div style="max-width:
|
5 |
|
6 |
-
<div style="
|
7 |
-
<div style="
|
8 |
-
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
-
<div style="padding: 0 30px 30px 30px;border-bottom:
|
13 |
-
|
14 |
-
<div style="padding: 30px 0;font-size: 20px;text-align: center;line-height: 32px;color: #333;">Thank you for signing up with {site_name}! Your account has to be manually reviewed before you can login.</div>
|
15 |
|
16 |
-
<div style="
|
|
|
|
|
17 |
|
18 |
</div>
|
19 |
|
1 |
<html>
|
2 |
+
<body style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;">
|
3 |
|
4 |
+
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin:40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666;">
|
5 |
|
6 |
+
<div style="color: #444444;font-weight: normal;">
|
7 |
+
<div style="text-align: center;font-weight:600;font-size:26px;padding: 10px 0;border-bottom: solid 3px #eeeeee;">{site_name}</div>
|
8 |
+
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
+
<div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee;">
|
|
|
|
|
13 |
|
14 |
+
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">Thank you for signing up!<span style="display: block;">Your account has to be manually reviewed.</span></div>
|
15 |
+
|
16 |
+
<div style="padding: 15px;background: #eee;border-radius: 3px;text-align: center;">Please allow us some time to process your request and review your information.</div>
|
17 |
|
18 |
</div>
|
19 |
|
templates/email/rejected_email.html
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
<html>
|
2 |
-
<body>
|
3 |
|
4 |
-
<div style="max-width:
|
5 |
|
6 |
-
<div style="
|
7 |
-
<div style="
|
8 |
-
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
-
<div style="padding: 0 30px 30px 30px;border-bottom:
|
13 |
-
|
14 |
-
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;"><span style="display: block;color:#333"><strong>We apologize.</strong> Your registration request on {site_name} has been rejected.</span></div>
|
15 |
|
16 |
-
<div style="
|
|
|
|
|
17 |
|
18 |
</div>
|
19 |
|
1 |
<html>
|
2 |
+
<body style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;">
|
3 |
|
4 |
+
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin:40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666;">
|
5 |
|
6 |
+
<div style="color: #444444;font-weight: normal;">
|
7 |
+
<div style="text-align: center;font-weight:600;font-size:26px;padding: 10px 0;border-bottom: solid 3px #eeeeee;">{site_name}</div>
|
8 |
+
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
+
<div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee;">
|
|
|
|
|
13 |
|
14 |
+
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">Your registration request has been rejected.</div>
|
15 |
+
|
16 |
+
<div style="padding: 15px;background: #eee;border-radius: 3px;text-align: center;">Please feel free to apply at a future date or <a href="mailto:{admin_email}" style="color: #3ba1da;text-decoration: none">contact us</a> If you want your information to be reviewed again.</div>
|
17 |
|
18 |
</div>
|
19 |
|
templates/email/resetpw_email.html
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
<html>
|
2 |
-
<body>
|
3 |
|
4 |
-
<div style="max-width:
|
5 |
|
6 |
-
<div style="
|
7 |
-
<div style="
|
8 |
-
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
-
<div style="padding: 0 30px 30px 30px;border-bottom:
|
13 |
|
14 |
-
<div style="padding: 30px 0;font-size:
|
15 |
|
16 |
-
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{password_reset_link}" style="background: #
|
17 |
|
18 |
-
<div style="
|
19 |
|
20 |
</div>
|
21 |
|
1 |
<html>
|
2 |
+
<body style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;">
|
3 |
|
4 |
+
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin:40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666;">
|
5 |
|
6 |
+
<div style="color: #444444;font-weight: normal;">
|
7 |
+
<div style="text-align: center;font-weight:600;font-size:26px;padding: 10px 0;border-bottom: solid 3px #eeeeee;">{site_name}</div>
|
8 |
+
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
+
<div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee;">
|
13 |
|
14 |
+
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">We received a request to reset the password for your account. If you made this request, click the link below to change your password:</div>
|
15 |
|
16 |
+
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{password_reset_link}" style="background: #555555;color: #fff;padding: 12px 30px;text-decoration: none;border-radius: 3px;letter-spacing: 0.3px;">Reset your password</a></div>
|
17 |
|
18 |
+
<div style="padding: 15px;background: #eee;border-radius: 3px;text-align: center;">If you didn't make this request, ignore this email or <a href="mailto:{admin_email}" style="color: #3ba1da;text-decoration: none;">report it to us</a>.</div>
|
19 |
|
20 |
</div>
|
21 |
|
templates/email/welcome_email.html
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
<html>
|
2 |
-
<body>
|
3 |
|
4 |
-
<div style="max-width:
|
5 |
|
6 |
-
<div style="
|
7 |
-
<div style="
|
8 |
-
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
-
<div style="padding: 0 30px 30px 30px;border-bottom:
|
13 |
|
14 |
-
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">Thank you for signing up
|
15 |
|
16 |
-
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{login_url}" style="background: #
|
17 |
|
18 |
-
<div style="
|
19 |
|
20 |
-
<div style="background: #eee;color: #444;padding: 12px 15px; border-radius: 3px
|
21 |
|
22 |
<div style="padding: 10px 15px 0 15px;color: #333;"><span style="color:#999">Your account e-mail:</span> <span style="font-weight:bold">{email}</span></div>
|
23 |
<div style="padding: 10px 15px 0 15px;color: #333;"><span style="color:#999">Your account username:</span> <span style="font-weight:bold">{username}</span></div>
|
1 |
<html>
|
2 |
+
<body style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;">
|
3 |
|
4 |
+
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin:40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666;">
|
5 |
|
6 |
+
<div style="color: #444444;font-weight: normal;">
|
7 |
+
<div style="text-align: center;font-weight:600;font-size:26px;padding: 10px 0;border-bottom: solid 3px #eeeeee;">{site_name}</div>
|
8 |
+
|
9 |
<div style="clear:both"></div>
|
10 |
</div>
|
11 |
|
12 |
+
<div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee;">
|
13 |
|
14 |
+
<div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px;">Thank you for signing up!<span style="display: block;">Your account is now active.</span></div>
|
15 |
|
16 |
+
<div style="padding: 10px 0 50px 0;text-align: center;"><a href="{login_url}" style="background: #555555;color: #fff;padding: 12px 30px;text-decoration: none;border-radius: 3px;letter-spacing: 0.3px;">Login to our site</a></div>
|
17 |
|
18 |
+
<div style="padding: 0 0 15px 0;">
|
19 |
|
20 |
+
<div style="background: #eee;color: #444;padding: 12px 15px; border-radius: 3px;font-weight: bold;font-size: 16px;">Account Information</div>
|
21 |
|
22 |
<div style="padding: 10px 15px 0 15px;color: #333;"><span style="color:#999">Your account e-mail:</span> <span style="font-weight:bold">{email}</span></div>
|
23 |
<div style="padding: 10px 15px 0 15px;color: #333;"><span style="color:#999">Your account username:</span> <span style="font-weight:bold">{username}</span></div>
|
um-config.php
CHANGED
@@ -1721,6 +1721,16 @@ $this->sections[] = array(
|
|
1721 |
'full_width' => true,
|
1722 |
),
|
1723 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1724 |
array(
|
1725 |
'id' => 'disable_minify',
|
1726 |
'type' => 'switch',
|
1721 |
'full_width' => true,
|
1722 |
),
|
1723 |
|
1724 |
+
array(
|
1725 |
+
'id' => 'enable_timebot',
|
1726 |
+
'type' => 'switch',
|
1727 |
+
'title' => __( 'Enable Time Check Security','ultimatemember' ),
|
1728 |
+
'default' => 1,
|
1729 |
+
'desc' => __('Turn this option off if you have a conflict with other plugins causing a spam bot message to appear unexpectedly.','ultimatemember'),
|
1730 |
+
'on' => __('On','ultimatemember'),
|
1731 |
+
'off' => __('Off','ultimatemember'),
|
1732 |
+
),
|
1733 |
+
|
1734 |
array(
|
1735 |
'id' => 'disable_minify',
|
1736 |
'type' => 'switch',
|
um-init.php
CHANGED
@@ -12,6 +12,8 @@ class UM_API {
|
|
12 |
|
13 |
add_action('init', array(&$this, 'init'), 0);
|
14 |
|
|
|
|
|
15 |
$this->honeypot = 'request';
|
16 |
|
17 |
$this->available_languages = array(
|
@@ -26,6 +28,20 @@ class UM_API {
|
|
26 |
'tr_TR' => 'Türkçe',
|
27 |
);
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
|
31 |
/***
|
@@ -102,6 +118,7 @@ class UM_API {
|
|
102 |
require_once um_path . 'core/um-filters-profile.php';
|
103 |
require_once um_path . 'core/um-filters-account.php';
|
104 |
require_once um_path . 'core/um-filters-misc.php';
|
|
|
105 |
|
106 |
/* initialize UM */
|
107 |
$this->rewrite = new UM_Rewrite();
|
12 |
|
13 |
add_action('init', array(&$this, 'init'), 0);
|
14 |
|
15 |
+
add_action('init', array(&$this, 'load_addons') );
|
16 |
+
|
17 |
$this->honeypot = 'request';
|
18 |
|
19 |
$this->available_languages = array(
|
28 |
'tr_TR' => 'Türkçe',
|
29 |
);
|
30 |
|
31 |
+
$this->addons['bp_avatar_transfer'] = array( __( 'BuddyPress Avatar Transfer','ultimatemember' ), __('This tool enables you to migrate your custom user photos from BuddyPress to use with Ultimate Member.','ultimatemember') );
|
32 |
+
|
33 |
+
}
|
34 |
+
|
35 |
+
/***
|
36 |
+
*** @Load add-ons
|
37 |
+
***/
|
38 |
+
function load_addons() {
|
39 |
+
global $ultimatemember;
|
40 |
+
if ( !is_admin() ) return;
|
41 |
+
foreach( $ultimatemember->addons as $addon => $name ) {
|
42 |
+
if ( um_get_option('addon_' . $addon ) == 1 )
|
43 |
+
include_once um_path . 'addons/'.$addon.'.php';
|
44 |
+
}
|
45 |
}
|
46 |
|
47 |
/***
|
118 |
require_once um_path . 'core/um-filters-profile.php';
|
119 |
require_once um_path . 'core/um-filters-account.php';
|
120 |
require_once um_path . 'core/um-filters-misc.php';
|
121 |
+
require_once um_path . 'core/um-filters-addons.php';
|
122 |
|
123 |
/* initialize UM */
|
124 |
$this->rewrite = new UM_Rewrite();
|