Import users from CSV with meta - Version 1.15.9.2

Version Description

  • We try to make the plugin compatible with BuddyPress related themes and plugins that uses their functions but they are not BuddyPress really
  • Problems exporting file when a site is behind CloudFare fixed
Download this release

Release Info

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

Code changes from version 1.15.9.1 to 1.15.9.2

addons/buddypress.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( !is_plugin_active( 'buddypress/bp-loader.php' ) ){
6
  return;
7
  }
8
 
@@ -73,7 +73,7 @@ class ACUI_Buddypress{
73
  }
74
 
75
  function get_fields(){
76
- if( !is_plugin_active( 'buddypress/bp-loader.php' ) ){
77
  return array();
78
  }
79
 
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'buddypress/bp-loader.php' ) && !function_exists( 'bp_is_active' ) ){
6
  return;
7
  }
8
 
73
  }
74
 
75
  function get_fields(){
76
+ if( !is_plugin_active( 'buddypress/bp-loader.php' ) && !function_exists( 'bp_is_active' ) ){
77
  return array();
78
  }
79
 
classes/export.php CHANGED
@@ -205,7 +205,7 @@ class ACUI_Exporter{
205
 
206
  fclose( $file );
207
 
208
- $fsize = filesize( $this->path_csv );
209
  $path_parts = pathinfo( $this->path_csv );
210
  header( "Content-type: text/csv;charset=utf-8" );
211
  header( "Content-Disposition: attachment; filename=\"".$path_parts["basename"]."\"" );
205
 
206
  fclose( $file );
207
 
208
+ $fsize = filesize( $this->path_csv ) + 3;
209
  $path_parts = pathinfo( $this->path_csv );
210
  header( "Content-type: text/csv;charset=utf-8" );
211
  header( "Content-Disposition: attachment; filename=\"".$path_parts["basename"]."\"" );
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.15.9.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -11,13 +11,12 @@ 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
 
18
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
19
 
20
- if( is_plugin_active( 'buddypress/bp-loader.php' ) ){
21
  if ( defined( 'BP_VERSION' ) )
22
  acui_loader();
23
  else
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.15.9.2
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
 
17
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
18
 
19
+ if( is_plugin_active( 'buddypress/bp-loader.php' ) || function_exists( 'bp_is_active' ) ){
20
  if ( defined( 'BP_VERSION' ) )
21
  acui_loader();
22
  else
importer.php CHANGED
@@ -26,7 +26,7 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
26
 
27
  $buddypress_fields = array();
28
 
29
- if( is_plugin_active( 'buddypress/bp-loader.php' ) ){
30
  $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );
31
 
32
  if ( !empty( $profile_groups ) ) {
26
 
27
  $buddypress_fields = array();
28
 
29
+ if( is_plugin_active( 'buddypress/bp-loader.php' ) || class_exists( 'BP_XProfile_Group' ) ){
30
  $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );
31
 
32
  if ( !empty( $profile_groups ) ) {
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.5.1
7
- Stable tag: 1.15.9.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -99,6 +99,10 @@ Plugin will automatically detect:
99
 
100
  == Changelog ==
101
 
 
 
 
 
102
  = 1.15.9.1 =
103
  * You can now export data from BuddyPress groups
104
  * BuddyPress addon is now a class instead of different methods
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.5.1
7
+ Stable tag: 1.15.9.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
99
 
100
  == Changelog ==
101
 
102
+ = 1.15.9.2 =
103
+ * We try to make the plugin compatible with BuddyPress related themes and plugins that uses their functions but they are not BuddyPress really
104
+ * Problems exporting file when a site is behind CloudFare fixed
105
+
106
  = 1.15.9.1 =
107
  * You can now export data from BuddyPress groups
108
  * BuddyPress addon is now a class instead of different methods