User registration & user profile – Profile Builder - Version 3.1.2

Version Description

  • We now make sure you cant use a meta-name for a field that is a reserved query var in WP. which would result in an unexpected behaviour
  • Fixed a potential php error regarding a filter
  • We now scroll to the top of a success form submit through js and not through anchor
  • Fixed a conflict with reCAPTCHA and Paid Member Subscriptions
Download this release

Release Info

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

Code changes from version 3.1.1 to 3.1.2

admin/admin-functions.php CHANGED
@@ -314,3 +314,49 @@ function wppb_create_form_pages(){
314
  function wppb_prepare_wck_labels( $label ){
315
  return trim( str_replace( '%', '%', $label ) );
316
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
314
  function wppb_prepare_wck_labels( $label ){
315
  return trim( str_replace( '%', '%', $label ) );
316
  }
317
+
318
+ /**
319
+ * Function that returns the reserved meta name list
320
+ */
321
+ function wppb_get_reserved_meta_name_list( $all_fields, $posted_values ){
322
+
323
+ $unique_meta_name_list = array( 'first_name', 'last_name', 'nickname', 'description' );
324
+
325
+ // Default contact methods were removed in WP 3.6. A filter dictates contact methods.
326
+ if ( apply_filters( 'wppb_remove_default_contact_methods', get_site_option( 'initial_db_version' ) < 23588 ) ){
327
+ $unique_meta_name_list[] = 'aim';
328
+ $unique_meta_name_list[] = 'yim';
329
+ $unique_meta_name_list[] = 'jabber';
330
+ }
331
+
332
+ $add_reserved = true;
333
+
334
+ $reserved_meta_names = array( 'attachment', 'attachment_id', 'author', 'author_name', 'calendar', 'cat', 'category', 'category__and', 'category__in', 'category__not_in', 'category_name', 'comments_per_page',
335
+ 'comments_popup', 'custom', 'customize_messenger_channel', 'customized', 'cpage', 'day', 'debug', 'embed', 'error', 'exact', 'feed', 'hour', 'link_category', 'm', 'minute', 'monthnum', 'more',
336
+ 'name', 'nav_menu', 'nonce', 'nopaging', 'offset', 'order', 'orderby', 'p', 'page', 'page_id', 'paged', 'pagename', 'pb', 'perm', 'post', 'post__in', 'post__not_in', 'post_format', 'post_mime_type',
337
+ 'post_status', 'post_tag', 'post_type', 'posts', 'posts_per_archive_page', 'posts_per_page', 'preview', 'robots', 's', 'search', 'second', 'sentence', 'showposts', 'static', 'status', 'subpost',
338
+ 'subpost_id', 'tag', 'tag__and', 'tag__in', 'tag__not_in', 'tag_id', 'tag_slug__and', 'tag_slug__in', 'taxonomy', 'tb', 'term', 'terms', 'theme', 'title', 'type', 'w', 'withcomments', 'withoutcomments', 'year' );
339
+
340
+ $args = array(
341
+ 'public' => true,
342
+ '_builtin' => true
343
+ );
344
+ $post_types = get_post_types( $args, 'names', 'or' );
345
+ $taxonomies = get_taxonomies( $args, 'names', 'or' );
346
+
347
+
348
+ /*reserved meta names were added in PB 3.1.2 so to avoid the situation where someone updates an already existing field
349
+ with a reserved name and gets an error check if it is an update or new field */
350
+ if( !empty( $all_fields ) && !empty($posted_values['id'] ) && !empty($posted_values['meta-name']) ){
351
+ foreach( $all_fields as $field ){
352
+ if( $field['id'] === $posted_values['id'] && $field['meta-name'] === $posted_values['meta-name'] ){//it is an update
353
+ $add_reserved = false;
354
+ }
355
+ }
356
+ }
357
+
358
+ if( $add_reserved )
359
+ $unique_meta_name_list = array_merge( $unique_meta_name_list, $reserved_meta_names, $post_types, $taxonomies );
360
+
361
+ return apply_filters ( 'wppb_unique_meta_name_list', $unique_meta_name_list );
362
+ }
admin/general-settings.php CHANGED
@@ -79,7 +79,7 @@ add_action( 'admin_menu', 'wppb_register_general_settings_submenu_page', 3 );
79
 
80
 
81
  function wppb_generate_default_settings_defaults(){
82
- add_option( 'wppb_general_settings', array( 'extraFieldsLayout' => 'default', 'emailConfirmation' => 'no', 'activationLandingPage' => '', 'adminApproval' => 'no', 'loginWith' => 'usernameemail', 'rolesEditor' => 'no' ) );
83
  }
84
 
85
 
@@ -285,6 +285,22 @@ function wppb_general_settings_content() {
285
  </select>
286
  </td>
287
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
 
289
  <?php do_action( 'wppb_extra_general_settings', $wppb_generalSettings ); ?>
290
  </table>
79
 
80
 
81
  function wppb_generate_default_settings_defaults(){
82
+ add_option( 'wppb_general_settings', array( 'extraFieldsLayout' => 'default', 'emailConfirmation' => 'no', 'activationLandingPage' => '', 'adminApproval' => 'no', 'loginWith' => 'usernameemail', 'rolesEditor' => 'no', 'conditional_fields_ajax' => 'no' ) );
83
  }
84
 
85
 
285
  </select>
286
  </td>
287
  </tr>
288
+ <?php if( wppb_conditional_fields_exists() && apply_filters( 'wppb_allow_conditional_fields_ajax', false ) ): ?>
289
+ <tr>
290
+ <th scope="row">
291
+ <?php _e( 'Use ajax on conditional fields:', 'profile-builder' );?>
292
+ </th>
293
+ <td>
294
+ <select name="wppb_general_settings[conditional_fields_ajax]" class="wppb-select" id="wppb_settings_conditional_fields_ajax" onchange="wppb_display_page_select(this.value)">
295
+ <option value="no" <?php if ( $wppb_generalSettings['conditional_fields_ajax'] === 'no' ) echo 'selected'; ?>><?php _e( 'No', 'profile-builder' ); ?></option>
296
+ <option value="yes" <?php if ( $wppb_generalSettings['conditional_fields_ajax'] === 'yes' ) echo 'selected'; ?>><?php _e( 'Yes', 'profile-builder' ); ?></option>
297
+ </select>
298
+ <ul>
299
+ <li class="description"><?php _e( 'For large conditional forms select "Yes" for an improved page performance', 'profile-builder' ); ?> </li>
300
+ </ul>
301
+ </td>
302
+ </tr>
303
+ <?php endif; ?>
304
 
305
  <?php do_action( 'wppb_extra_general_settings', $wppb_generalSettings ); ?>
306
  </table>
admin/manage-fields.php CHANGED
@@ -1164,7 +1164,7 @@ function wppb_check_field_on_edit_add( $message, $fields, $required_fields, $met
1164
  $skip_check_for_fields = apply_filters ( 'wppb_skip_check_for_fields', $skip_check_for_fields );
1165
 
1166
  if ( !in_array( trim( $posted_values['field'] ), $skip_check_for_fields ) ){
1167
- $unique_meta_name_list = array( 'first_name', 'last_name', 'nickname', 'description' );
1168
 
1169
  //check to see if meta-name is empty
1170
  $skip_empty_check_for_fields = array( 'Heading', 'Select (User Role)', 'reCAPTCHA', 'HTML', 'GDPR Delete Button' );
@@ -1173,16 +1173,10 @@ function wppb_check_field_on_edit_add( $message, $fields, $required_fields, $met
1173
  $message .= __( "The meta-name cannot be empty\n", 'profile-builder' );
1174
  }
1175
 
1176
- // Default contact methods were removed in WP 3.6. A filter dictates contact methods.
1177
- if ( apply_filters( 'wppb_remove_default_contact_methods', get_site_option( 'initial_db_version' ) < 23588 ) ){
1178
- $unique_meta_name_list[] = 'aim';
1179
- $unique_meta_name_list[] = 'yim';
1180
- $unique_meta_name_list[] = 'jabber';
1181
- }
1182
 
1183
  // if the desired meta-name is one of the following, automatically give an error
1184
- if ( in_array( trim( $posted_values['meta-name'] ), apply_filters ( 'wppb_unique_meta_name_list', $unique_meta_name_list ) ) )
1185
- $message .= __( "That meta-name is already in use\n", 'profile-builder' );
1186
 
1187
  else{
1188
  $found_in_custom_fields = false;
1164
  $skip_check_for_fields = apply_filters ( 'wppb_skip_check_for_fields', $skip_check_for_fields );
1165
 
1166
  if ( !in_array( trim( $posted_values['field'] ), $skip_check_for_fields ) ){
1167
+ $reserved_meta_name_list = wppb_get_reserved_meta_name_list( $all_fields, $posted_values );
1168
 
1169
  //check to see if meta-name is empty
1170
  $skip_empty_check_for_fields = array( 'Heading', 'Select (User Role)', 'reCAPTCHA', 'HTML', 'GDPR Delete Button' );
1173
  $message .= __( "The meta-name cannot be empty\n", 'profile-builder' );
1174
  }
1175
 
 
 
 
 
 
 
1176
 
1177
  // if the desired meta-name is one of the following, automatically give an error
1178
+ if ( in_array( trim( $posted_values['meta-name'] ), $reserved_meta_name_list ) )
1179
+ $message .= __( "That meta-name can't be used, please choose another\n", 'profile-builder' );
1180
 
1181
  else{
1182
  $found_in_custom_fields = false;
assets/js/script-front-end.js CHANGED
@@ -1,9 +1,16 @@
1
  jQuery(document).ready(function(){
2
- jQuery('#wppb-register-user').submit(function (e) {
3
- //stop submitting the form to see the disabled button effect
4
- e.preventDefault();
5
- //disable the submit button
6
- jQuery('.form-submit #register').attr('disabled', true);
7
- this.submit();
8
- });
 
 
 
 
 
 
 
9
  });
1
  jQuery(document).ready(function(){
2
+ if( jQuery("#wppb-register-user").length ) {
3
+ jQuery('#wppb-register-user').submit(function (e) {
4
+ //stop submitting the form to see the disabled button effect
5
+ e.preventDefault();
6
+ //disable the submit button
7
+ jQuery('.form-submit #register').attr('disabled', true);
8
+ this.submit();
9
+ });
10
+ }
11
+
12
+ //scroll to top on success message
13
+ if( jQuery("#wppb_form_general_message").length ){
14
+ jQuery([document.documentElement, document.body]).animate({ scrollTop: jQuery("#wppb_form_general_message").offset().top }, 500);
15
+ }
16
  });
features/functions.php CHANGED
@@ -110,6 +110,13 @@ if ( is_admin() ){
110
  add_action( 'edit_user_profile_update', 'save_profile_extra_fields_in_admin', 10 );
111
  }
112
 
 
 
 
 
 
 
 
113
  }else if ( !is_admin() ){
114
  // include the stylesheet
115
  add_action( 'wp_print_styles', 'wppb_add_plugin_stylesheet' );
@@ -892,7 +899,7 @@ function wppb_add_gmt_offset( $timestamp ) {
892
  * @param array $field Field description.
893
  * @return string $extra_attributes
894
  */
895
- function wppb_add_html_tag_required_to_fields( $extra_attributes, $field, $form_location ) {
896
  if ( $field['field'] != "Checkbox" && isset( $field['required'] ) && $field['required'] == 'Yes' ){
897
  if( !( ( $field['field'] == "Default - Password" || $field['field'] == "Default - Repeat Password" ) && $form_location == 'edit_profile' ) )
898
  $extra_attributes .= ' required ';
@@ -1394,4 +1401,15 @@ function wppb_get_admin_approval_option_value(){
1394
  return 'yes';
1395
  else
1396
  return 'no';
 
 
 
 
 
 
 
 
 
 
 
1397
  }
110
  add_action( 'edit_user_profile_update', 'save_profile_extra_fields_in_admin', 10 );
111
  }
112
 
113
+ /* we need to include the fields here for conditional fields when they run through ajax, the extra-fields were already included above for backend forms */
114
+ $wppb_generalSettings = get_option( 'wppb_general_settings' );
115
+ if( wp_doing_ajax() && wppb_conditional_fields_exists() && isset( $wppb_generalSettings['conditional_fields_ajax'] ) && $wppb_generalSettings['conditional_fields_ajax'] === 'yes' ) {
116
+ if (file_exists(WPPB_PLUGIN_DIR . '/front-end/default-fields/default-fields.php'))
117
+ require_once(WPPB_PLUGIN_DIR . '/front-end/default-fields/default-fields.php');
118
+ }
119
+
120
  }else if ( !is_admin() ){
121
  // include the stylesheet
122
  add_action( 'wp_print_styles', 'wppb_add_plugin_stylesheet' );
899
  * @param array $field Field description.
900
  * @return string $extra_attributes
901
  */
902
+ function wppb_add_html_tag_required_to_fields( $extra_attributes, $field, $form_location = '' ) {
903
  if ( $field['field'] != "Checkbox" && isset( $field['required'] ) && $field['required'] == 'Yes' ){
904
  if( !( ( $field['field'] == "Default - Password" || $field['field'] == "Default - Repeat Password" ) && $form_location == 'edit_profile' ) )
905
  $extra_attributes .= ' required ';
1401
  return 'yes';
1402
  else
1403
  return 'no';
1404
+ }
1405
+
1406
+ /**
1407
+ * Function that checks if conditional fields feature exists
1408
+ * @return bool
1409
+ */
1410
+ function wppb_conditional_fields_exists(){
1411
+ if (file_exists(WPPB_PLUGIN_DIR . '/features/conditional-fields/conditional-fields.php'))
1412
+ return true;
1413
+ else
1414
+ return false;
1415
  }
front-end/class-formbuilder.php CHANGED
@@ -52,6 +52,9 @@ class Profile_Builder_Form_Creator{
52
 
53
  if( ( !is_multisite() && current_user_can( 'edit_users' ) ) || ( is_multisite() && current_user_can( 'manage_network' ) ) )
54
  add_action( 'wppb_before_edit_profile_fields', array( 'Profile_Builder_Form_Creator', 'wppb_edit_profile_select_user_to_edit' ) );
 
 
 
55
  }
56
 
57
  /**
@@ -406,7 +409,7 @@ class Profile_Builder_Form_Creator{
406
  $wppb_form_class .= $wppb_user_role_class;
407
 
408
  ?>
409
- <form enctype="multipart/form-data" method="post" id="<?php echo apply_filters( 'wppb_form_id', $wppb_form_id, $this ); ?>" class="<?php echo apply_filters( 'wppb_form_class', $wppb_form_class, $this ); ?>" action="<?php echo esc_url( apply_filters( 'wppb_form_action', wppb_curpageurl()."#wppb_form_general_message" ) ); ?>">
410
  <?php
411
  do_action( 'wppb_form_args_before_output', $this->args );
412
 
@@ -433,6 +436,7 @@ class Profile_Builder_Form_Creator{
433
  <?php do_action( 'wppb_form_after_submit_button', $this->args ); ?>
434
  <input name="action" type="hidden" id="action" value="<?php echo $this->args['form_type']; ?>" />
435
  <input name="form_name" type="hidden" id="form_name" value="<?php echo $this->args['form_name']; ?>" />
 
436
  <?php
437
  $wppb_module_settings = get_option( 'wppb_module_settings' );
438
 
@@ -460,6 +464,7 @@ class Profile_Builder_Form_Creator{
460
  }
461
 
462
  function wppb_output_form_fields( $global_request, $field_check_errors, $form_fields, $called_from = NULL ){
 
463
  $output_fields = '';
464
 
465
  if( !empty( $form_fields ) ){
@@ -475,8 +480,19 @@ class Profile_Builder_Form_Creator{
475
 
476
  $css_class = apply_filters( 'wppb_field_css_class', 'wppb-form-field wppb-'. Wordpress_Creation_Kit_PB::wck_generate_slug( $field['field'] ) .$error_var, $field, $error_var );
477
  $output_fields .= apply_filters( 'wppb_output_before_form_field', '<li class="'. $css_class .'" id="wppb-form-element-'. $field['id'] .'">', $field, $error_var, $this->args['role'] );
478
- $output_fields .= apply_filters( 'wppb_output_form_field_'.Wordpress_Creation_Kit_PB::wck_generate_slug( $field['field'] ), '', $this->args['form_type'], $field, $this->wppb_get_desired_user_id(), $field_check_errors, $global_request, $this->args['role'], $this );
479
- $output_fields .= apply_filters( 'wppb_output_specific_error_message', $specific_message );
 
 
 
 
 
 
 
 
 
 
 
480
  $output_fields .= apply_filters( 'wppb_output_after_form_field', '</li>', $field, $this->args['ID'], $this->args['form_type'], $called_from );
481
  }
482
 
@@ -502,7 +518,7 @@ class Profile_Builder_Form_Creator{
502
 
503
  function wppb_test_required_form_values( $global_request ){
504
  $output_field_errors = array();
505
- $form_fields = apply_filters( 'wppb_form_fields', $this->args['form_fields'], array( 'global_request' => $global_request, 'context' => 'validate_frontend', 'global_request' => $global_request, 'form_type' => $this->args['form_type'], 'role' => $this->args['role'], 'user_id' => $this->wppb_get_desired_user_id() ) );
506
  if( !empty( $form_fields ) ){
507
  foreach( $form_fields as $field ){
508
  $error_for_field = apply_filters( 'wppb_check_form_field_'.Wordpress_Creation_Kit_PB::wck_generate_slug( $field['field'] ), '', $field, $global_request, $this->args['form_type'], $this->args['role'], $this->wppb_get_desired_user_id() );
@@ -710,6 +726,11 @@ class Profile_Builder_Form_Creator{
710
  }
711
  }
712
 
 
 
 
 
 
713
  /**
714
  * Handle toString method
715
  *
52
 
53
  if( ( !is_multisite() && current_user_can( 'edit_users' ) ) || ( is_multisite() && current_user_can( 'manage_network' ) ) )
54
  add_action( 'wppb_before_edit_profile_fields', array( 'Profile_Builder_Form_Creator', 'wppb_edit_profile_select_user_to_edit' ) );
55
+
56
+ //enqueue frontend scripts for forms
57
+ add_action( 'wp_footer', array( $this, 'wppb_frontend_scripts' ), 9999 );
58
  }
59
 
60
  /**
409
  $wppb_form_class .= $wppb_user_role_class;
410
 
411
  ?>
412
+ <form enctype="multipart/form-data" method="post" id="<?php echo apply_filters( 'wppb_form_id', $wppb_form_id, $this ); ?>" class="<?php echo apply_filters( 'wppb_form_class', $wppb_form_class, $this ); ?>" action="<?php echo esc_url( apply_filters( 'wppb_form_action', wppb_curpageurl() ) ); ?>">
413
  <?php
414
  do_action( 'wppb_form_args_before_output', $this->args );
415
 
436
  <?php do_action( 'wppb_form_after_submit_button', $this->args ); ?>
437
  <input name="action" type="hidden" id="action" value="<?php echo $this->args['form_type']; ?>" />
438
  <input name="form_name" type="hidden" id="form_name" value="<?php echo $this->args['form_name']; ?>" />
439
+ <input name="form_id" type="hidden" id="form_id" value="<?php echo $this->args['ID']; ?>" />
440
  <?php
441
  $wppb_module_settings = get_option( 'wppb_module_settings' );
442
 
464
  }
465
 
466
  function wppb_output_form_fields( $global_request, $field_check_errors, $form_fields, $called_from = NULL ){
467
+ $wppb_generalSettings = get_option( 'wppb_general_settings' );
468
  $output_fields = '';
469
 
470
  if( !empty( $form_fields ) ){
480
 
481
  $css_class = apply_filters( 'wppb_field_css_class', 'wppb-form-field wppb-'. Wordpress_Creation_Kit_PB::wck_generate_slug( $field['field'] ) .$error_var, $field, $error_var );
482
  $output_fields .= apply_filters( 'wppb_output_before_form_field', '<li class="'. $css_class .'" id="wppb-form-element-'. $field['id'] .'">', $field, $error_var, $this->args['role'] );
483
+
484
+ $render_field = true;
485
+ if( wppb_conditional_fields_exists() && isset( $wppb_generalSettings['conditional_fields_ajax'] ) ){
486
+ if($wppb_generalSettings['conditional_fields_ajax'] === 'yes' && isset($field['conditional-logic-enabled']) && $field['conditional-logic-enabled'] === 'yes') {
487
+ $render_field = false;
488
+ }
489
+ }
490
+
491
+ if( $render_field ){
492
+ $output_fields .= apply_filters('wppb_output_form_field_' . Wordpress_Creation_Kit_PB::wck_generate_slug($field['field']), '', $this->args['form_type'], $field, $this->wppb_get_desired_user_id(), $field_check_errors, $global_request, $this->args['role'], $this);
493
+ $output_fields .= apply_filters('wppb_output_specific_error_message', $specific_message);
494
+ }
495
+
496
  $output_fields .= apply_filters( 'wppb_output_after_form_field', '</li>', $field, $this->args['ID'], $this->args['form_type'], $called_from );
497
  }
498
 
518
 
519
  function wppb_test_required_form_values( $global_request ){
520
  $output_field_errors = array();
521
+ $form_fields = apply_filters( 'wppb_form_fields', $this->args['form_fields'], array( 'global_request' => $global_request, 'context' => 'validate_frontend', 'form_type' => $this->args['form_type'], 'role' => $this->args['role'], 'user_id' => $this->wppb_get_desired_user_id() ) );
522
  if( !empty( $form_fields ) ){
523
  foreach( $form_fields as $field ){
524
  $error_for_field = apply_filters( 'wppb_check_form_field_'.Wordpress_Creation_Kit_PB::wck_generate_slug( $field['field'] ), '', $field, $global_request, $this->args['form_type'], $this->args['role'], $this->wppb_get_desired_user_id() );
726
  }
727
  }
728
 
729
+ function wppb_frontend_scripts(){
730
+ wp_enqueue_script( 'wppb_front_end_script', WPPB_PLUGIN_URL.'assets/js/script-front-end.js', array('jquery'), PROFILE_BUILDER_VERSION, true );
731
+ wp_print_scripts( 'wppb_front_end_script' );
732
+ }
733
+
734
  /**
735
  * Handle toString method
736
  *
front-end/default-fields/recaptcha/recaptcha.php CHANGED
@@ -399,6 +399,10 @@ add_filter('wppb_recover_password_sent_message1', 'wppb_recaptcha_recover_passwo
399
 
400
  /* Display reCAPTCHA html on PB Login form */
401
  function wppb_display_recaptcha_login_form($form_part, $args) {
 
 
 
 
402
  $field = wppb_get_recaptcha_field();
403
 
404
  if ( !empty($field) ) {
@@ -454,7 +458,7 @@ add_action( 'login_form', 'wppb_display_recaptcha_wp_login_form' );
454
  //Show reCAPTCHA error on Login form (both default and PB one)
455
  function wppb_recaptcha_login_wp_error_message($user){
456
  //make sure you're on a Login form (WP or PB)
457
- if ( (isset($_POST['wp-submit'])) && (!is_wp_error($user)) ) {
458
 
459
  $field = wppb_get_recaptcha_field();
460
  if ( !empty($field) ){
399
 
400
  /* Display reCAPTCHA html on PB Login form */
401
  function wppb_display_recaptcha_login_form($form_part, $args) {
402
+
403
+ if( !isset( $args['form_id'] ) || $args['form_id'] != 'wppb-loginform' )
404
+ return $form_part;
405
+
406
  $field = wppb_get_recaptcha_field();
407
 
408
  if ( !empty($field) ) {
458
  //Show reCAPTCHA error on Login form (both default and PB one)
459
  function wppb_recaptcha_login_wp_error_message($user){
460
  //make sure you're on a Login form (WP or PB)
461
+ if ( isset( $_POST['wp-submit'] ) && !is_wp_error($user) && !isset( $_POST['pms_login'] ) ) {
462
 
463
  $field = wppb_get_recaptcha_field();
464
  if ( !empty($field) ){
front-end/login.php CHANGED
@@ -101,7 +101,7 @@ function wppb_login_form( $args = array() ) {
101
  'echo' => true,
102
  // Default 'redirect' value takes the user back to the request URI.
103
  'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],
104
- 'form_id' => 'loginform',
105
  'label_username' => __( 'Username or Email Address' ),
106
  'label_password' => __( 'Password' ),
107
  'label_remember' => __( 'Remember Me' ),
@@ -437,13 +437,13 @@ function wppb_front_end_login( $atts ){
437
  }else{
438
  $user_ID = get_current_user_id();
439
  $wppb_user = get_userdata( $user_ID );
440
-
441
  if( isset( $wppb_generalSettings['loginWith'] ) && ( $wppb_generalSettings['loginWith'] == 'email' ) )
442
  $display_name = $wppb_user->user_email;
443
-
444
  elseif($wppb_user->display_name !== '')
445
  $display_name = $wppb_user->user_login;
446
-
447
  else
448
  $display_name = $wppb_user->display_name;
449
 
@@ -467,7 +467,7 @@ function wppb_front_end_login( $atts ){
467
  $logged_in_message .= sprintf(__( 'You are currently logged in as %1$s. %2$s', 'profile-builder' ), $display_name, $logout_url );
468
 
469
  $logged_in_message .= '</p><!-- .wppb-alert-->';
470
-
471
  return apply_filters( 'wppb_login_message', $logged_in_message, $wppb_user->ID, $display_name );
472
  }
473
  }
@@ -484,4 +484,4 @@ function wppb_login_security_check( $user, $password ) {
484
 
485
  return $user;
486
  }
487
- add_filter( 'wp_authenticate_user', 'wppb_login_security_check', 10, 2 );
101
  'echo' => true,
102
  // Default 'redirect' value takes the user back to the request URI.
103
  'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],
104
+ 'form_id' => 'wppb-loginform',
105
  'label_username' => __( 'Username or Email Address' ),
106
  'label_password' => __( 'Password' ),
107
  'label_remember' => __( 'Remember Me' ),
437
  }else{
438
  $user_ID = get_current_user_id();
439
  $wppb_user = get_userdata( $user_ID );
440
+
441
  if( isset( $wppb_generalSettings['loginWith'] ) && ( $wppb_generalSettings['loginWith'] == 'email' ) )
442
  $display_name = $wppb_user->user_email;
443
+
444
  elseif($wppb_user->display_name !== '')
445
  $display_name = $wppb_user->user_login;
446
+
447
  else
448
  $display_name = $wppb_user->display_name;
449
 
467
  $logged_in_message .= sprintf(__( 'You are currently logged in as %1$s. %2$s', 'profile-builder' ), $display_name, $logout_url );
468
 
469
  $logged_in_message .= '</p><!-- .wppb-alert-->';
470
+
471
  return apply_filters( 'wppb_login_message', $logged_in_message, $wppb_user->ID, $display_name );
472
  }
473
  }
484
 
485
  return $user;
486
  }
487
+ add_filter( 'wp_authenticate_user', 'wppb_login_security_check', 10, 2 );
front-end/register.php CHANGED
@@ -166,7 +166,6 @@ function wppb_front_end_register( $atts ){
166
 
167
  // function to choose whether to display the registration page or the validation message
168
  function wppb_front_end_register_handler( $atts ){
169
- wp_enqueue_script( 'wppb_front_end_script', WPPB_PLUGIN_URL.'assets/js/script-front-end.js', array('jquery'), PROFILE_BUILDER_VERSION, true );
170
  return ( isset( $_GET['activation_key'] ) ? wppb_activate_signup ( sanitize_text_field( $_GET['activation_key'] ) ) : wppb_front_end_register( $atts ) );
171
  }
172
 
166
 
167
  // function to choose whether to display the registration page or the validation message
168
  function wppb_front_end_register_handler( $atts ){
 
169
  return ( isset( $_GET['activation_key'] ) ? wppb_activate_signup ( sanitize_text_field( $_GET['activation_key'] ) ) : wppb_front_end_register( $atts ) );
170
  }
171
 
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Profile Builder
4
  Plugin URI: https://www.cozmoslabs.com/wordpress-profile-builder/
5
  Description: Login, registration and edit profile shortcodes for the front-end. Also you can choose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
6
- Version: 3.1.1
7
  Author: Cozmoslabs
8
  Author URI: https://www.cozmoslabs.com/
9
  Text Domain: profile-builder
@@ -63,7 +63,7 @@ function wppb_free_plugin_init() {
63
  *
64
  *
65
  */
66
- define('PROFILE_BUILDER_VERSION', '3.1.1' );
67
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
68
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
69
  define('WPPB_PLUGIN_BASENAME', plugin_basename(__FILE__));
@@ -122,7 +122,7 @@ function wppb_free_plugin_init() {
122
  include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/admin-approval.php');
123
  include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/class-admin-approval.php');
124
  }
125
- if (file_exists(WPPB_PLUGIN_DIR . '/features/conditional-fields/conditional-fields.php')) {
126
  include_once(WPPB_PLUGIN_DIR . '/features/conditional-fields/conditional-fields.php');
127
  }
128
  include_once(WPPB_PLUGIN_DIR . '/features/login-widget/login-widget.php');
3
  Plugin Name: Profile Builder
4
  Plugin URI: https://www.cozmoslabs.com/wordpress-profile-builder/
5
  Description: Login, registration and edit profile shortcodes for the front-end. Also you can choose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
6
+ Version: 3.1.2
7
  Author: Cozmoslabs
8
  Author URI: https://www.cozmoslabs.com/
9
  Text Domain: profile-builder
63
  *
64
  *
65
  */
66
+ define('PROFILE_BUILDER_VERSION', '3.1.2' );
67
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
68
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
69
  define('WPPB_PLUGIN_BASENAME', plugin_basename(__FILE__));
122
  include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/admin-approval.php');
123
  include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/class-admin-approval.php');
124
  }
125
+ if ( wppb_conditional_fields_exists() ) {
126
  include_once(WPPB_PLUGIN_DIR . '/features/conditional-fields/conditional-fields.php');
127
  }
128
  include_once(WPPB_PLUGIN_DIR . '/features/login-widget/login-widget.php');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
4
  Tags: user registration, user profile, user registration form, user fields, extra user fields, edit profile, user custom fields, front-end login, front-end edit profile, front-end user registration, email confirmation, login form, content restriction, restrict content, profile
5
  Requires at least: 3.1
6
  Tested up to: 5.3.2
7
- Stable tag: 3.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -169,6 +169,12 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
169
  12. Role Editor
170
 
171
  == Changelog ==
 
 
 
 
 
 
172
  = 3.1.1 =
173
  * Security update
174
  * Fixed a compatibility issue with PMS and redirect url
4
  Tags: user registration, user profile, user registration form, user fields, extra user fields, edit profile, user custom fields, front-end login, front-end edit profile, front-end user registration, email confirmation, login form, content restriction, restrict content, profile
5
  Requires at least: 3.1
6
  Tested up to: 5.3.2
7
+ Stable tag: 3.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
169
  12. Role Editor
170
 
171
  == Changelog ==
172
+ = 3.1.2 =
173
+ * We now make sure you cant use a meta-name for a field that is a reserved query var in WP. which would result in an unexpected behaviour
174
+ * Fixed a potential php error regarding a filter
175
+ * We now scroll to the top of a success form submit through js and not through anchor
176
+ * Fixed a conflict with reCAPTCHA and Paid Member Subscriptions
177
+
178
  = 3.1.1 =
179
  * Security update
180
  * Fixed a compatibility issue with PMS and redirect url
translation/profile-builder.catalog.php CHANGED
@@ -566,6 +566,8 @@
566
  <?php __("Enter the minimum characters the password should have. Leave empty for no minimum limit", "profile-builder"); ?>
567
  <?php __("Minimum Password Strength:", "profile-builder"); ?>
568
  <?php __("Disabled", "profile-builder"); ?>
 
 
569
  <?php __("Form Fields", "profile-builder"); ?>
570
  <?php __("Manage Form Fields", "profile-builder"); ?>
571
  <?php __("Choose one of the supported field types", "profile-builder"); ?>
@@ -1065,6 +1067,7 @@
1065
  <?php __("The entered value for the Datepicker is not a valid date-format\n", "profile-builder"); ?>
1066
  <?php __("You must enter a value for the date-format\n", "profile-builder"); ?>
1067
  <?php __("The meta-name cannot be empty\n", "profile-builder"); ?>
 
1068
  <?php __("That meta-name is already in use\n", "profile-builder"); ?>
1069
  <?php __("The meta-name can only contain lowercase letters, numbers, _ , - and no spaces.\n", "profile-builder"); ?>
1070
  <?php __("The following option(s) did not coincide with the ones in the options list: %s\n", "profile-builder"); ?>
566
  <?php __("Enter the minimum characters the password should have. Leave empty for no minimum limit", "profile-builder"); ?>
567
  <?php __("Minimum Password Strength:", "profile-builder"); ?>
568
  <?php __("Disabled", "profile-builder"); ?>
569
+ <?php __("Use ajax on conditional fields:", "profile-builder"); ?>
570
+ <?php __("For large conditional forms select \"Yes\" for an improved page performance", "profile-builder"); ?>
571
  <?php __("Form Fields", "profile-builder"); ?>
572
  <?php __("Manage Form Fields", "profile-builder"); ?>
573
  <?php __("Choose one of the supported field types", "profile-builder"); ?>
1067
  <?php __("The entered value for the Datepicker is not a valid date-format\n", "profile-builder"); ?>
1068
  <?php __("You must enter a value for the date-format\n", "profile-builder"); ?>
1069
  <?php __("The meta-name cannot be empty\n", "profile-builder"); ?>
1070
+ <?php __("That meta-name can't be used, please choose another\n", "profile-builder"); ?>
1071
  <?php __("That meta-name is already in use\n", "profile-builder"); ?>
1072
  <?php __("The meta-name can only contain lowercase letters, numbers, _ , - and no spaces.\n", "profile-builder"); ?>
1073
  <?php __("The following option(s) did not coincide with the ones in the options list: %s\n", "profile-builder"); ?>
translation/profile-builder.pot CHANGED
@@ -321,7 +321,7 @@ msgstr ""
321
  msgid "Logout Label"
322
  msgstr ""
323
 
324
- #: ../pb-add-on-custom-profile-menus/index.php:188, ../pb-add-on-custom-profile-menus/wppb-custom-profile-menus.php:16, front-end/class-formbuilder.php:171
325
  msgid "Logout"
326
  msgstr ""
327
 
@@ -369,7 +369,7 @@ msgstr ""
369
  msgid "Edit Profile"
370
  msgstr ""
371
 
372
- #: ../pb-add-on-custom-profile-menus/index.php:308, ../pb-add-on-custom-profile-menus/wppb-custom-profile-menus.php:74, front-end/class-formbuilder.php:426, front-end/login.php:421
373
  msgid "Register"
374
  msgstr ""
375
 
@@ -453,11 +453,11 @@ msgstr ""
453
  msgid "<pre>Title</pre><pre>Type</pre><pre>Meta Name</pre><pre class=\"wppb-mb-head-required\">Required</pre><pre class=\"wppb-mb-head-visibility\"></pre>"
454
  msgstr ""
455
 
456
- #: ../pb-add-on-field-visibility/index.php:234, ../pb-add-on-labels-edit/pble.php:381, admin/manage-fields.php:1313, features/functions.php:805, features/functions.php:812, features/admin-approval/class-admin-approval.php:108, features/roles-editor/roles-editor.php:866, modules/custom-redirects/custom_redirects_admin.php:183, modules/custom-redirects/custom_redirects_admin.php:197, modules/custom-redirects/custom_redirects_admin.php:211, modules/custom-redirects/custom_redirects_admin.php:225, modules/multiple-forms/multiple-forms.php:406
457
  msgid "Edit"
458
  msgstr ""
459
 
460
- #: ../pb-add-on-field-visibility/index.php:234, admin/manage-fields.php:1313, features/functions.php:798, features/functions.php:812, features/admin-approval/class-admin-approval.php:113, features/email-confirmation/class-email-confirmation.php:121, features/email-confirmation/class-email-confirmation.php:218, features/roles-editor/roles-editor.php:179, features/roles-editor/roles-editor.php:884, features/roles-editor/roles-editor.php:893, features/roles-editor/roles-editor.php:904, modules/custom-redirects/custom_redirects_admin.php:183, modules/custom-redirects/custom_redirects_admin.php:197, modules/custom-redirects/custom_redirects_admin.php:211, modules/custom-redirects/custom_redirects_admin.php:225, front-end/default-fields/gdpr-delete/gdpr-delete.php:18
461
  msgid "Delete"
462
  msgstr ""
463
 
@@ -683,11 +683,11 @@ msgstr ""
683
  msgid "Replace labels with placeholders:"
684
  msgstr ""
685
 
686
- #: ../pb-add-on-placeholder-labels/pbpl.php:171, ../pb-add-on-social-connect/index.php:324, admin/general-settings.php:113, admin/general-settings.php:126, admin/general-settings.php:175, admin/general-settings.php:222, admin/private-website.php:60, admin/private-website.php:117, ../pb-add-on-customization-toolbox/includes/views/view-admin.php:18, ../pb-add-on-customization-toolbox/includes/views/view-admin.php:34, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:18, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:66, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:181, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:197, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:217, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:240, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:261, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:132, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:149, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:164, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:184, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:201, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:239, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:260, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:280, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:302, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:16, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:32, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:48, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:64, ../pb-add-on-customization-toolbox/includes/views/view-userlisting.php:53, ../pb-add-on-customization-toolbox/includes/views/view-userlisting.php:75, features/content-restriction/content-restriction.php:88, modules/multiple-forms/edit-profile-forms.php:206, modules/multiple-forms/register-forms.php:229, modules/multiple-forms/register-forms.php:230, modules/user-listing/userlisting.php:2372
687
  msgid "Yes"
688
  msgstr ""
689
 
690
- #: ../pb-add-on-placeholder-labels/pbpl.php:172, ../pb-add-on-social-connect/index.php:325, admin/general-settings.php:127, admin/general-settings.php:176, admin/general-settings.php:221, admin/private-website.php:59, admin/private-website.php:116, features/content-restriction/content-restriction.php:87, modules/multiple-forms/edit-profile-forms.php:206, modules/multiple-forms/register-forms.php:229, modules/multiple-forms/register-forms.php:230
691
  msgid "No"
692
  msgstr ""
693
 
@@ -883,7 +883,7 @@ msgstr ""
883
  msgid "You will be redirected in 5 seconds. If not, click %%."
884
  msgstr ""
885
 
886
- #: ../pb-add-on-social-connect/index.php:392, features/functions.php:1092
887
  msgid "here"
888
  msgstr ""
889
 
@@ -1195,7 +1195,7 @@ msgstr ""
1195
  msgid "Click to edit"
1196
  msgstr ""
1197
 
1198
- #: ../pb-add-on-campaign-monitor-integration/admin/cmonitor-page.php:451, ../pb-add-on-mailchimp-integration/admin/mailchimp-page.php:171, features/functions.php:791, ../pb-add-on-labels-edit/assets/lib/wck-api/wordpress-creation-kit.php:403, assets/lib/wck-api/wordpress-creation-kit.php:406
1199
  msgid "Cancel"
1200
  msgstr ""
1201
 
@@ -1705,7 +1705,7 @@ msgstr ""
1705
  msgid "Not compatible with Profile Builder"
1706
  msgstr ""
1707
 
1708
- #: admin/add-ons.php:328, front-end/class-formbuilder.php:429
1709
  msgid "Update"
1710
  msgstr ""
1711
 
@@ -1769,15 +1769,15 @@ msgstr ""
1769
  msgid "Very weak"
1770
  msgstr ""
1771
 
1772
- #: admin/admin-functions.php:137, admin/general-settings.php:282, features/functions.php:625, features/functions.php:649
1773
  msgid "Weak"
1774
  msgstr ""
1775
 
1776
- #: admin/admin-functions.php:137, admin/general-settings.php:283, features/functions.php:625, features/functions.php:649
1777
  msgid "Medium"
1778
  msgstr ""
1779
 
1780
- #: admin/admin-functions.php:137, admin/general-settings.php:284, features/functions.php:625, features/functions.php:649
1781
  msgid "Strong"
1782
  msgstr ""
1783
 
@@ -2289,6 +2289,14 @@ msgstr ""
2289
  msgid "Disabled"
2290
  msgstr ""
2291
 
 
 
 
 
 
 
 
 
2292
  #: admin/manage-fields.php:17
2293
  msgid "Form Fields"
2294
  msgstr ""
@@ -4241,7 +4249,7 @@ msgstr ""
4241
  msgid "Zimbabwe Dollar"
4242
  msgstr ""
4243
 
4244
- #: admin/manage-fields.php:1097, admin/manage-fields.php:1255
4245
  msgid ""
4246
  "You must select a field\n"
4247
  ""
@@ -4307,59 +4315,65 @@ msgid ""
4307
  ""
4308
  msgstr ""
4309
 
4310
- #: admin/manage-fields.php:1185, admin/manage-fields.php:1193, admin/manage-fields.php:1204
 
 
 
 
 
 
4311
  msgid ""
4312
  "That meta-name is already in use\n"
4313
  ""
4314
  msgstr ""
4315
 
4316
- #: admin/manage-fields.php:1215
4317
  msgid ""
4318
  "The meta-name can only contain lowercase letters, numbers, _ , - and no spaces.\n"
4319
  ""
4320
  msgstr ""
4321
 
4322
- #: admin/manage-fields.php:1235
4323
  msgid ""
4324
  "The following option(s) did not coincide with the ones in the options list: %s\n"
4325
  ""
4326
  msgstr ""
4327
 
4328
- #: admin/manage-fields.php:1239
4329
  msgid ""
4330
  "The following option did not coincide with the ones in the options list: %s\n"
4331
  ""
4332
  msgstr ""
4333
 
4334
- #: admin/manage-fields.php:1246
4335
  msgid ""
4336
  "Please select at least one user role\n"
4337
  ""
4338
  msgstr ""
4339
 
4340
- #: admin/manage-fields.php:1262
4341
  msgid ""
4342
  "That field is already added in this form\n"
4343
  ""
4344
  msgstr ""
4345
 
4346
- #: admin/manage-fields.php:1313
4347
  msgid "<pre>Title</pre><pre>Type</pre><pre>Meta Name</pre><pre class=\"wppb-mb-head-required\">Required</pre>"
4348
  msgstr ""
4349
 
4350
- #: admin/manage-fields.php:1328
4351
  msgid "Use these shortcodes on the pages you want the forms to be displayed:"
4352
  msgstr ""
4353
 
4354
- #: admin/manage-fields.php:1337
4355
  msgid "If you're interested in displaying different fields in the registration and edit profile forms, please use the Multiple Registration & Edit Profile Forms Modules."
4356
  msgstr ""
4357
 
4358
- #: admin/manage-fields.php:1339
4359
  msgid "With Profile Builder Pro you can display different fields in the registration and edit profile forms, using the Multiple Registration & Edit Profile Forms module."
4360
  msgstr ""
4361
 
4362
- #: admin/manage-fields.php:1436
4363
  msgid "Search Location"
4364
  msgstr ""
4365
 
@@ -4475,7 +4489,7 @@ msgstr ""
4475
  msgid "We recommend \"<a href=\"%s\" target=\"_blank\">Custom Profile Menus</a>\" addon if you need different menu items for logged in / logged out users."
4476
  msgstr ""
4477
 
4478
- #: admin/private-website.php:129, features/functions.php:784, ../pb-add-on-customization-toolbox/includes/views/view-admin.php:47, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:275, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:321, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:77, ../pb-add-on-customization-toolbox/includes/views/view-userlisting.php:91, features/content-restriction/content-restriction.php:161, modules/class-mustache-templates/class-mustache-templates.php:390, ../pb-add-on-labels-edit/assets/lib/wck-api/wordpress-creation-kit.php:402, assets/lib/wck-api/wordpress-creation-kit.php:405
4479
  msgid "Save Changes"
4480
  msgstr ""
4481
 
@@ -4555,143 +4569,143 @@ msgstr ""
4555
  msgid "<p>Your <strong>Profile Builder</strong> license is about to expire on %5$s. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s %6$sDismiss%7$s</p>"
4556
  msgstr ""
4557
 
4558
- #: features/functions.php:270
4559
  msgid "GDPR Checkbox"
4560
  msgstr ""
4561
 
4562
- #: features/functions.php:270
4563
  msgid "I allow the website to collect and store the data I submit through this form."
4564
  msgstr ""
4565
 
4566
- #: features/functions.php:599
4567
  msgid "Strength indicator"
4568
  msgstr ""
4569
 
4570
- #: features/functions.php:625, features/functions.php:649
4571
  msgid "Very Weak"
4572
  msgstr ""
4573
 
4574
- #: features/functions.php:639
4575
  msgid "Minimum length of %d characters."
4576
  msgstr ""
4577
 
4578
- #: features/functions.php:650
4579
  msgid "The password must have a minimum strength of %s."
4580
  msgstr ""
4581
 
4582
- #: features/functions.php:727
4583
  msgid "This field is required"
4584
  msgstr ""
4585
 
4586
- #: features/functions.php:765, front-end/default-fields/recaptcha/recaptcha.php:470, front-end/default-fields/recaptcha/recaptcha.php:479, front-end/default-fields/recaptcha/recaptcha.php:532, front-end/default-fields/recaptcha/recaptcha.php:577
4587
  msgid "Please enter a (valid) reCAPTCHA value"
4588
  msgstr ""
4589
 
4590
- #: features/functions.php:772
4591
  msgid "Incorrect phone number"
4592
  msgstr ""
4593
 
4594
- #: features/functions.php:812, ../pb-add-on-labels-edit/assets/lib/wck-api/wordpress-creation-kit.php:444, assets/lib/wck-api/wordpress-creation-kit.php:447
4595
  msgid "Content"
4596
  msgstr ""
4597
 
4598
- #: features/functions.php:994
4599
  msgid "<br><br>Also, you will be able to visit your site at "
4600
  msgstr ""
4601
 
4602
- #: features/functions.php:1007
4603
  msgid "<br><br>You can visit your site at "
4604
  msgstr ""
4605
 
4606
- #: features/functions.php:1093
4607
  msgid "You will soon be redirected automatically. If you see this page for more than %1$d seconds, please click %2$s.%3$s"
4608
  msgstr ""
4609
 
4610
- #: features/functions.php:1223
4611
  msgid "No feed available,please visit our <a href=\"%s\">homepage</a>!"
4612
  msgstr ""
4613
 
4614
- #: features/functions.php:1258
4615
  msgid "You are not currently logged in."
4616
  msgstr ""
4617
 
4618
- #: front-end/class-formbuilder.php:126
4619
  msgid "The role of the created user set to the default role. Only an administrator can register a user with the role assigned to this form."
4620
  msgstr ""
4621
 
4622
- #: front-end/class-formbuilder.php:138
4623
  msgid "Only an administrator can add new users."
4624
  msgstr ""
4625
 
4626
- #: front-end/class-formbuilder.php:148
4627
  msgid "Users can register themselves or you can manually create users here."
4628
  msgstr ""
4629
 
4630
- #: front-end/class-formbuilder.php:148, front-end/class-formbuilder.php:151
4631
  msgid "This message is only visible by administrators"
4632
  msgstr ""
4633
 
4634
- #: front-end/class-formbuilder.php:151
4635
  msgid "Users cannot currently register themselves, but you can manually create users here."
4636
  msgstr ""
4637
 
4638
- #: front-end/class-formbuilder.php:171
4639
  msgid "You are currently logged in as %1s. You don't need another account. %2s"
4640
  msgstr ""
4641
 
4642
- #: front-end/class-formbuilder.php:171
4643
  msgid "Log out of this account."
4644
  msgstr ""
4645
 
4646
- #: front-end/class-formbuilder.php:177
4647
  msgid "You must be logged in to edit your profile."
4648
  msgstr ""
4649
 
4650
- #: front-end/class-formbuilder.php:270, front-end/login.php:479
4651
  msgid "You are not allowed to do this."
4652
  msgstr ""
4653
 
4654
- #: front-end/class-formbuilder.php:326, front-end/class-formbuilder.php:333
4655
  msgid "The account %1s has been successfully created!"
4656
  msgstr ""
4657
 
4658
- #: front-end/class-formbuilder.php:329, front-end/class-formbuilder.php:339
4659
  msgid "Before you can access your account %1s, you need to confirm your email address. Please check your inbox and click the activation link."
4660
  msgstr ""
4661
 
4662
- #: front-end/class-formbuilder.php:335
4663
  msgid "Before you can access your account %1s, an administrator has to approve it. You will be notified via email."
4664
  msgstr ""
4665
 
4666
- #: front-end/class-formbuilder.php:358
4667
  msgid "Your profile has been successfully updated!"
4668
  msgstr ""
4669
 
4670
- #: front-end/class-formbuilder.php:369
4671
  msgid "There was an error in the submitted form"
4672
  msgstr ""
4673
 
4674
- #: front-end/class-formbuilder.php:426
4675
  msgid "Add User"
4676
  msgstr ""
4677
 
4678
- #: front-end/class-formbuilder.php:495
4679
  msgid "Send these credentials via email."
4680
  msgstr ""
4681
 
4682
- #: front-end/class-formbuilder.php:691
4683
  msgid "User to edit:"
4684
  msgstr ""
4685
 
4686
- #: front-end/class-formbuilder.php:693
4687
  msgid "Select User"
4688
  msgstr ""
4689
 
4690
- #: front-end/class-formbuilder.php:709
4691
  msgid "There are no other users to edit"
4692
  msgstr ""
4693
 
4694
- #: front-end/class-formbuilder.php:727
4695
  msgid "Something went wrong. Please try again!"
4696
  msgstr ""
4697
 
@@ -5427,15 +5441,15 @@ msgstr ""
5427
  msgid "All Users"
5428
  msgstr ""
5429
 
5430
- #: features/conditional-fields/conditional-fields.php:78
5431
  msgid "Conditional Logic"
5432
  msgstr ""
5433
 
5434
- #: features/conditional-fields/conditional-fields.php:79
5435
  msgid "Conditional Rules"
5436
  msgstr ""
5437
 
5438
- #: features/conditional-fields/conditional-fields.php:456
5439
  msgid "This field has conditional logic enabled."
5440
  msgstr ""
5441
 
@@ -6939,7 +6953,7 @@ msgstr ""
6939
  msgid "To use reCAPTCHA you must get an API public key from:"
6940
  msgstr ""
6941
 
6942
- #: front-end/default-fields/recaptcha/recaptcha.php:532
6943
  msgid "Click the BACK button on your browser, and try again."
6944
  msgstr ""
6945
 
321
  msgid "Logout Label"
322
  msgstr ""
323
 
324
+ #: ../pb-add-on-custom-profile-menus/index.php:188, ../pb-add-on-custom-profile-menus/wppb-custom-profile-menus.php:16, front-end/class-formbuilder.php:174
325
  msgid "Logout"
326
  msgstr ""
327
 
369
  msgid "Edit Profile"
370
  msgstr ""
371
 
372
+ #: ../pb-add-on-custom-profile-menus/index.php:308, ../pb-add-on-custom-profile-menus/wppb-custom-profile-menus.php:74, front-end/class-formbuilder.php:429, front-end/login.php:421
373
  msgid "Register"
374
  msgstr ""
375
 
453
  msgid "<pre>Title</pre><pre>Type</pre><pre>Meta Name</pre><pre class=\"wppb-mb-head-required\">Required</pre><pre class=\"wppb-mb-head-visibility\"></pre>"
454
  msgstr ""
455
 
456
+ #: ../pb-add-on-field-visibility/index.php:234, ../pb-add-on-labels-edit/pble.php:381, admin/manage-fields.php:1307, features/functions.php:812, features/functions.php:819, features/admin-approval/class-admin-approval.php:108, features/roles-editor/roles-editor.php:866, modules/custom-redirects/custom_redirects_admin.php:183, modules/custom-redirects/custom_redirects_admin.php:197, modules/custom-redirects/custom_redirects_admin.php:211, modules/custom-redirects/custom_redirects_admin.php:225, modules/multiple-forms/multiple-forms.php:406
457
  msgid "Edit"
458
  msgstr ""
459
 
460
+ #: ../pb-add-on-field-visibility/index.php:234, admin/manage-fields.php:1307, features/functions.php:805, features/functions.php:819, features/admin-approval/class-admin-approval.php:113, features/email-confirmation/class-email-confirmation.php:121, features/email-confirmation/class-email-confirmation.php:218, features/roles-editor/roles-editor.php:179, features/roles-editor/roles-editor.php:884, features/roles-editor/roles-editor.php:893, features/roles-editor/roles-editor.php:904, modules/custom-redirects/custom_redirects_admin.php:183, modules/custom-redirects/custom_redirects_admin.php:197, modules/custom-redirects/custom_redirects_admin.php:211, modules/custom-redirects/custom_redirects_admin.php:225, front-end/default-fields/gdpr-delete/gdpr-delete.php:18
461
  msgid "Delete"
462
  msgstr ""
463
 
683
  msgid "Replace labels with placeholders:"
684
  msgstr ""
685
 
686
+ #: ../pb-add-on-placeholder-labels/pbpl.php:171, ../pb-add-on-social-connect/index.php:324, admin/general-settings.php:113, admin/general-settings.php:126, admin/general-settings.php:175, admin/general-settings.php:222, admin/general-settings.php:296, admin/private-website.php:60, admin/private-website.php:117, ../pb-add-on-customization-toolbox/includes/views/view-admin.php:18, ../pb-add-on-customization-toolbox/includes/views/view-admin.php:34, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:18, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:66, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:181, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:197, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:217, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:240, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:261, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:132, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:149, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:164, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:184, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:201, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:239, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:260, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:280, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:302, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:16, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:32, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:48, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:64, ../pb-add-on-customization-toolbox/includes/views/view-userlisting.php:53, ../pb-add-on-customization-toolbox/includes/views/view-userlisting.php:75, features/content-restriction/content-restriction.php:88, modules/multiple-forms/edit-profile-forms.php:206, modules/multiple-forms/register-forms.php:229, modules/multiple-forms/register-forms.php:230, modules/user-listing/userlisting.php:2372
687
  msgid "Yes"
688
  msgstr ""
689
 
690
+ #: ../pb-add-on-placeholder-labels/pbpl.php:172, ../pb-add-on-social-connect/index.php:325, admin/general-settings.php:127, admin/general-settings.php:176, admin/general-settings.php:221, admin/general-settings.php:295, admin/private-website.php:59, admin/private-website.php:116, features/content-restriction/content-restriction.php:87, modules/multiple-forms/edit-profile-forms.php:206, modules/multiple-forms/register-forms.php:229, modules/multiple-forms/register-forms.php:230
691
  msgid "No"
692
  msgstr ""
693
 
883
  msgid "You will be redirected in 5 seconds. If not, click %%."
884
  msgstr ""
885
 
886
+ #: ../pb-add-on-social-connect/index.php:392, features/functions.php:1099
887
  msgid "here"
888
  msgstr ""
889
 
1195
  msgid "Click to edit"
1196
  msgstr ""
1197
 
1198
+ #: ../pb-add-on-campaign-monitor-integration/admin/cmonitor-page.php:451, ../pb-add-on-mailchimp-integration/admin/mailchimp-page.php:171, features/functions.php:798, ../pb-add-on-labels-edit/assets/lib/wck-api/wordpress-creation-kit.php:403, assets/lib/wck-api/wordpress-creation-kit.php:406
1199
  msgid "Cancel"
1200
  msgstr ""
1201
 
1705
  msgid "Not compatible with Profile Builder"
1706
  msgstr ""
1707
 
1708
+ #: admin/add-ons.php:328, front-end/class-formbuilder.php:432
1709
  msgid "Update"
1710
  msgstr ""
1711
 
1769
  msgid "Very weak"
1770
  msgstr ""
1771
 
1772
+ #: admin/admin-functions.php:137, admin/general-settings.php:282, features/functions.php:632, features/functions.php:656
1773
  msgid "Weak"
1774
  msgstr ""
1775
 
1776
+ #: admin/admin-functions.php:137, admin/general-settings.php:283, features/functions.php:632, features/functions.php:656
1777
  msgid "Medium"
1778
  msgstr ""
1779
 
1780
+ #: admin/admin-functions.php:137, admin/general-settings.php:284, features/functions.php:632, features/functions.php:656
1781
  msgid "Strong"
1782
  msgstr ""
1783
 
2289
  msgid "Disabled"
2290
  msgstr ""
2291
 
2292
+ #: admin/general-settings.php:291
2293
+ msgid "Use ajax on conditional fields:"
2294
+ msgstr ""
2295
+
2296
+ #: admin/general-settings.php:299
2297
+ msgid "For large conditional forms select \"Yes\" for an improved page performance"
2298
+ msgstr ""
2299
+
2300
  #: admin/manage-fields.php:17
2301
  msgid "Form Fields"
2302
  msgstr ""
4249
  msgid "Zimbabwe Dollar"
4250
  msgstr ""
4251
 
4252
+ #: admin/manage-fields.php:1097, admin/manage-fields.php:1249
4253
  msgid ""
4254
  "You must select a field\n"
4255
  ""
4315
  ""
4316
  msgstr ""
4317
 
4318
+ #: admin/manage-fields.php:1179
4319
+ msgid ""
4320
+ "That meta-name can't be used, please choose another\n"
4321
+ ""
4322
+ msgstr ""
4323
+
4324
+ #: admin/manage-fields.php:1187, admin/manage-fields.php:1198
4325
  msgid ""
4326
  "That meta-name is already in use\n"
4327
  ""
4328
  msgstr ""
4329
 
4330
+ #: admin/manage-fields.php:1209
4331
  msgid ""
4332
  "The meta-name can only contain lowercase letters, numbers, _ , - and no spaces.\n"
4333
  ""
4334
  msgstr ""
4335
 
4336
+ #: admin/manage-fields.php:1229
4337
  msgid ""
4338
  "The following option(s) did not coincide with the ones in the options list: %s\n"
4339
  ""
4340
  msgstr ""
4341
 
4342
+ #: admin/manage-fields.php:1233
4343
  msgid ""
4344
  "The following option did not coincide with the ones in the options list: %s\n"
4345
  ""
4346
  msgstr ""
4347
 
4348
+ #: admin/manage-fields.php:1240
4349
  msgid ""
4350
  "Please select at least one user role\n"
4351
  ""
4352
  msgstr ""
4353
 
4354
+ #: admin/manage-fields.php:1256
4355
  msgid ""
4356
  "That field is already added in this form\n"
4357
  ""
4358
  msgstr ""
4359
 
4360
+ #: admin/manage-fields.php:1307
4361
  msgid "<pre>Title</pre><pre>Type</pre><pre>Meta Name</pre><pre class=\"wppb-mb-head-required\">Required</pre>"
4362
  msgstr ""
4363
 
4364
+ #: admin/manage-fields.php:1322
4365
  msgid "Use these shortcodes on the pages you want the forms to be displayed:"
4366
  msgstr ""
4367
 
4368
+ #: admin/manage-fields.php:1331
4369
  msgid "If you're interested in displaying different fields in the registration and edit profile forms, please use the Multiple Registration & Edit Profile Forms Modules."
4370
  msgstr ""
4371
 
4372
+ #: admin/manage-fields.php:1333
4373
  msgid "With Profile Builder Pro you can display different fields in the registration and edit profile forms, using the Multiple Registration & Edit Profile Forms module."
4374
  msgstr ""
4375
 
4376
+ #: admin/manage-fields.php:1430
4377
  msgid "Search Location"
4378
  msgstr ""
4379
 
4489
  msgid "We recommend \"<a href=\"%s\" target=\"_blank\">Custom Profile Menus</a>\" addon if you need different menu items for logged in / logged out users."
4490
  msgstr ""
4491
 
4492
+ #: admin/private-website.php:129, features/functions.php:791, ../pb-add-on-customization-toolbox/includes/views/view-admin.php:47, ../pb-add-on-customization-toolbox/includes/views/view-fields.php:275, ../pb-add-on-customization-toolbox/includes/views/view-forms.php:321, ../pb-add-on-customization-toolbox/includes/views/view-shortcodes.php:77, ../pb-add-on-customization-toolbox/includes/views/view-userlisting.php:91, features/content-restriction/content-restriction.php:161, modules/class-mustache-templates/class-mustache-templates.php:390, ../pb-add-on-labels-edit/assets/lib/wck-api/wordpress-creation-kit.php:402, assets/lib/wck-api/wordpress-creation-kit.php:405
4493
  msgid "Save Changes"
4494
  msgstr ""
4495
 
4569
  msgid "<p>Your <strong>Profile Builder</strong> license is about to expire on %5$s. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s %6$sDismiss%7$s</p>"
4570
  msgstr ""
4571
 
4572
+ #: features/functions.php:277
4573
  msgid "GDPR Checkbox"
4574
  msgstr ""
4575
 
4576
+ #: features/functions.php:277
4577
  msgid "I allow the website to collect and store the data I submit through this form."
4578
  msgstr ""
4579
 
4580
+ #: features/functions.php:606
4581
  msgid "Strength indicator"
4582
  msgstr ""
4583
 
4584
+ #: features/functions.php:632, features/functions.php:656
4585
  msgid "Very Weak"
4586
  msgstr ""
4587
 
4588
+ #: features/functions.php:646
4589
  msgid "Minimum length of %d characters."
4590
  msgstr ""
4591
 
4592
+ #: features/functions.php:657
4593
  msgid "The password must have a minimum strength of %s."
4594
  msgstr ""
4595
 
4596
+ #: features/functions.php:734
4597
  msgid "This field is required"
4598
  msgstr ""
4599
 
4600
+ #: features/functions.php:772, front-end/default-fields/recaptcha/recaptcha.php:474, front-end/default-fields/recaptcha/recaptcha.php:483, front-end/default-fields/recaptcha/recaptcha.php:536, front-end/default-fields/recaptcha/recaptcha.php:581
4601
  msgid "Please enter a (valid) reCAPTCHA value"
4602
  msgstr ""
4603
 
4604
+ #: features/functions.php:779
4605
  msgid "Incorrect phone number"
4606
  msgstr ""
4607
 
4608
+ #: features/functions.php:819, ../pb-add-on-labels-edit/assets/lib/wck-api/wordpress-creation-kit.php:444, assets/lib/wck-api/wordpress-creation-kit.php:447
4609
  msgid "Content"
4610
  msgstr ""
4611
 
4612
+ #: features/functions.php:1001
4613
  msgid "<br><br>Also, you will be able to visit your site at "
4614
  msgstr ""
4615
 
4616
+ #: features/functions.php:1014
4617
  msgid "<br><br>You can visit your site at "
4618
  msgstr ""
4619
 
4620
+ #: features/functions.php:1100
4621
  msgid "You will soon be redirected automatically. If you see this page for more than %1$d seconds, please click %2$s.%3$s"
4622
  msgstr ""
4623
 
4624
+ #: features/functions.php:1230
4625
  msgid "No feed available,please visit our <a href=\"%s\">homepage</a>!"
4626
  msgstr ""
4627
 
4628
+ #: features/functions.php:1265
4629
  msgid "You are not currently logged in."
4630
  msgstr ""
4631
 
4632
+ #: front-end/class-formbuilder.php:129
4633
  msgid "The role of the created user set to the default role. Only an administrator can register a user with the role assigned to this form."
4634
  msgstr ""
4635
 
4636
+ #: front-end/class-formbuilder.php:141
4637
  msgid "Only an administrator can add new users."
4638
  msgstr ""
4639
 
4640
+ #: front-end/class-formbuilder.php:151
4641
  msgid "Users can register themselves or you can manually create users here."
4642
  msgstr ""
4643
 
4644
+ #: front-end/class-formbuilder.php:151, front-end/class-formbuilder.php:154
4645
  msgid "This message is only visible by administrators"
4646
  msgstr ""
4647
 
4648
+ #: front-end/class-formbuilder.php:154
4649
  msgid "Users cannot currently register themselves, but you can manually create users here."
4650
  msgstr ""
4651
 
4652
+ #: front-end/class-formbuilder.php:174
4653
  msgid "You are currently logged in as %1s. You don't need another account. %2s"
4654
  msgstr ""
4655
 
4656
+ #: front-end/class-formbuilder.php:174
4657
  msgid "Log out of this account."
4658
  msgstr ""
4659
 
4660
+ #: front-end/class-formbuilder.php:180
4661
  msgid "You must be logged in to edit your profile."
4662
  msgstr ""
4663
 
4664
+ #: front-end/class-formbuilder.php:273, front-end/login.php:479
4665
  msgid "You are not allowed to do this."
4666
  msgstr ""
4667
 
4668
+ #: front-end/class-formbuilder.php:329, front-end/class-formbuilder.php:336
4669
  msgid "The account %1s has been successfully created!"
4670
  msgstr ""
4671
 
4672
+ #: front-end/class-formbuilder.php:332, front-end/class-formbuilder.php:342
4673
  msgid "Before you can access your account %1s, you need to confirm your email address. Please check your inbox and click the activation link."
4674
  msgstr ""
4675
 
4676
+ #: front-end/class-formbuilder.php:338
4677
  msgid "Before you can access your account %1s, an administrator has to approve it. You will be notified via email."
4678
  msgstr ""
4679
 
4680
+ #: front-end/class-formbuilder.php:361
4681
  msgid "Your profile has been successfully updated!"
4682
  msgstr ""
4683
 
4684
+ #: front-end/class-formbuilder.php:372
4685
  msgid "There was an error in the submitted form"
4686
  msgstr ""
4687
 
4688
+ #: front-end/class-formbuilder.php:429
4689
  msgid "Add User"
4690
  msgstr ""
4691
 
4692
+ #: front-end/class-formbuilder.php:511
4693
  msgid "Send these credentials via email."
4694
  msgstr ""
4695
 
4696
+ #: front-end/class-formbuilder.php:707
4697
  msgid "User to edit:"
4698
  msgstr ""
4699
 
4700
+ #: front-end/class-formbuilder.php:709
4701
  msgid "Select User"
4702
  msgstr ""
4703
 
4704
+ #: front-end/class-formbuilder.php:725
4705
  msgid "There are no other users to edit"
4706
  msgstr ""
4707
 
4708
+ #: front-end/class-formbuilder.php:748
4709
  msgid "Something went wrong. Please try again!"
4710
  msgstr ""
4711
 
5441
  msgid "All Users"
5442
  msgstr ""
5443
 
5444
+ #: features/conditional-fields/conditional-fields.php:84
5445
  msgid "Conditional Logic"
5446
  msgstr ""
5447
 
5448
+ #: features/conditional-fields/conditional-fields.php:85
5449
  msgid "Conditional Rules"
5450
  msgstr ""
5451
 
5452
+ #: features/conditional-fields/conditional-fields.php:550
5453
  msgid "This field has conditional logic enabled."
5454
  msgstr ""
5455
 
6953
  msgid "To use reCAPTCHA you must get an API public key from:"
6954
  msgstr ""
6955
 
6956
+ #: front-end/default-fields/recaptcha/recaptcha.php:536
6957
  msgid "Click the BACK button on your browser, and try again."
6958
  msgstr ""
6959