Cimy User Extra Fields - Version 2.3.7

Version Description

Download this release

Release Info

Developer Cimmo
Plugin Icon wp plugin Cimy User Extra Fields
Version 2.3.7
Comparing to
See all releases

Code changes from version 2.3.6 to 2.3.7

README_OFFICIAL.txt CHANGED
@@ -619,6 +619,12 @@ A lot of times I cannot reproduce the problem and I need more details, so if you
619
 
620
 
621
  CHANGELOG:
 
 
 
 
 
 
622
  v2.3.6 - 03/02/2012
623
  - Fixed rules are not applied if form confirmation is turned on (introduced with v2.3.1) (thanks to Pietro Gabba)
624
 
619
 
620
 
621
  CHANGELOG:
622
+ v2.3.7 - 05/03/2012
623
+ - Fixed image/file/avatar upload on profile edit when Theme My Login - Themed profile is in use (introduced with v2.3.0) (thanks to Giovanni Gonzalez)
624
+ - Fixed fields were showed anyways in the form confirmation even if they were not showed in the registration
625
+ - Fixed textarea-rich didn't work sometimes in the registration form
626
+ - Fixed registration was not possible if both password field and password meter are present and form confirmation is turned on (introduced with v2.3.3) (thanks to Jörg Thanheiser)
627
+
628
  v2.3.6 - 03/02/2012
629
  - Fixed rules are not applied if form confirmation is turned on (introduced with v2.3.1) (thanks to Pietro Gabba)
630
 
cimy_uef_init.php CHANGED
@@ -64,6 +64,9 @@ function cimy_uef_theme_my_login_fix() {
64
  if (!empty($GLOBALS['theme_my_login'])) {
65
  if ($GLOBALS['theme_my_login']->is_login_page())
66
  cimy_uef_register_css();
 
 
 
67
  }
68
  }
69
 
@@ -103,8 +106,10 @@ function cimy_uef_init_javascripts($rule_name) {
103
  }
104
  if ($rule_name == "show_in_reg") {
105
  // This is needed for registration form on WordPress >= 3.3
106
- if ($options['tinymce_fields'][$rule_name] > 0 && function_exists("wp_editor"))
 
107
  wp_enqueue_script('utils');
 
108
 
109
  if ($options['password_meter']) {
110
  wp_register_script("cimy_uef_password_strength_meter", $cuef_js_webpath."/password_strength_meter.js", array("password-strength-meter"), false);
64
  if (!empty($GLOBALS['theme_my_login'])) {
65
  if ($GLOBALS['theme_my_login']->is_login_page())
66
  cimy_uef_register_css();
67
+ // Themed profile
68
+ if (defined('IS_PROFILE_PAGE') && constant('IS_PROFILE_PAGE'))
69
+ cimy_uef_admin_profile_init_js();
70
  }
71
  }
72
 
106
  }
107
  if ($rule_name == "show_in_reg") {
108
  // This is needed for registration form on WordPress >= 3.3
109
+ if ($options['tinymce_fields'][$rule_name] > 0 && function_exists("wp_editor")) {
110
+ wp_enqueue_script('jquery');
111
  wp_enqueue_script('utils');
112
+ }
113
 
114
  if ($options['password_meter']) {
115
  wp_register_script("cimy_uef_password_strength_meter", $cuef_js_webpath."/password_strength_meter.js", array("password-strength-meter"), false);
cimy_uef_register.php CHANGED
@@ -726,7 +726,7 @@ function cimy_registration_form($errors=null, $show_type=0) {
726
 
727
  // if show_level == anonymous then do NOT ovverride other show_xyz rules
728
  if ($rules['show_level'] == -1) {
729
- if ($show_type == 0) {
730
  // if flag to show the field in the registration is NOT activated, skip it
731
  if (!$rules['show_in_reg'])
732
  continue;
726
 
727
  // if show_level == anonymous then do NOT ovverride other show_xyz rules
728
  if ($rules['show_level'] == -1) {
729
+ if ($show_type == 0 || $show_type == 2) {
730
  // if flag to show the field in the registration is NOT activated, skip it
731
  if (!$rules['show_in_reg'])
732
  continue;
cimy_user_extra_fields.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Cimy User Extra Fields
4
  Plugin URI: http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/
5
  Description: Add some useful fields to registration and user's info
6
- Version: 2.3.6
7
  Author: Marco Cimmino
8
  Author URI: mailto:cimmino.marco@gmail.com
9
  License: GPL2
@@ -172,7 +172,7 @@ require_once($cuef_plugin_dir.'/cimy_uef_admin.php');
172
  add_action('admin_init', 'cimy_uef_admin_init');
173
 
174
  $cimy_uef_name = "Cimy User Extra Fields";
175
- $cimy_uef_version = "2.3.6";
176
  $cimy_uef_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/";
177
  $cimy_project_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/support-the-cimy-project-paypal/";
178
 
3
  Plugin Name: Cimy User Extra Fields
4
  Plugin URI: http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/
5
  Description: Add some useful fields to registration and user's info
6
+ Version: 2.3.7
7
  Author: Marco Cimmino
8
  Author URI: mailto:cimmino.marco@gmail.com
9
  License: GPL2
172
  add_action('admin_init', 'cimy_uef_admin_init');
173
 
174
  $cimy_uef_name = "Cimy User Extra Fields";
175
+ $cimy_uef_version = "2.3.7";
176
  $cimy_uef_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/";
177
  $cimy_project_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/support-the-cimy-project-paypal/";
178
 
js/password_strength_meter.js CHANGED
@@ -33,7 +33,10 @@ function check_pass_strength() {
33
  }
34
 
35
  jQuery(document).ready( function() {
36
- jQuery('[name=cimy_uef_wp_PASSWORD]').val('').keyup( check_pass_strength );
37
- jQuery('[name=cimy_uef_wp_PASSWORD2]').val('').keyup( check_pass_strength );
38
- check_pass_strength();
 
 
 
39
  });
33
  }
34
 
35
  jQuery(document).ready( function() {
36
+ // really we need this IF otherwise we break freaking form confirmation when password and password meter are both present
37
+ if (jQuery('[name=cimy_uef_wp_PASSWORD]').attr('type') == 'password') {
38
+ jQuery('[name=cimy_uef_wp_PASSWORD]').val('').keyup( check_pass_strength );
39
+ jQuery('[name=cimy_uef_wp_PASSWORD2]').val('').keyup( check_pass_strength );
40
+ check_pass_strength();
41
+ }
42
  });
readme.txt CHANGED
@@ -5,7 +5,7 @@ Website link: http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra
5
  Tags: cimy, admin, registration, profile, extra fields, avatar, gravatar, recaptcha, captcha
6
  Requires at least: 3.1
7
  Tested up to: 3.3
8
- Stable tag: 2.3.6
9
 
10
  Add some useful fields to registration and user's info
11
 
5
  Tags: cimy, admin, registration, profile, extra fields, avatar, gravatar, recaptcha, captcha
6
  Requires at least: 3.1
7
  Tested up to: 3.3
8
+ Stable tag: 2.3.7
9
 
10
  Add some useful fields to registration and user's info
11