User registration & user profile – Profile Builder - Version 2.3.3

Version Description

  • Added more fields to be available in wpml string translations: labels, default value and default content
  • Made css modifications so that Checkbox, Radio and Select fields align properly in Twenty Sixteen theme
  • Fixed different notices and warnings that appeared in certain cases
Download this release

Release Info

Developer madalin.ungureanu
Plugin Icon 128x128 User registration & user profile – Profile Builder
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

admin/manage-fields.php CHANGED
@@ -894,16 +894,22 @@ function wppb_wpml_compat_with_fields( $oldvalue, $_newvalue ){
894
 
895
  if ( is_array( $_newvalue ) ){
896
  foreach ( $_newvalue as $field ){
897
- $field_title = $field['field-title'];
898
- $field_description = $field['description'];
899
  if ( in_array($field['field'], $default_fields) ){
900
  $prefix = 'default_field_';
901
  } else {
902
  $prefix = 'custom_field_';
903
  }
904
  if (function_exists('icl_register_string')){
905
- icl_register_string('plugin profile-builder-pro', $prefix . $field['id'].'_title_translation' , $field_title);
906
- icl_register_string('plugin profile-builder-pro', $prefix . $field['id'].'_description_translation', $field_description);
 
 
 
 
 
 
 
 
907
  }
908
  }
909
  }
894
 
895
  if ( is_array( $_newvalue ) ){
896
  foreach ( $_newvalue as $field ){
 
 
897
  if ( in_array($field['field'], $default_fields) ){
898
  $prefix = 'default_field_';
899
  } else {
900
  $prefix = 'custom_field_';
901
  }
902
  if (function_exists('icl_register_string')){
903
+ if( !empty( $field['field-title'] ) )
904
+ icl_register_string('plugin profile-builder-pro', $prefix . $field['id'].'_title_translation' , $field['field-title'] );
905
+ if( !empty( $field['description'] ) )
906
+ icl_register_string('plugin profile-builder-pro', $prefix . $field['id'].'_description_translation', $field['description'] );
907
+ if( !empty( $field['labels'] ) )
908
+ icl_register_string('plugin profile-builder-pro', $prefix . $field['id'].'_labels_translation', $field['labels'] );
909
+ if( !empty( $field['default-value'] ) )
910
+ icl_register_string('plugin profile-builder-pro', $prefix . $field['id'].'_default_value_translation', $field['default-value'] );
911
+ if( !empty( $field['default-content'] ) )
912
+ icl_register_string('plugin profile-builder-pro', $prefix . $field['id'].'_default_content_translation', $field['default-content'] );
913
  }
914
  }
915
  }
assets/css/style-front-end.css CHANGED
@@ -144,6 +144,10 @@
144
  padding-bottom:14px;
145
  }
146
 
 
 
 
 
147
  .wppb-form-field label,
148
  #wppb-login-wrap .login-username label,
149
  #wppb-login-wrap .login-password label{
144
  padding-bottom:14px;
145
  }
146
 
147
+ .wppb-user-forms .wppb-form-field > ul {
148
+ margin-left: 0;
149
+ }
150
+
151
  .wppb-form-field label,
152
  #wppb-login-wrap .login-username label,
153
  #wppb-login-wrap .login-password label{
features/functions.php CHANGED
@@ -463,7 +463,7 @@ if ( is_admin() ){
463
  }
464
 
465
  $wppb_generalSettings = get_option( 'wppb_general_settings' );
466
- if ( $wppb_generalSettings['emailConfirmation'] == 'yes' ) {
467
  if( is_multisite() )
468
  add_action( 'wpmu_delete_user', 'wppb_delete_user_from_signups_table' );
469
  else
463
  }
464
 
465
  $wppb_generalSettings = get_option( 'wppb_general_settings' );
