Ultimate CSV Importer - Version 3.3.1

Version Description

Download this release

Release Info

Developer smackcoders
Plugin Icon 128x128 Ultimate CSV Importer
Version 3.3.1
Comparing to
See all releases

Code changes from version 3.3.0 to 3.3.1

Readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === WP Ultimate CSV Importer Plugin ===
2
- Contributors: smackcoders
3
  Donate link: http://www.smackcoders.com/donate.html
4
  Tags: batch, excel, import, spreadsheet, plugin, admin, csv, importer,
5
  Requires at least: 3.4.0
6
  Tested up to: 3.8
7
- Stable tag: 3.3.0
8
- Version: 3.3.0
9
  Author: smackcoders
10
  Author URI: http://profiles.wordpress.org/smackcoders/
11
  License: GPLv2 or later
@@ -15,7 +15,7 @@ A plugin that turns your offline data as wordpress post, page or custom post dat
15
 
16
  == Description ==
17
 
18
- Version 3.3.0 is now available with WP 3.8 compatibility and added bulk user,comments import feature.
19
  [Please visit for guides and tutorials.] (http://www.smackcoders.com/category/free-wordpress-plugins.html)
20
 
21
  WP Ultimate CSV Importer Plugin helps you to import any CSV file as post, page or even as custom post type. Convert your offline database maintained for years into your valuable website content. Also do periodical content changes, maintenance, content update, prices, offers, coupons and inventory etc.
@@ -147,6 +147,11 @@ Please click here for [ More Details](http://www.smackcoders.com/blog/category/f
147
 
148
  == Changelog ==
149
 
 
 
 
 
 
150
  = 3.3.0 =
151
  * Added: WordPress 3.8 compatibility.
152
  * Added: Bulk users with role import feature.
@@ -257,6 +262,9 @@ Please click here for [ More Details](http://www.smackcoders.com/blog/category/f
257
 
258
  == Upgrade Notice ==
259
 
 
 
 
260
  = 3.3.0 =
261
  * Upgrade now for WP 3.8 compatibility and added bulk user,comments feature.
262
 
1
  === WP Ultimate CSV Importer Plugin ===
2
+ Contributors: smackcoders, mayavee, fenzik, fredricksujin, rajkumarmohan, kumarsacoe, yesjosephraja, muthukumarp, mansoorkhan
3
  Donate link: http://www.smackcoders.com/donate.html
4
  Tags: batch, excel, import, spreadsheet, plugin, admin, csv, importer,
5
  Requires at least: 3.4.0
6
  Tested up to: 3.8
7
+ Stable tag: 3.3.1
8
+ Version: 3.3.1
9
  Author: smackcoders
10
  Author URI: http://profiles.wordpress.org/smackcoders/
11
  License: GPLv2 or later
15
 
16
  == Description ==
17
 
18
+ Version 3.3.1 is now available with Multi site compatibility. Note:- User import option is switched off in multi site mode.
19
  [Please visit for guides and tutorials.] (http://www.smackcoders.com/category/free-wordpress-plugins.html)
20
 
21
  WP Ultimate CSV Importer Plugin helps you to import any CSV file as post, page or even as custom post type. Convert your offline database maintained for years into your valuable website content. Also do periodical content changes, maintenance, content update, prices, offers, coupons and inventory etc.
147
 
148
  == Changelog ==
149
 
150
+ = 3.3.1 =
151
+ * Added: Multi site compatibility except User import.
152
+ * Added: Comments, Users modules mandatory fields validation added.
153
+ * Improved: Removed unwanted warnings.
154
+
155
  = 3.3.0 =
156
  * Added: WordPress 3.8 compatibility.
157
  * Added: Bulk users with role import feature.
262
 
263
  == Upgrade Notice ==
264
 
265
+ = 3.3.1 =
266
+ * Upgrade now for multi site compatibility.
267
+
268
  = 3.3.0 =
269
  * Upgrade now for WP 3.8 compatibility and added bulk user,comments feature.
270
 
class.rendercsv.php CHANGED
@@ -182,22 +182,25 @@ class RenderCSVCE
182
  $impSet = new IMPSettings();
183
  $settings = $impSet->getSettings();
184
  $impCEM = new SmackImpCE();
185
- foreach ($settings as $key)
186
- $$key = true;
 
 
187
  if (isset($_POST['post_csv']) && $_POST['post_csv'] == 'Import')
188
  $dashboard = 'selected';
189
  else {
190
  $action = $_REQUEST['action'];
191
  $$action = 'selected';
192
  }
193
-
194
  if (!$_REQUEST['action'])
195
  $dashboard = 'selected';
196
  $menuHTML = "<div class='csv-top-navigation-wrapper' id='header' name='mainNavigation'><ul id='topNavigation'>";
197
  $menuHTML .= "<li class=\"navigationMenu $post\" style='margin-left:0px;'><a href = 'admin.php?page=upload_csv_file&action=post' class = 'navigationMenu-link' id='module1'>" . $impCEM->t('POST') . "</a></li>";
198
  $menuHTML .= "<li class=\"navigationMenu $page\"><a href = 'admin.php?page=upload_csv_file&action=page' class = 'navigationMenu-link' id='module1'>" . $impCEM->t("PAGE") . "</a></li>";
199
  $menuHTML .= "<li class=\"navigationMenu $custompost\"><a href = 'admin.php?page=upload_csv_file&action=custompost' class = 'navigationMenu-link' id = 'module2'>" . $impCEM->t('CUSTOMPOST') . "</a></li>";
200
- $menuHTML .= "<li class=\"navigationMenu $users \"><a href = 'admin.php?page=upload_csv_file&action=users' class = 'navigationMenu-link' id = 'module4'>".$impCEM->t('USERSROLES')."</a></li>";
 
 
201
  $menuHTML .= "<li class=\"navigationMenu $comments\"><a href = 'admin.php?page=upload_csv_file&action=comments' class = 'navigationMenu-link' id = 'module8'>".$impCEM->t('COMMENTS')."</a></li>";
202
  $menuHTML .= "<li class=\"navigationMenu $settings\"><a href = 'admin.php?page=upload_csv_file&action=settings' class='navigationMenu-link' id='module9'>" . $impCEM->t('SETTINGS') . "</a></li>";
203
  $menuHTML .= "<li class=\"navigationMenu $dashboard\"><a href = 'admin.php?page=upload_csv_file&action=dashboard' class='navigationMenu-link' id='module0'>" . $impCEM->t('DASHBOARD') . "</a></li>";
182
  $impSet = new IMPSettings();
183
  $settings = $impSet->getSettings();
184
  $impCEM = new SmackImpCE();
185
+ if($settings){
186
+ foreach ($settings as $key)
187
+ $$key = true;
188
+ }
189
  if (isset($_POST['post_csv']) && $_POST['post_csv'] == 'Import')
190
  $dashboard = 'selected';
191
  else {
192
  $action = $_REQUEST['action'];
193
  $$action = 'selected';
194
  }
 
195
  if (!$_REQUEST['action'])
196
  $dashboard = 'selected';
197
  $menuHTML = "<div class='csv-top-navigation-wrapper' id='header' name='mainNavigation'><ul id='topNavigation'>";
198
  $menuHTML .= "<li class=\"navigationMenu $post\" style='margin-left:0px;'><a href = 'admin.php?page=upload_csv_file&action=post' class = 'navigationMenu-link' id='module1'>" . $impCEM->t('POST') . "</a></li>";
199
  $menuHTML .= "<li class=\"navigationMenu $page\"><a href = 'admin.php?page=upload_csv_file&action=page' class = 'navigationMenu-link' id='module1'>" . $impCEM->t("PAGE") . "</a></li>";
200
  $menuHTML .= "<li class=\"navigationMenu $custompost\"><a href = 'admin.php?page=upload_csv_file&action=custompost' class = 'navigationMenu-link' id = 'module2'>" . $impCEM->t('CUSTOMPOST') . "</a></li>";
201
+ if ( !is_multisite() ) {
202
+ $menuHTML .= "<li class=\"navigationMenu $users \"><a href = 'admin.php?page=upload_csv_file&action=users' class = 'navigationMenu-link' id = 'module4'>".$impCEM->t('USERSROLES')."</a></li>";
203
+ }
204
  $menuHTML .= "<li class=\"navigationMenu $comments\"><a href = 'admin.php?page=upload_csv_file&action=comments' class = 'navigationMenu-link' id = 'module8'>".$impCEM->t('COMMENTS')."</a></li>";
205
  $menuHTML .= "<li class=\"navigationMenu $settings\"><a href = 'admin.php?page=upload_csv_file&action=settings' class='navigationMenu-link' id='module9'>" . $impCEM->t('SETTINGS') . "</a></li>";
206
  $menuHTML .= "<li class=\"navigationMenu $dashboard\"><a href = 'admin.php?page=upload_csv_file&action=dashboard' class='navigationMenu-link' id='module0'>" . $impCEM->t('DASHBOARD') . "</a></li>";
images/HeadersExplained.jpeg CHANGED
File without changes
images/Importicon_24.png CHANGED
File without changes
images/SubscribeViaEmail.gif CHANGED
File without changes
images/arrow_down.gif CHANGED
File without changes
images/arrow_up.gif CHANGED
File without changes
images/bg.gif CHANGED
File without changes
images/csv_delete.png CHANGED
File without changes
images/csv_download.png CHANGED
File without changes
images/csv_download_all.png CHANGED
File without changes
images/csv_records_delete.png CHANGED
File without changes
images/custompostuitype.png CHANGED
File without changes
images/delete_records.png CHANGED
File without changes
images/eshop.png CHANGED
File without changes
images/facebook.png CHANGED
File without changes
images/googleplus.png CHANGED
File without changes
images/icon.png CHANGED
File without changes
images/importerpro.png CHANGED
File without changes
images/linkedin.png CHANGED
File without changes
images/notactive.png CHANGED
File without changes
images/notok.png CHANGED
File without changes
images/ok.png CHANGED
File without changes
images/paypal_donate_button.png CHANGED
File without changes
images/sprite.png CHANGED
File without changes
images/trash_records.png CHANGED
File without changes
images/twitter.png CHANGED
File without changes
wp_ultimate_csv_importer.js CHANGED
@@ -176,6 +176,55 @@ function import_csv() {
176
  var value = e.options[e.selectedIndex].value;
177
  array[i] = value;
178
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
  if (importer == 'post' || importer == 'page' || importer == 'custompost') {
180
  var getSelectedIndex = document.getElementById('csv_importer_cat');
181
  var SelectedIndex = getSelectedIndex.value;
176
  var value = e.options[e.selectedIndex].value;
177
  array[i] = value;
178
  }
179
+ if(importer == 'comments'){
180
+ for (var j = 0; j < array.length; j++) {
181
+ if (array[j] == 'comment_post_ID') {
182
+ val1 = 'On';
183
+ }
184
+ if (array[j] == 'comment_author') {
185
+ val2 = 'On';
186
+ }
187
+ if (array[j] == 'comment_author_email') {
188
+ val3 = 'On';
189
+ }
190
+ }
191
+ if (val1 == 'On' && val2 == 'On' && val3 == 'On') {
192
+ return true;
193
+ }
194
+ else {
195
+ error_msg = '';
196
+ if (val1 == 'Off')
197
+ error_msg += " comment_post_ID,";
198
+ if (val2 == 'Off')
199
+ error_msg += " comment_author,";
200
+ if (val3 == 'Off')
201
+ error_msg += " comment_author_email";
202
+ showMapMessages('error', 'Error: ' + error_msg + ' - Mandatory fields. Please map the fields to proceed.');
203
+ return false;
204
+ }
205
+ }
206
+ if(importer == 'users'){
207
+ for (var j = 0; j < array.length; j++) {
208
+ if (array[j] == 'user_login') {
209
+ val1 = 'On';
210
+ }
211
+ if (array[j] == 'user_email') {
212
+ val2 = 'On';
213
+ }
214
+ }
215
+ if (val1 == 'On' && val2 == 'On') {
216
+ return true;
217
+ }
218
+ else {
219
+ error_msg = '';
220
+ if (val1 == 'Off')
221
+ error_msg += " user_login,";
222
+ if (val2 == 'Off')
223
+ error_msg += " user_email";
224
+ showMapMessages('error', 'Error: ' + error_msg + ' - Mandatory fields. Please map the fields to proceed.');
225
+ return false;
226
+ }
227
+ }
228
  if (importer == 'post' || importer == 'page' || importer == 'custompost') {
229
  var getSelectedIndex = document.getElementById('csv_importer_cat');
230
  var SelectedIndex = getSelectedIndex.value;
wp_ultimate_csv_importer.php CHANGED
@@ -3,7 +3,7 @@
3
  *Plugin Name: WP Ultimate CSV Importer
4
  *Plugin URI: http://www.smackcoders.com/blog/how-to-guide-for-free-wordpress-ultimate-csv-importer-plugin.html
5
  *Description: A plugin that helps to import the data's from a CSV file.
6
- *Version: 3.3.0
7
  *Author: smackcoders.com
8
  *Author URI: http://www.smackcoders.com
9
  *
3
  *Plugin Name: WP Ultimate CSV Importer
4
  *Plugin URI: http://www.smackcoders.com/blog/how-to-guide-for-free-wordpress-ultimate-csv-importer-plugin.html
5
  *Description: A plugin that helps to import the data's from a CSV file.
6
+ *Version: 3.3.1
7
  *Author: smackcoders.com
8
  *Author URI: http://www.smackcoders.com
9
  *