Version Description
Minor updates to the plugin files.
Download this release
Release Info
| Developer | barinagabriel |
| Plugin | |
| Version | 1.1.31 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.30 to 1.1.31
- front-end/wppb.register.php +25 -21
- index.php +2 -2
- readme.txt +4 -1
front-end/wppb.register.php
CHANGED
|
@@ -178,8 +178,8 @@ function wppb_add_meta_to_user_on_activation($user_id, $password, $meta){
|
|
| 178 |
}
|
| 179 |
}
|
| 180 |
|
| 181 |
-
|
| 182 |
-
function wppb_add_custom_field_values($
|
| 183 |
/* add the extra profile information */
|
| 184 |
$wppb_premium = WPPB_PLUGIN_DIR . '/premium/functions/';
|
| 185 |
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
|
@@ -188,11 +188,11 @@ function wppb_add_custom_field_values($_POST, $meta){
|
|
| 188 |
foreach ( $wppbFetchArray as $key => $value){
|
| 189 |
switch ($value['item_type']) {
|
| 190 |
case "input":{
|
| 191 |
-
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_input', esc_attr($
|
| 192 |
break;
|
| 193 |
}
|
| 194 |
case "hiddenInput":{
|
| 195 |
-
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_hidden_input', esc_attr($
|
| 196 |
break;
|
| 197 |
}
|
| 198 |
case "checkbox":{
|
|
@@ -200,8 +200,8 @@ function wppb_add_custom_field_values($_POST, $meta){
|
|
| 200 |
$checkboxValue = explode(',', $value['item_options']);
|
| 201 |
foreach($checkboxValue as $thisValue){
|
| 202 |
$thisValue = str_replace(' ', '#@space@#', $thisValue); //we need to escape the space-codification we sent earlier in the post
|
| 203 |
-
if (isset($
|
| 204 |
-
$localValue = str_replace('#@space@#', ' ', $
|
| 205 |
$checkboxOption = $checkboxOption.$localValue.',';
|
| 206 |
}
|
| 207 |
}
|
|
@@ -210,27 +210,27 @@ function wppb_add_custom_field_values($_POST, $meta){
|
|
| 210 |
break;
|
| 211 |
}
|
| 212 |
case "radio":{
|
| 213 |
-
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_radio', esc_attr($
|
| 214 |
break;
|
| 215 |
}
|
| 216 |
case "select":{
|
| 217 |
-
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_select', esc_attr($
|
| 218 |
break;
|
| 219 |
}
|
| 220 |
case "countrySelect":{
|
| 221 |
-
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_country_select', esc_attr($
|
| 222 |
break;
|
| 223 |
}
|
| 224 |
case "timeZone":{
|
| 225 |
-
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_timezone_select', esc_attr($
|
| 226 |
break;
|
| 227 |
}
|
| 228 |
case "datepicker":{
|
| 229 |
-
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_datepicker', esc_attr($
|
| 230 |
break;
|
| 231 |
}
|
| 232 |
case "textarea":{
|
| 233 |
-
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_textarea', esc_attr($
|
| 234 |
break;
|
| 235 |
}
|
| 236 |
case "upload":{
|
|
@@ -1517,17 +1517,21 @@ function wppb_front_end_register($atts){
|
|
| 1517 |
|
| 1518 |
if ($wppb_defaultOptions['password'] == 'show'){
|
| 1519 |
$errorMark = '';
|
|
|
|
|
|
|
| 1520 |
if ($wppb_defaultOptions['passwordRequired'] == 'yes'){
|
| 1521 |
$errorMark = '<font color="red" title="This field is required for registration.">*</font>';
|
| 1522 |
$errorMark2 = '<font color="red" title="This field is required for registration.">*</font>';
|
| 1523 |
-
if (
|
| 1524 |
-
$
|
| 1525 |
-
|
| 1526 |
-
|
| 1527 |
-
|
| 1528 |
-
|
| 1529 |
-
$
|
| 1530 |
-
|
|
|
|
|
|
|
| 1531 |
}
|
| 1532 |
|
| 1533 |
$localVar1 = '';
|
|
@@ -1555,7 +1559,7 @@ function wppb_front_end_register($atts){
|
|
| 1555 |
|
| 1556 |
//register_user_extra_fields($error, $_POST, $extraFieldsErrorHolder);
|
| 1557 |
$page = 'register';
|
| 1558 |
-
$returnedValue = wppb_extra_fields($current_user->id, $extraFieldsErrorHolder, $
|
| 1559 |
|
| 1560 |
//copy over extra fields to the rest of the fieldso on the edit profile
|
| 1561 |
foreach($returnedValue as $key => $value)
|
| 178 |
}
|
| 179 |
}
|
| 180 |
|
| 181 |
+
|
| 182 |
+
function wppb_add_custom_field_values($POST, $meta){
|
| 183 |
/* add the extra profile information */
|
| 184 |
$wppb_premium = WPPB_PLUGIN_DIR . '/premium/functions/';
|
| 185 |
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
| 188 |
foreach ( $wppbFetchArray as $key => $value){
|
| 189 |
switch ($value['item_type']) {
|
| 190 |
case "input":{
|
| 191 |
+
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_input', esc_attr($POST[$value['item_type'].$value['id']]));
|
| 192 |
break;
|
| 193 |
}
|
| 194 |
case "hiddenInput":{
|
| 195 |
+
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_hidden_input', esc_attr($POST[$value['item_type'].$value['id']]));
|
| 196 |
break;
|
| 197 |
}
|
| 198 |
case "checkbox":{
|
| 200 |
$checkboxValue = explode(',', $value['item_options']);
|
| 201 |
foreach($checkboxValue as $thisValue){
|
| 202 |
$thisValue = str_replace(' ', '#@space@#', $thisValue); //we need to escape the space-codification we sent earlier in the post
|
| 203 |
+
if (isset($POST[$thisValue.$value['id']])){
|
| 204 |
+
$localValue = str_replace('#@space@#', ' ', $POST[$thisValue.$value['id']]);
|
| 205 |
$checkboxOption = $checkboxOption.$localValue.',';
|
| 206 |
}
|
| 207 |
}
|
| 210 |
break;
|
| 211 |
}
|
| 212 |
case "radio":{
|
| 213 |
+
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_radio', esc_attr($POST[$value['item_type'].$value['id']]));
|
| 214 |
break;
|
| 215 |
}
|
| 216 |
case "select":{
|
| 217 |
+
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_select', esc_attr($POST[$value['item_type'].$value['id']]));
|
| 218 |
break;
|
| 219 |
}
|
| 220 |
case "countrySelect":{
|
| 221 |
+
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_country_select', esc_attr($POST[$value['item_type'].$value['id']]));
|
| 222 |
break;
|
| 223 |
}
|
| 224 |
case "timeZone":{
|
| 225 |
+
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_timezone_select', esc_attr($POST[$value['item_type'].$value['id']]));
|
| 226 |
break;
|
| 227 |
}
|
| 228 |
case "datepicker":{
|
| 229 |
+
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_datepicker', esc_attr($POST[$value['item_type'].$value['id']]));
|
| 230 |
break;
|
| 231 |
}
|
| 232 |
case "textarea":{
|
| 233 |
+
$meta[$value['item_type'].$value['id']] = apply_filters('wppb_register_wpmu_textarea', esc_attr($POST[$value['item_type'].$value['id']]));
|
| 234 |
break;
|
| 235 |
}
|
| 236 |
case "upload":{
|
| 1517 |
|
| 1518 |
if ($wppb_defaultOptions['password'] == 'show'){
|
| 1519 |
$errorMark = '';
|
| 1520 |
+
$errorVar = '';
|
| 1521 |
+
$errorVar2 = '';
|
| 1522 |
if ($wppb_defaultOptions['passwordRequired'] == 'yes'){
|
| 1523 |
$errorMark = '<font color="red" title="This field is required for registration.">*</font>';
|
| 1524 |
$errorMark2 = '<font color="red" title="This field is required for registration.">*</font>';
|
| 1525 |
+
if (isset ($_POST['passw1']))
|
| 1526 |
+
if (trim($_POST['passw1']) == ''){
|
| 1527 |
+
$errorMark = '<img src="'.WPPB_PLUGIN_URL . '/assets/images/pencil_delete.png" title="This field is required for registration."/>';
|
| 1528 |
+
$errorVar = ' errorHolder';
|
| 1529 |
+
}
|
| 1530 |
+
if (isset ($_POST['passw2']))
|
| 1531 |
+
if (trim($_POST['passw2']) == ''){
|
| 1532 |
+
$errorMark2 = '<img src="'.WPPB_PLUGIN_URL . '/assets/images/pencil_delete.png" title="This field is required for registration."/>';
|
| 1533 |
+
$errorVar2 = ' errorHolder';
|
| 1534 |
+
}
|
| 1535 |
}
|
| 1536 |
|
| 1537 |
$localVar1 = '';
|
| 1559 |
|
| 1560 |
//register_user_extra_fields($error, $_POST, $extraFieldsErrorHolder);
|
| 1561 |
$page = 'register';
|
| 1562 |
+
$returnedValue = wppb_extra_fields($current_user->id, $extraFieldsErrorHolder, $registerFilterArray, $page, $error, $_POST);
|
| 1563 |
|
| 1564 |
//copy over extra fields to the rest of the fieldso on the edit profile
|
| 1565 |
foreach($returnedValue as $key => $value)
|
index.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Profile Builder
|
| 4 |
Plugin URI: http://www.cozmoslabs.com/2011/04/12/wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/
|
| 5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
|
| 6 |
-
Version: 1.1.
|
| 7 |
Author: Reflection Media, Barina Gabriel
|
| 8 |
Author URI: http://www.reflectionmedia.ro
|
| 9 |
License: GPL2
|
|
@@ -54,7 +54,7 @@ function return_bytes($val) {
|
|
| 54 |
}
|
| 55 |
|
| 56 |
|
| 57 |
-
define( 'PROFILE_BUILDER_VERSION', '1.1.
|
| 58 |
define( 'WPPB_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
|
| 59 |
define( 'WPPB_PLUGIN_URL', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) );
|
| 60 |
define( 'WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', return_bytes( ini_get( 'upload_max_filesize') ) );
|
| 3 |
Plugin Name: Profile Builder
|
| 4 |
Plugin URI: http://www.cozmoslabs.com/2011/04/12/wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/
|
| 5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
|
| 6 |
+
Version: 1.1.31
|
| 7 |
Author: Reflection Media, Barina Gabriel
|
| 8 |
Author URI: http://www.reflectionmedia.ro
|
| 9 |
License: GPL2
|
| 54 |
}
|
| 55 |
|
| 56 |
|
| 57 |
+
define( 'PROFILE_BUILDER_VERSION', '1.1.31' );
|
| 58 |
define( 'WPPB_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
|
| 59 |
define( 'WPPB_PLUGIN_URL', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) );
|
| 60 |
define( 'WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', return_bytes( ini_get( 'upload_max_filesize') ) );
|
readme.txt
CHANGED
|
@@ -7,7 +7,7 @@ custom registration, custom registration form, custom registration page, extra u
|
|
| 7 |
front-end register, front-end registration, frontend edit profile, edit profile
|
| 8 |
Requires at least: 3.1
|
| 9 |
Tested up to: 3.4.1
|
| 10 |
-
Stable tag: 1.1.
|
| 11 |
|
| 12 |
Simple to use profile plugin allowing front-end login, registration and edit profile by using shortcodes.
|
| 13 |
|
|
@@ -89,6 +89,9 @@ This plugin only adds/removes fields in the front-end. The default information-f
|
|
| 89 |
7. Logged in Page: screenshot7.jpg
|
| 90 |
|
| 91 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 92 |
= 1.1.30 =
|
| 93 |
Minor changes to the plugin.
|
| 94 |
|
| 7 |
front-end register, front-end registration, frontend edit profile, edit profile
|
| 8 |
Requires at least: 3.1
|
| 9 |
Tested up to: 3.4.1
|
| 10 |
+
Stable tag: 1.1.31
|
| 11 |
|
| 12 |
Simple to use profile plugin allowing front-end login, registration and edit profile by using shortcodes.
|
| 13 |
|
| 89 |
7. Logged in Page: screenshot7.jpg
|
| 90 |
|
| 91 |
== Changelog ==
|
| 92 |
+
= 1.1.31 =
|
| 93 |
+
Minor updates to the plugin files.
|
| 94 |
+
|
| 95 |
= 1.1.30 =
|
| 96 |
Minor changes to the plugin.
|
| 97 |
|
