Import users from CSV with meta - Version 1.17.4.3

Version Description

  • BuddyPress member type import fixed
  • Little improvement in export GUI
Download this release

Release Info

Developer carazo
Plugin Icon 128x128 Import users from CSV with meta
Version 1.17.4.3
Comparing to
See all releases

Code changes from version 1.17.4.2 to 1.17.4.3

addons/buddypress.php CHANGED
@@ -238,7 +238,7 @@ class ACUI_Buddypress{
238
  }
239
  }
240
 
241
- $pos_member_type = array_search( 'member_type', $headers );
242
  if( $pos_member_type !== FALSE ){
243
  bp_set_member_type( $user_id, $row[$pos_member_type] );
244
  }
238
  }
239
  }
240
 
241
+ $pos_member_type = array_search( 'bp_member_type', $headers );
242
  if( $pos_member_type !== FALSE ){
243
  bp_set_member_type( $user_id, $row[$pos_member_type] );
244
  }
classes/export.php CHANGED
@@ -59,15 +59,9 @@ class ACUI_Exporter{
59
  <tr id="acui_timestamp_wrapper" valign="top">
60
  <th scope="row"><?php _e( 'Convert timestamp data to date format', 'import-users-from-csv-with-meta' ); ?></th>
61
  <td>
62
- <input type="checkbox" name="convert_timestamp" value="1" checked="checked">
63
- <span class="description"><?php _e( 'If you have problems and you get some value exported as a date that should not be converted to date, please deactivate this option. If this option is not activated, datetime format will be ignored.', 'import-users-from-csv-with-meta' ); ?></span>
64
- </td>
65
- </tr>
66
- <tr id="acui_datetime_format_wrapper" valign="top">
67
- <th scope="row"><?php _e( 'Datetime format', 'import-users-from-csv-with-meta' ); ?></th>
68
- <td>
69
- <input name="datetime_format" type="text" value="Y-m-d H:i:s"/>
70
- <span class="description"><a href="https://www.php.net/manual/en/datetime.formats.php"><?php _e( 'accepted formats', 'import-users-from-csv-with-meta' ); ?></a></span>
71
  </td>
72
  </tr>
73
  <tr id="acui_order_fields_alphabetically_wrapper" valign="top">
@@ -77,6 +71,12 @@ class ACUI_Exporter{
77
  <span class="description"><?php _e( "Order all columns alphabetically to check easier your data. First two columns won't be affected", 'import-users-from-csv-with-meta' ); ?></span>
78
  </td>
79
  </tr>
 
 
 
 
 
 
80
  <tr id="acui_download_csv_wrapper" valign="top">
81
  <th scope="row"><?php _e( 'Download CSV file with users', 'import-users-from-csv-with-meta' ); ?></th>
82
  <td>
@@ -93,7 +93,19 @@ class ACUI_Exporter{
93
  jQuery( document ).ready( function( $ ){
94
  $( "input[name='from']" ).change( function() {
95
  $( "input[name='to']" ).attr( 'min', $( this ).val() );
96
- })
 
 
 
 
 
 
 
 
 
 
 
 
97
  } )
98
  </script>
99
  <?php
59
  <tr id="acui_timestamp_wrapper" valign="top">
60
  <th scope="row"><?php _e( 'Convert timestamp data to date format', 'import-users-from-csv-with-meta' ); ?></th>
61
  <td>
62
+ <input type="checkbox" name="convert_timestamp" id="convert_timestamp" value="1" checked="checked">
63
+ <input name="datetime_format" id="datetime_format" type="text" value="Y-m-d H:i:s"/>
64
+ <span class="description"><a href="https://www.php.net/manual/en/datetime.formats.php"><?php _e( 'accepted formats', 'import-users-from-csv-with-meta' ); ?></a> <?php _e( 'If you have problems and you get some value exported as a date that should not be converted to date, please deactivate this option. If this option is not activated, datetime format will be ignored.', 'import-users-from-csv-with-meta' ); ?></span>
 
 
 
 
 
 
65
  </td>
66
  </tr>
67
  <tr id="acui_order_fields_alphabetically_wrapper" valign="top">
71
  <span class="description"><?php _e( "Order all columns alphabetically to check easier your data. First two columns won't be affected", 'import-users-from-csv-with-meta' ); ?></span>
72
  </td>
73
  </tr>
74
+ <tr id="acui_fields" valign="top">
75
+ <th scope="row"><?php _e( 'Fields', 'import-users-from-csv-with-meta' ); ?></th>
76
+ <td>
77
+
78
+ </td>
79
+ </tr>
80
  <tr id="acui_download_csv_wrapper" valign="top">
81
  <th scope="row"><?php _e( 'Download CSV file with users', 'import-users-from-csv-with-meta' ); ?></th>
82
  <td>
93
  jQuery( document ).ready( function( $ ){
94
  $( "input[name='from']" ).change( function() {
95
  $( "input[name='to']" ).attr( 'min', $( this ).val() );
96
+ })
97
+
98
+ $( '#convert_timestamp' ).on( 'click', function() {
99
+ check_convert_timestamp_checked();
100
+ });
101
+
102
+ function check_convert_timestamp_checked(){
103
+ if( $('#convert_timestamp').is(':checked') ){
104
+ $( '#datetime_format' ).prop( 'disabled', false );
105
+ } else {
106
+ $( '#datetime_format' ).prop( 'disabled', true );
107
+ }
108
+ }
109
  } )
110
  </script>
111
  <?php
import-users-from-csv-with-meta.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Import and export users and customers
4
  Plugin URI: https://www.codection.com
5
  Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
6
- Version: 1.17.4.2
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -11,7 +11,6 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Text Domain: import-users-from-csv-with-meta
12
  Domain Path: /languages
13
  */
14
-
15
  if ( ! defined( 'ABSPATH' ) )
16
  exit;
17
 
@@ -136,8 +135,9 @@ class ImportExportUsersCustomers{
136
  return;
137
 
138
  wp_enqueue_style( 'acui_css', plugins_url( 'assets/style.css', __FILE__ ), false, '1.0.0' );
139
- wp_enqueue_style( 'datatable', '//cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css' );
140
- wp_enqueue_script( 'datatable', '//cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js' );
 
141
  }
142
 
143
  function action_links( $links, $file ) {
3
  Plugin Name: Import and export users and customers
4
  Plugin URI: https://www.codection.com
5
  Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
6
+ Version: 1.17.4.3
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
11
  Text Domain: import-users-from-csv-with-meta
12
  Domain Path: /languages
13
  */
 
14
  if ( ! defined( 'ABSPATH' ) )
15
  exit;
16
 
135
  return;
136
 
137
  wp_enqueue_style( 'acui_css', plugins_url( 'assets/style.css', __FILE__ ), false, '1.0.0' );
138
+ wp_enqueue_style( 'datatable', '//cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css' );
139
+ wp_enqueue_script( 'datatable', '//cdn.datatables.net/1.10.24/js/jquery.dataTables.min.js' );
140
+ //wp_enqueue_script( 'datatable-select', '//cdn.datatables.net/select/1.3.3/js/dataTables.select.min.js' );
141
  }
142
 
143
  function action_links( $links, $file ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://codection.com/go/donate-import-users-from-csv-with-meta/
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 5.7
7
- Stable tag: 1.17.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -103,6 +103,10 @@ Plugin will automatically detect:
103
 
104
  == Changelog ==
105
 
 
 
 
 
106
  = 1.17.4.2 =
107
  * Frontend import email now can have a list of custom recipients, different to admin email
108
 
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 5.7
7
+ Stable tag: 1.17.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
103
 
104
  == Changelog ==
105
 
106
+ = 1.17.4.3 =
107
+ * BuddyPress member type import fixed
108
+ * Little improvement in export GUI
109
+
110
  = 1.17.4.2 =
111
  * Frontend import email now can have a list of custom recipients, different to admin email
112