Export User Data - Version 0.7.6

Version Description

Download this release

Release Info

Developer qlstudio
Plugin Icon wp plugin Export User Data
Version 0.7.6
Comparing to
See all releases

Code changes from version 0.7.5 to 0.7.6

Files changed (2) hide show
  1. export-user-data.php +17 -11
  2. readme.txt +7 -8
export-user-data.php CHANGED
@@ -4,17 +4,13 @@
4
  Plugin Name: Export User Data
5
  Plugin URI: http://qstudio.us/plugins/
6
  Description: Export User data, metadata and BuddyPressX Profile data.
7
- Version: 0.7.4
8
  Author: Q Studio
9
  Author URI: http://qstudio.us/
10
  License: GPL2
11
  Text Domain: export-user-data
12
  */
13
 
14
- /*
15
- * Based on: Export User to CSV by PubPoet ( http://pubpoet.com/ )- Thanks!
16
- */
17
-
18
  load_plugin_textdomain( 'export-user-data', false, basename( dirname( __FILE__ ) ) . '/languages' );
19
 
20
  /**
@@ -34,7 +30,7 @@ class Q_EUD_Export_Users {
34
  add_action( 'admin_menu', array( $this, 'add_admin_pages' ) );
35
  add_action( 'init', array( $this, 'generate_data' ) );
36
  add_filter( 'q_eud_exclude_data', array( $this, 'exclude_data' ) );
37
- add_action( 'admin_init', array( $this, 'add_css_and_js' ) );
38
  add_action( 'admin_footer', array( $this, 'jquery' ), 100000 );
39
 
40
  }
@@ -53,11 +49,16 @@ class Q_EUD_Export_Users {
53
 
54
 
55
  /* style and interaction */
56
- function add_css_and_js() {
 
 
 
 
 
 
 
57
 
58
- wp_register_style('q_eud_multi_select_css', plugins_url('css/multi-select.css',__FILE__ ));
59
- wp_enqueue_style('q_eud_multi_select_css');
60
- wp_enqueue_script('q_eud_multi_select_js', plugins_url('js/jquery.multi-select.js',__FILE__ ), array('jquery'), '0.9.8', false );
61
 
62
  }
63
 
@@ -75,6 +76,9 @@ class Q_EUD_Export_Users {
75
 
76
  /* jquery */
77
  function jquery() {
 
 
 
78
  ?>
79
  <script>
80
 
@@ -107,6 +111,8 @@ class Q_EUD_Export_Users {
107
 
108
  </script>
109
  <?php
 
 
110
  }
111
 
112
  /**
@@ -335,7 +341,7 @@ class Q_EUD_Export_Users {
335
  }
336
  ?>
337
 
338
- <div class="wrap">
339
  <h2><?php _e( 'Export User Data', 'export-user-data' ); ?></h2>
340
  <?php
341
 
4
  Plugin Name: Export User Data
5
  Plugin URI: http://qstudio.us/plugins/
6
  Description: Export User data, metadata and BuddyPressX Profile data.
7
+ Version: 0.7.6
8
  Author: Q Studio
9
  Author URI: http://qstudio.us/
10
  License: GPL2
11
  Text Domain: export-user-data
12
  */
13
 
 
 
 
 
14
  load_plugin_textdomain( 'export-user-data', false, basename( dirname( __FILE__ ) ) . '/languages' );
15
 
16
  /**
30
  add_action( 'admin_menu', array( $this, 'add_admin_pages' ) );
31
  add_action( 'init', array( $this, 'generate_data' ) );
32
  add_filter( 'q_eud_exclude_data', array( $this, 'exclude_data' ) );
33
+ add_action( 'admin_enqueue_scripts', array( $this, 'add_css_and_js' ), 1 );
34
  add_action( 'admin_footer', array( $this, 'jquery' ), 100000 );
35
 
36
  }
49
 
50
 
51
  /* style and interaction */
52
+ function add_css_and_js($hook) {
53
+
54
+ // load the scripts on only the plugin admin page
55
+ if (isset( $_GET['page'] ) && ( $_GET['page'] == 'export-user-data' ) ) {
56
+
57
+ wp_register_style('q_eud_multi_select_css', plugins_url('css/multi-select.css',__FILE__ ));
58
+ wp_enqueue_style('q_eud_multi_select_css');
59
+ wp_enqueue_script('q_eud_multi_select_js', plugins_url('js/jquery.multi-select.js',__FILE__ ), array('jquery'), '0.9.8', false );
60
 
61
+ }
 
 
62
 
63
  }
64
 
76
 
77
  /* jquery */
78
  function jquery() {
79
+
80
+ // load the scripts on only the plugin admin page
81
+ if (isset( $_GET['page'] ) && ( $_GET['page'] == 'export-user-data' ) ) {
82
  ?>
83
  <script>
84
 
111
 
112
  </script>
113
  <?php
114
+ }
115
+
116
  }
117
 
118
  /**
341
  }
342
  ?>
343
 
344
+ <div class="wrap">
345
  <h2><?php _e( 'Export User Data', 'export-user-data' ); ?></h2>
346
  <?php
347
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Plugin Name ===
2
- Contributors: Q Studio
3
- Tags: user, users, xprofile, usermeta, csv, excel, batch, export, save
4
  Requires at least: 3.2
5
  Tested up to: 3.6
6
- Stable tag: 0.7.4
7
  License: GPLv2
8
 
9
  Export users data, metadata and buddypress xprofile data to a csv or Excel file
@@ -14,6 +14,8 @@ A plugin that exports ALL user data, meta data and BuddyPress xProfile data.
14
 
15
  Includes an option to export the users by role, registration date range, usermeta option and two export formats.
16
 
 
 
17
  = Features =
18
 
19
  * Exports all users fields
@@ -58,10 +60,7 @@ Click on the 'Export User Data' link in the 'Users' menu, choose the role and th
58
 
59
  == Changelog ==
60
 
61
- = 0.7.4 =
62
- * added commit by @cwjordan to allow for fields update time - thanks :)
63
-
64
- = 0.7.3 =
65
  * fixes to allow exports without selecting extra user date from usermeta or x-profile
66
 
67
  = 0.6.3 =
@@ -72,7 +71,7 @@ Click on the 'Export User Data' link in the 'Users' menu, choose the role and th
72
 
73
  == Upgrade Notice ==
74
 
75
- = 0.7.4 =
76
  Latest.
77
 
78
  = 0.5 =
1
  === Plugin Name ===
2
+ Contributors: qlstudio
3
+ Tags: user, users, xprofile, usermeta csv, excel, batch, export, save
4
  Requires at least: 3.2
5
  Tested up to: 3.6
6
+ Stable tag: 0.7.6
7
  License: GPLv2
8
 
9
  Export users data, metadata and buddypress xprofile data to a csv or Excel file
14
 
15
  Includes an option to export the users by role, registration date range, usermeta option and two export formats.
16
 
17
+ Based on: http://wordpress.org/plugins/export-users-to-csv/
18
+
19
  = Features =
20
 
21
  * Exports all users fields
60
 
61
  == Changelog ==
62
 
63
+ = 0.7.2 =
 
 
 
64
  * fixes to allow exports without selecting extra user date from usermeta or x-profile
65
 
66
  = 0.6.3 =
71
 
72
  == Upgrade Notice ==
73
 
74
+ = 0.6.3 =
75
  Latest.
76
 
77
  = 0.5 =