User registration & user profile – Profile Builder - Version 1.1.63

Version Description

Changes weren't saving on the Edit Profile page when profile was not fully updated.

Download this release

Release Info

Developer barinagabriel
Plugin Icon 128x128 User registration & user profile – Profile Builder
Version 1.1.63
Comparing to
See all releases

Code changes from version 1.1.62 to 1.1.63

classes/class.email.confirmation.php CHANGED
@@ -228,7 +228,8 @@ class wpp_list_unfonfirmed_email_table extends WP_List_Table {
228
  if ( current_user_can( 'delete_users' ) ){
229
  if( 'delete' === $this->current_action() ) {
230
  foreach ( $_GET['user'] as $user ){
231
- $sql_result = $wpdb->delete( $wpdb->prefix.'signups', array( 'user_login' => $result->user_login, 'user_email' => $result->user_email ) );
 
232
  if ( !$sql_result )
233
  $this->wppb_process_bulk_action_message( sprintf( __( "%s couldn't be deleted", "profilebuilder" ), $result->user_login ), get_bloginfo('url').'/wp-admin/users.php?page=unconfirmed_emails' );
234
 
228
  if ( current_user_can( 'delete_users' ) ){
229
  if( 'delete' === $this->current_action() ) {
230
  foreach ( $_GET['user'] as $user ){
231
+ $sql_result = $wpdb->query( $wpdb->prepare( "DELETE FROM ".$wpdb->prefix."signups WHERE user_email = %s", $user ) );
232
+
233
  if ( !$sql_result )
234
  $this->wppb_process_bulk_action_message( sprintf( __( "%s couldn't be deleted", "profilebuilder" ), $result->user_login ), get_bloginfo('url').'/wp-admin/users.php?page=unconfirmed_emails' );
235
 
front-end/wppb.edit.profile.php CHANGED
@@ -506,7 +506,7 @@ function wppb_front_end_profile_info() {
506
  foreach ( $wppbFetchArray as $key => $value){
507
  switch ($value['item_type']) {
508
  case "input":{
509
- $_POST[$value['item_type'].$value['id']] = apply_filters('wppb_edit_profile_input_custom_field_'.$value['id'], $_POST[$value['item_type'].$value['id']]);
510
  if (isset($value['item_required'])){
511
  if ($value['item_required'] == 'yes'){
512
  if (trim($_POST[$value['item_type'].$value['id']]) != '')
@@ -902,7 +902,7 @@ function wppb_front_end_profile_info() {
902
  $editProfileFilterArray2['contentName3'] = '
903
  <p class="first_name'.$errorVar.'">
904
  <label for="first_name">'. __('First Name', 'profilebuilder') .$errorMark.'</label>
905
- <input class="text-input" name="first_name" type="text" id="first_name" value="'. get_the_author_meta( 'first_name', $current_user->ID ) .'" />
906
  </p><!-- .first_name -->';
907
  $editProfileFilterArray2['contentName3'] = apply_filters('wppb_edit_profile_content_name3', $editProfileFilterArray2['contentName3'], $current_user->ID, $errorVar, $errorMark);
908
  }
@@ -922,7 +922,7 @@ function wppb_front_end_profile_info() {
922
  $editProfileFilterArray2['contentName4'] = '
923
  <p class="last_name'.$errorVar.'">
924
  <label for="last_name">'. __('Last Name', 'profilebuilder') .$errorMark.'</label>
925
- <input class="text-input" name="last_name" type="text" id="last_name" value="'. get_the_author_meta( 'last_name', $current_user->ID ) .'" />
926
  </p><!-- .last_name -->';
927
  $editProfileFilterArray2['contentName4'] = apply_filters('wppb_edit_profile_content_name4', $editProfileFilterArray2['contentName4'], $current_user->ID);
928
  }
@@ -942,7 +942,7 @@ function wppb_front_end_profile_info() {
942
  $editProfileFilterArray2['contentName5'] = '
943
  <p class="nickname'.$errorVar.'">
944
  <label for="nickname">'. __('Nickname', 'profilebuilder') .$errorMark.'</label>
945
- <input class="text-input" name="nickname" type="text" id="nickname" value="'. get_the_author_meta( 'nickname', $current_user->ID ) .'" />
946
  </p><!-- .nickname -->';
947
  $editProfileFilterArray2['contentName5'] = apply_filters('wppb_edit_profile_content_name5', $editProfileFilterArray2['contentName5'], $current_user->ID, $errorVar, $errorMark);
948
  }
@@ -1014,7 +1014,7 @@ function wppb_front_end_profile_info() {
1014
  $editProfileFilterArray2['contentInfo2'] = '
1015
  <p class="form-email'.$errorVar.'">
1016
  <label for="email">'. __('E-mail', 'profilebuilder') .$errorMark.'</label>
1017
- <input class="text-input" name="email" type="text" id="email" value="'. get_the_author_meta( 'user_email', $current_user->ID ) .'" />
1018
  <span class="wppb-description-delimiter">'. __('(required)', 'profilebuilder') .'</span>
1019
  </p><!-- .form-email -->';
1020
  $editProfileFilterArray2['contentInfo2'] = apply_filters('wppb_edit_profile_content_info2', $editProfileFilterArray2['contentInfo2'], $current_user->ID, $errorVar, $errorMark);
@@ -1034,7 +1034,7 @@ function wppb_front_end_profile_info() {
1034
  $editProfileFilterArray2['contentInfo3'] = '
1035
  <p class="form-website'.$errorVar.'">
1036
  <label for="website">'. __('Website', 'profilebuilder') .$errorMark.'</label>
1037
- <input class="text-input" name="website" type="text" id="website" value="'. get_the_author_meta( 'user_url', $current_user->ID ) .'" />
1038
  </p><!-- .form-website -->';
1039
  $editProfileFilterArray2['contentInfo3'] = apply_filters('wppb_edit_profile_content_info3', $editProfileFilterArray2['contentInfo3'], $current_user->ID, $errorVar, $errorMark);
1040
  }
@@ -1052,7 +1052,7 @@ function wppb_front_end_profile_info() {
1052
  $editProfileFilterArray2['contentInfo4'] = '
1053
  <p class="form-aim'.$errorVar.'">
1054
  <label for="aim">'. __('AIM', 'profilebuilder') .'</label>
1055
- <input class="text-input" name="aim" type="text" id="aim" value="'. get_the_author_meta( 'aim', $current_user->ID ) .'" />
1056
  </p><!-- .form-aim -->';
1057
  $editProfileFilterArray2['contentInfo4'] = apply_filters('wppb_edit_profile_content_info4', $editProfileFilterArray2['contentInfo4'], $current_user->ID, $errorVar, $errorMark);
1058
  }
@@ -1070,7 +1070,7 @@ function wppb_front_end_profile_info() {
1070
  $editProfileFilterArray2['contentInfo5'] = '
1071
  <p class="form-yim'.$errorVar.'">
1072
  <label for="yim">'. __('Yahoo IM', 'profilebuilder') .$errorMark.'</label>
1073
- <input class="text-input" name="yim" type="text" id="yim" value="'. get_the_author_meta( 'yim', $current_user->ID ) .'" />
1074
  </p><!-- .form-yim -->';
1075
  $editProfileFilterArray2['contentInfo5'] = apply_filters('wppb_edit_profile_content_info5', $editProfileFilterArray2['contentInfo5'], $current_user->ID, $errorVar, $errorMark);
1076
  }
@@ -1088,7 +1088,7 @@ function wppb_front_end_profile_info() {
1088
  $editProfileFilterArray2['contentInfo6'] = '
1089
  <p class="form-jabber'.$errorVar.'">
1090
  <label for="jabber">'. __('Jabber / Google Talk', 'profilebuilder') .$errorMark.'</label>
1091
- <input class="text-input" name="jabber" type="text" id="jabber" value="'. get_the_author_meta( 'jabber', $current_user->ID ) .'" />
1092
  </p><!-- .form-jabber -->';
1093
  $editProfileFilterArray2['contentInfo6'] = apply_filters('wppb_edit_profile_content_info6', $editProfileFilterArray2['contentInfo6'], $current_user->ID, $errorVar, $errorMark);
1094
  }
@@ -1109,7 +1109,7 @@ function wppb_front_end_profile_info() {
1109
  $editProfileFilterArray2['aboutYourself2'] = '
1110
  <p class="form-description'.$errorVar.'">
1111
  <label for="description">'. __('Biographical Info', 'profilebuilder') .$errorMark.'</label>
1112
- <textarea class="text-input" name="description" id="description" rows="5" cols="30">'. get_the_author_meta( 'description', $current_user->ID ) .'</textarea>
1113
  </p><!-- .form-description -->';
1114
  $editProfileFilterArray2['aboutYourself2'] = apply_filters('wppb_edit_profile_content_about_yourself2', $editProfileFilterArray2['aboutYourself2'], $current_user->ID, $errorVar, $errorMark);
1115
  }
@@ -1119,12 +1119,12 @@ function wppb_front_end_profile_info() {
1119
  $editProfileFilterArray2['aboutYourself3'] = '
1120
  <p class="form-password">
1121
  <label for="pass1">'. __('New Password', 'profilebuilder') .'</label>
1122
- <input class="text-input" name="pass1" type="password" id="pass1" />
1123
  </p><!-- .form-password -->
1124
 
1125
  <p class="form-password'.$errorVar.'">
1126
  <label for="pass2">'. __('Repeat Password', 'profilebuilder') .$errorMark.'</label>
1127
- <input class="text-input" name="pass2" type="password" id="pass2" />
1128
  </p><!-- .form-password -->';
1129
  $editProfileFilterArray2['aboutYourself3'] = apply_filters('wppb_edit_profile_content_about_yourself3', $editProfileFilterArray2['aboutYourself3'], $errorVar, $errorMark);
1130
  }
506
  foreach ( $wppbFetchArray as $key => $value){
507
  switch ($value['item_type']) {
508
  case "input":{
509
+ $_POST[$value['item_type'].$value['id']] = apply_filters('wppb_edit_profile_input_custom_field_'.$value['id'].'_check2', $_POST[$value['item_type'].$value['id']]);
510
  if (isset($value['item_required'])){
511
  if ($value['item_required'] == 'yes'){
512
  if (trim($_POST[$value['item_type'].$value['id']]) != '')
902
  $editProfileFilterArray2['contentName3'] = '
903
  <p class="first_name'.$errorVar.'">
904
  <label for="first_name">'. __('First Name', 'profilebuilder') .$errorMark.'</label>
905
+ <input class="text-input" name="first_name" type="text" id="first_name" value="'.( isset( $_POST['first_name'] ) ? trim( $_POST['first_name'] ) : get_the_author_meta( 'first_name', $current_user->ID ) ).'" />
906
  </p><!-- .first_name -->';
907
  $editProfileFilterArray2['contentName3'] = apply_filters('wppb_edit_profile_content_name3', $editProfileFilterArray2['contentName3'], $current_user->ID, $errorVar, $errorMark);
908
  }
922
  $editProfileFilterArray2['contentName4'] = '
923
  <p class="last_name'.$errorVar.'">
924
  <label for="last_name">'. __('Last Name', 'profilebuilder') .$errorMark.'</label>
925
+ <input class="text-input" name="last_name" type="text" id="last_name" value="'.( isset( $_POST['last_name'] ) ? trim( $_POST['last_name'] ) : get_the_author_meta( 'last_name', $current_user->ID ) ).'" />
926
  </p><!-- .last_name -->';
927
  $editProfileFilterArray2['contentName4'] = apply_filters('wppb_edit_profile_content_name4', $editProfileFilterArray2['contentName4'], $current_user->ID);
928
  }
942
  $editProfileFilterArray2['contentName5'] = '
943
  <p class="nickname'.$errorVar.'">
944
  <label for="nickname">'. __('Nickname', 'profilebuilder') .$errorMark.'</label>
945
+ <input class="text-input" name="nickname" type="text" id="nickname" value="'.( isset( $_POST['nickname'] ) ? trim( $_POST['nickname'] ) : get_the_author_meta( 'nickname', $current_user->ID ) ).'" />
946
  </p><!-- .nickname -->';
947
  $editProfileFilterArray2['contentName5'] = apply_filters('wppb_edit_profile_content_name5', $editProfileFilterArray2['contentName5'], $current_user->ID, $errorVar, $errorMark);
948
  }
1014
  $editProfileFilterArray2['contentInfo2'] = '
1015
  <p class="form-email'.$errorVar.'">
1016
  <label for="email">'. __('E-mail', 'profilebuilder') .$errorMark.'</label>
1017
+ <input class="text-input" name="email" type="text" id="email" value="'.( isset( $_POST['email'] ) ? trim( $_POST['email'] ) : get_the_author_meta( 'user_email', $current_user->ID ) ).'" />
1018
  <span class="wppb-description-delimiter">'. __('(required)', 'profilebuilder') .'</span>
1019
  </p><!-- .form-email -->';
1020
  $editProfileFilterArray2['contentInfo2'] = apply_filters('wppb_edit_profile_content_info2', $editProfileFilterArray2['contentInfo2'], $current_user->ID, $errorVar, $errorMark);
1034
  $editProfileFilterArray2['contentInfo3'] = '
1035
  <p class="form-website'.$errorVar.'">
1036
  <label for="website">'. __('Website', 'profilebuilder') .$errorMark.'</label>
1037
+ <input class="text-input" name="website" type="text" id="website" value="'.( isset( $_POST['website'] ) ? trim( $_POST['website'] ) : get_the_author_meta( 'user_url', $current_user->ID ) ).'" />
1038
  </p><!-- .form-website -->';
1039
  $editProfileFilterArray2['contentInfo3'] = apply_filters('wppb_edit_profile_content_info3', $editProfileFilterArray2['contentInfo3'], $current_user->ID, $errorVar, $errorMark);
1040
  }
1052
  $editProfileFilterArray2['contentInfo4'] = '
1053
  <p class="form-aim'.$errorVar.'">
1054
  <label for="aim">'. __('AIM', 'profilebuilder') .'</label>
1055
+ <input class="text-input" name="aim" type="text" id="aim" value="'.( isset( $_POST['aim'] ) ? trim( $_POST['aim'] ) : get_the_author_meta( 'aim', $current_user->ID ) ).'" />
1056
  </p><!-- .form-aim -->';
1057
  $editProfileFilterArray2['contentInfo4'] = apply_filters('wppb_edit_profile_content_info4', $editProfileFilterArray2['contentInfo4'], $current_user->ID, $errorVar, $errorMark);
1058
  }
1070
  $editProfileFilterArray2['contentInfo5'] = '
1071
  <p class="form-yim'.$errorVar.'">
1072
  <label for="yim">'. __('Yahoo IM', 'profilebuilder') .$errorMark.'</label>
1073
+ <input class="text-input" name="yim" type="text" id="yim" value="'.( isset( $_POST['yim'] ) ? trim( $_POST['yim'] ) : get_the_author_meta( 'yim', $current_user->ID ) ).'" />
1074
  </p><!-- .form-yim -->';
1075
  $editProfileFilterArray2['contentInfo5'] = apply_filters('wppb_edit_profile_content_info5', $editProfileFilterArray2['contentInfo5'], $current_user->ID, $errorVar, $errorMark);
1076
  }
1088
  $editProfileFilterArray2['contentInfo6'] = '
1089
  <p class="form-jabber'.$errorVar.'">
1090
  <label for="jabber">'. __('Jabber / Google Talk', 'profilebuilder') .$errorMark.'</label>
1091
+ <input class="text-input" name="jabber" type="text" id="jabber" value="'.( isset( $_POST['jabber'] ) ? trim( $_POST['jabber'] ) : get_the_author_meta( 'jabber', $current_user->ID ) ).'" />
1092
  </p><!-- .form-jabber -->';
1093
  $editProfileFilterArray2['contentInfo6'] = apply_filters('wppb_edit_profile_content_info6', $editProfileFilterArray2['contentInfo6'], $current_user->ID, $errorVar, $errorMark);
1094
  }
1109
  $editProfileFilterArray2['aboutYourself2'] = '
1110
  <p class="form-description'.$errorVar.'">
1111
  <label for="description">'. __('Biographical Info', 'profilebuilder') .$errorMark.'</label>
1112
+ <textarea class="text-input" name="description" id="description" rows="5" cols="30">'.( isset( $_POST['description'] ) ? trim( $_POST['description'] ) : get_the_author_meta( 'description', $current_user->ID ) ).'</textarea>
1113
  </p><!-- .form-description -->';
1114
  $editProfileFilterArray2['aboutYourself2'] = apply_filters('wppb_edit_profile_content_about_yourself2', $editProfileFilterArray2['aboutYourself2'], $current_user->ID, $errorVar, $errorMark);
1115
  }
1119
  $editProfileFilterArray2['aboutYourself3'] = '
1120
  <p class="form-password">
1121
  <label for="pass1">'. __('New Password', 'profilebuilder') .'</label>
1122
+ <input class="text-input" name="pass1" type="password" id="pass1" value="'.( isset( $_POST['pass1'] ) ? trim( $_POST['pass1'] ) : '' ).'" autocomplete="off" />
1123
  </p><!-- .form-password -->
1124
 
1125
  <p class="form-password'.$errorVar.'">
1126
  <label for="pass2">'. __('Repeat Password', 'profilebuilder') .$errorMark.'</label>
1127
+ <input class="text-input" name="pass2" type="password" id="pass2" value="'.( isset( $_POST['pass2'] ) ? trim( $_POST['pass2'] ) : '' ).'" autocomplete="off" />
1128
  </p><!-- .form-password -->';
1129
  $editProfileFilterArray2['aboutYourself3'] = apply_filters('wppb_edit_profile_content_about_yourself3', $editProfileFilterArray2['aboutYourself3'], $errorVar, $errorMark);
1130
  }
front-end/wppb.register.php CHANGED
@@ -6,12 +6,13 @@
6
  function signup_password_random_password_filter( $password ) {
7
  global $wpdb;
8
 
9
- $key = ( !empty( $_GET['key'] ) ? $_GET['key'] : $_POST['key'] );
 
10
 
11
- if ( !empty($_POST['user_pass']) )
12
  $password = $_POST['user_pass'];
13
 
14
- elseif ( !empty( $key ) ) {
15
  $signup = ( is_multisite() ? $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . $wpdb->signups . " WHERE activation_key = %s", $key ) ) : $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "signups WHERE activation_key = %s", $key ) ) );
16
 
17
  if ( empty( $signup ) || $signup->active ) {
@@ -21,29 +22,23 @@ function signup_password_random_password_filter( $password ) {
21
  $meta = unserialize( $signup->meta );
22
 
23
  $password = $meta['user_pass'];
24
- }
25
  }
26
- return $password;
 
27
  }
28
- add_filter('random_password', 'signup_password_random_password_filter');
29
 
30
- function wppb_generate_random_username($sentEmail){
31
- $email = '';
32
-
33
- for($i=0; $i<strlen($sentEmail); $i++){
34
- if (($sentEmail[$i] === '@') || ($sentEmail[$i] === '_') || ($sentEmail[$i] === '-') || ($sentEmail[$i] === '.'))
35
- break;
36
- else
37
- $email .= $sentEmail[$i];
38
- }
39
 
40
- $username = 'pbUser'.$email.mktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y"));
41
 
42
- while (username_exists($username)){
43
- $username = 'pbUser'.$email.mktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y"));
44
  }
45
 
46
- return $username;
47
  }
48
 
49
  function wppb_add_custom_field_values($POST, $meta){
@@ -432,7 +427,7 @@ function wppb_front_end_register($atts){
432
  foreach ( $wppbFetchArray as $key => $value){
433
  switch ($value['item_type']) {
434
  case "input":{
435
- $_POST[$value['item_type'].$value['id']] = apply_filters('wppb_register_input_custom_field_'.$value['id'], $_POST[$value['item_type'].$value['id']]);
436
  if (isset($value['item_required'])){
437
  if ($value['item_required'] == 'yes'){
438
  if (trim($_POST[$value['item_type'].$value['id']]) == '')
@@ -809,6 +804,7 @@ function wppb_front_end_register($atts){
809
  $bloginfo = get_bloginfo( 'name' );
810
  $sentEmailStatus = wppb_notify_user_registration_email($bloginfo, esc_attr($_POST['user_name']), esc_attr($_POST['email']), $_POST['send_credentials_via_email'], $_POST['passw1'], $wppb_generalSettings['adminApproval']);
811
 
 
812
  }
813
  }elseif ( is_multisite() ){
814
 
6
  function signup_password_random_password_filter( $password ) {
7
  global $wpdb;
8
 
9
+ $key = ( !empty( $_GET['key'] ) ? $_GET['key'] : null );
10
+ $key = ( !empty( $_POST['key'] ) ? $_POST['key'] : null );
11
 
12
+ if ( !empty( $_POST['user_pass'] ) )
13
  $password = $_POST['user_pass'];
14
 
15
+ elseif ( !is_null( $key ) ) {
16
  $signup = ( is_multisite() ? $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . $wpdb->signups . " WHERE activation_key = %s", $key ) ) : $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "signups WHERE activation_key = %s", $key ) ) );
17
 
18
  if ( empty( $signup ) || $signup->active ) {
22
  $meta = unserialize( $signup->meta );
23
 
24
  $password = $meta['user_pass'];
25
+ }
26
  }
27
+
28
+ return apply_filters( 'wppb_generated_random_password', $password, $key );
29
  }
30
+ add_filter( 'random_password', 'signup_password_random_password_filter' );
31
 
32
+ function wppb_generate_random_username( $user_email ){
33
+ $user_email = str_replace( array( '@', '-', '_', '.' ), '', $user_email );
 
 
 
 
 
 
 
34
 
35
+ $username = strtolower( 'pbuser'.$email.mktime( date("H"), date("i"), date("s"), date("n"), date("j"), date("Y") ) );
36
 
37
+ while ( username_exists( $username ) ){
38
+ $username = strtolower( 'pbuser'.$email.mktime( date("H"), date("i"), date("s"), date("n"), date("j"), date("Y") ) );
39
  }
40
 
41
+ return apply_filters( 'wppb_generated_random_username', $username, $user_email );
42
  }
43
 
44
  function wppb_add_custom_field_values($POST, $meta){
427
  foreach ( $wppbFetchArray as $key => $value){
428
  switch ($value['item_type']) {
429
  case "input":{
430
+ $_POST[$value['item_type'].$value['id']] = apply_filters( 'wppb_register_input_custom_field_'.$value['id'].'_check', $_POST[$value['item_type'].$value['id']]);
431
  if (isset($value['item_required'])){
432
  if ($value['item_required'] == 'yes'){
433
  if (trim($_POST[$value['item_type'].$value['id']]) == '')
804
  $bloginfo = get_bloginfo( 'name' );
805
  $sentEmailStatus = wppb_notify_user_registration_email($bloginfo, esc_attr($_POST['user_name']), esc_attr($_POST['email']), $_POST['send_credentials_via_email'], $_POST['passw1'], $wppb_generalSettings['adminApproval']);
806
 
807
+ do_action('wppb_user_register', $new_user);
808
  }
809
  }elseif ( is_multisite() ){
810
 
index.php CHANGED
@@ -3,9 +3,9 @@
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.62
7
- Author: Reflection Media, Barina Gabriel, Antohe Cristian
8
- Author URI: http://www.reflectionmedia.ro
9
  License: GPL2
10
 
11
  == Copyright ==
@@ -53,7 +53,7 @@ function wppb_return_bytes( $val ) {
53
  return $val;
54
  }
55
 
56
- define( 'PROFILE_BUILDER_VERSION', '1.1.62' );
57
  define( 'WPPB_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
58
  define( 'WPPB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
59
  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/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.64
7
+ Author: Cozmoslabs, Barina Gabriel, Antohe Cristian
8
+ Author URI: http://www.cozmoslabs.com/
9
  License: GPL2
10
 
11
  == Copyright ==
53
  return $val;
54
  }
55
 
56
+ define( 'PROFILE_BUILDER_VERSION', '1.1.64' );
57
  define( 'WPPB_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
58
  define( 'WPPB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
59
  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
@@ -1,12 +1,12 @@
1
  === Profile Builder - front-end user registration, login and edit profile ===
2
 
3
- Contributors: reflectionmedia, barinagabriel, sareiodata
4
  Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
5
  Tags: registration, user profile, user registration, custom field registration, customize profile, user fields, extra user fields, builder, profile builder, custom user profile, user profile page, edit profile, custom registration, custom registration form, custom registration page, registration page, user custom fields, user listing, front-end user listing, user login, user registration form, front-end login, front-end register, front-end registration, front-end edit profile, front-end user registration, custom redirects, user email, avatar upload
6
 
7
  Requires at least: 3.1
8
  Tested up to: 3.8.1
9
- Stable tag: 1.1.62
10
 
11
  Simple to use profile plugin allowing front-end login, user registration and edit profile by using shortcodes.
12
 
@@ -94,6 +94,12 @@ This plugin only adds/removes user fields in the front-end. The default profile
94
  7. Password Recovery Page
95
 
96
  == Changelog ==
 
 
 
 
 
 
97
  = 1.1.62 =
98
  Minor changes to the readme file.
99
 
1
  === Profile Builder - front-end user registration, login and edit profile ===
2
 
3
+ Contributors: reflectionmedia, barinagabriel, sareiodata, cozmoslabs
4
  Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
5
  Tags: registration, user profile, user registration, custom field registration, customize profile, user fields, extra user fields, builder, profile builder, custom user profile, user profile page, edit profile, custom registration, custom registration form, custom registration page, registration page, user custom fields, user listing, front-end user listing, user login, user registration form, front-end login, front-end register, front-end registration, front-end edit profile, front-end user registration, custom redirects, user email, avatar upload
6
 
7
  Requires at least: 3.1
8
  Tested up to: 3.8.1
9
+ Stable tag: 1.1.64
10
 
11
  Simple to use profile plugin allowing front-end login, user registration and edit profile by using shortcodes.
12
 
94
  7. Password Recovery Page
95
 
96
  == Changelog ==
97
+ = 1.1.64 =
98
+ Minor changes in the readme and index files.
99
+
100
+ = 1.1.63 =
101
+ Changes weren't saving on the Edit Profile page when profile was not fully updated.
102
+
103
  = 1.1.62 =
104
  Minor changes to the readme file.
105
 
uninstall.php DELETED
@@ -1,48 +0,0 @@
1
- <?php
2
- /* if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
3
- exit (); // If uninstall not called from WordPress exit
4
-
5
- // get all the custom fields' names in one single array
6
- $customFields = get_option('wppb_custom_fields','not_found');
7
-
8
- $customFieldNames = array();
9
- foreach($customFields as $key => $value)
10
- array_push($customFieldNames, $value['item_metaName']);
11
-
12
- // delete all the custom fields
13
- global $wpdb;
14
- $allUserMeta = $wpdb->get_results("SELECT * FROM $wpdb->usermeta");
15
-
16
- foreach ($allUserMeta as $userMeta) {
17
- if (in_array($userMeta->meta_key, $customFieldNames)){
18
- $metaFieldName = $userMeta->meta_key;
19
- $metaFieldValue = $userMeta->meta_value;
20
- delete_user_meta( $userMeta->user_id, $metaFieldName, $metaFieldValue );
21
- }
22
-
23
- $foundAvatar = strpos ( (string)$userMeta->meta_key , 'resized_avatar_' );
24
- if ( $foundAvatar !== FALSE ){
25
- $metaFieldName = $userMeta->meta_key;
26
- $metaFieldValue = $userMeta->meta_value;
27
- delete_user_meta( $userMeta->user_id, $metaFieldName, $metaFieldValue );
28
- }
29
- }
30
-
31
- delete_option( 'wppb_default_settings' ); // Delete default settings from options table
32
- delete_option( 'wppb_default_style' ); // Delete "use default css or not" settings (old one; preserving backwards compatibility)
33
- delete_option( 'wppb_general_settings' ); // Delete the plugin general settings
34
- delete_option( 'wppb_display_admin_settings' ); // Delete display admin bar option
35
- delete_option( 'wppb_custom_fields' ); // Delete the default fields
36
- delete_option( 'wppb_profile_builder_pro_serial' ); // Delete the serial number associated with this instalation
37
- delete_option( 'wppb_profile_builder_hobbyist_serial' );
38
- delete_option( 'serial_number_availability' ); // Delete the serial number status
39
- delete_option( 'wppb_premium_addon_settings' ); // Delete addon settings (old one; preserving backwards compatibility)
40
- delete_option( 'wppb_addon_settings' ); // Delete addon settings (since 1.1.21)
41
- delete_option( 'wppb_premium_addon_settings_description' ); // Delete addon settings description (old one; preserving backwards compatibility)
42
- delete_option( 'wppb_addon_settings_description' ); // Delete addon settings description (since 1.1.21)
43
- delete_option( 'customRedirectSettings' ); // Delete the custom redirect settings
44
- delete_option( 'userListingSettings' ); // Delete the user-listing settings (old one; preserving backwards compatibility)
45
- delete_option( 'customUserListingSettings' ); // Delete the user-listing settings (since 1.1.21)
46
- delete_option( 'reCaptchaSettings' ); // Delete the public and private keys used by the reCAPTCHA addon (since 1.1.42)
47
- delete_option( 'emailCustomizer' ); // Delete the email-customizer settings
48
- delete_option( 'wppb_version' ); // Delete the version number */