466
+ if ( !empty( $wppb_generalSettings['emailConfirmation'] ) && ( $wppb_generalSettings['emailConfirmation'] == 'yes' ) ) {
467
  if( is_multisite() )
468
  add_action( 'wpmu_delete_user', 'wppb_delete_user_from_signups_table' );
469
  else
front-end/class-formbuilder.php CHANGED
@@ -501,7 +501,9 @@ class Profile_Builder_Form_Creator{
501
  if( ! isset( $userdata['role'] ) ) {
502
  $userdata['role'] = $this->args['role'];
503
  } else {
504
- $this->args['redirect_url'] = wppb_custom_redirect_url( 'after_registration', $this->args['redirect_url'], $userdata["user_login"], $userdata['role'] );
 
 
505
  }
506
 
507
  $userdata['user_pass'] = wp_hash_password( $userdata['user_pass'] );
@@ -518,7 +520,9 @@ class Profile_Builder_Form_Creator{
518
  if( ! isset( $userdata['role'] ) ) {
519
  $userdata['role'] = $this->args['role'];
520
  } else {
521
- $this->args['redirect_url'] = wppb_custom_redirect_url( 'after_registration', $this->args['redirect_url'], $userdata["user_login"], $userdata['role'] );
 
 
522
  }
523
 
524
  $userdata = wp_unslash( $userdata );
501
  if( ! isset( $userdata['role'] ) ) {
502
  $userdata['role'] = $this->args['role'];
503
  } else {
504
+ if( isset( $wppb_module_settings['wppb_customRedirect'] ) && $wppb_module_settings['wppb_customRedirect'] == 'show' && function_exists( 'wppb_custom_redirect_url' ) ) {
505
+ $this->args['redirect_url'] = wppb_custom_redirect_url( 'after_registration', $this->args['redirect_url'], $userdata["user_login"], $userdata['role'] );
506
+ }
507
  }
508
 
509
  $userdata['user_pass'] = wp_hash_password( $userdata['user_pass'] );
520
  if( ! isset( $userdata['role'] ) ) {
521
  $userdata['role'] = $this->args['role'];
522
  } else {
523
+ if( isset( $wppb_module_settings['wppb_customRedirect'] ) && $wppb_module_settings['wppb_customRedirect'] == 'show' && function_exists( 'wppb_custom_redirect_url' ) ) {
524
+ $this->args['redirect_url'] = wppb_custom_redirect_url( 'after_registration', $this->args['redirect_url'], $userdata["user_login"], $userdata['role'] );
525
+ }
526
  }
527
 
528
  $userdata = wp_unslash( $userdata );
front-end/register.php CHANGED
@@ -20,7 +20,8 @@ function wppb_signup_password_random_password_filter( $password ) {
20
  //check for password in signup meta
21
  $meta = unserialize( $signup->meta );
22
 
23
- $password = $meta['user_pass'];
 
24
  }
25
  }
26
 
20
  //check for password in signup meta
21
  $meta = unserialize( $signup->meta );
22
 
23
+ if ( !empty($meta['user_pass']) )
24
+ $password = $meta['user_pass'];
25
  }
26
  }
27
 
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Profile Builder
4
  Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
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: 2.3.2
7
  Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
8
  Author URI: http://www.cozmoslabs.com/
9
  License: GPL2
@@ -73,7 +73,7 @@ function wppb_free_plugin_init() {
73
  *
74
  *
75
  */
76
- define('PROFILE_BUILDER_VERSION', '2.3.2' );
77
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
78
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
79
  define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
3
  Plugin Name: Profile Builder
4
  Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
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: 2.3.3
7
  Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
8
  Author URI: http://www.cozmoslabs.com/
9
  License: GPL2
73
  *
74
  *
75
  */
76
+ define('PROFILE_BUILDER_VERSION', '2.3.3' );
77
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
78
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
79
  define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: registration, user profile, user registration, custom field registration,
5
 
6
  Requires at least: 3.1
7
  Tested up to: 4.4.2
8
- Stable tag: 2.3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -145,6 +145,11 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
145
  10. Profile Builder Login Widget
146
 
147
  == Changelog ==
 
 
 
 
 
148
  = 2.3.2 =
149
  * When upgrading from an older version than 2.2.6 on a Multisite install Email Confirmation is set to yes automatically now
150
  * Fixed notice undefined variable from wppb_mail when using filter to not send email
5
 
6
  Requires at least: 3.1
7
  Tested up to: 4.4.2
8
+ Stable tag: 2.3.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
145
  10. Profile Builder Login Widget
146
 
147
  == Changelog ==
148
+ = 2.3.3 =
149
+ * Added more fields to be available in wpml string translations: labels, default value and default content
150
+ * Made css modifications so that Checkbox, Radio and Select fields align properly in Twenty Sixteen theme
151
+ * Fixed different notices and warnings that appeared in certain cases
152
+
153
  = 2.3.2 =
154
  * When upgrading from an older version than 2.2.6 on a Multisite install Email Confirmation is set to yes automatically now
155
  * Fixed notice undefined variable from wppb_mail when using filter to not send email