Save Contact Form 7 - Version 1.6

Version Description

Download this release

Release Info

Developer nimblechapps
Plugin Icon 128x128 Save Contact Form 7
Version 1.6
Comparing to
See all releases

Code changes from version 1.5 to 1.6

Files changed (2) hide show
  1. Readme.txt +5 -1
  2. save-contact-form-7.php +11 -5
Readme.txt CHANGED
@@ -6,7 +6,7 @@ Requires at least: 3.0
6
  Tested up to: 4.5.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
- Stable tag: 1.5
10
 
11
 
12
  Save Contact Form 7 data. Sort, search & export it in CSV+PDF. Best UI. Fully tested with WP 4.5.3 + CF7 4.4.2 & Totally Supported.
@@ -73,6 +73,10 @@ Select any form for which you want to download the entries, from the populated e
73
 
74
  == Changelog ==
75
 
 
 
 
 
76
  = 1.5 =
77
 
78
  * Corrected CSV title.
6
  Tested up to: 4.5.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
+ Stable tag: 1.6
10
 
11
 
12
  Save Contact Form 7 data. Sort, search & export it in CSV+PDF. Best UI. Fully tested with WP 4.5.3 + CF7 4.4.2 & Totally Supported.
73
 
74
  == Changelog ==
75
 
76
+ = 1.6 =
77
+
78
+ * Jquery error resolved.
79
+
80
  = 1.5 =
81
 
82
  * Corrected CSV title.
save-contact-form-7.php CHANGED
@@ -6,13 +6,14 @@
6
  Description: A simple plugin to save contact form data to db.
7
  Author: Nimblechapps
8
  Author URI: http://nimblechapps.com
9
- Version: 1.5
10
  */
11
  //function to check dependencies for Contact Form 7 Plugin
12
 
13
  if (!defined('ABSPATH')) {
14
  exit;
15
  }
 
16
  add_action('wp_head','nimble_scf7_ajaxurl');
17
  function nimble_scf7_ajaxurl() {
18
  ?>
@@ -63,7 +64,12 @@ if (is_admin()) {
63
 
64
  if (!function_exists('nimble_scripts')) {
65
 
66
- function nimble_scripts() {
 
 
 
 
 
67
  //register css for datatables and bootstrap
68
  wp_register_style('nimble_dt_process_circle_style', plugin_dir_url(__FILE__) . 'assets/DataTables/media/css/dataTables.customLoader.circle.css');
69
  wp_register_style('nimble_dt_process_walker_style', plugin_dir_url(__FILE__) . 'assets/DataTables/media/css/dataTables.customLoader.walker.css');
@@ -105,7 +111,7 @@ if (is_admin()) {
105
  $page_title = 'Save Contact Form 7';
106
  $menu_title = 'Save CF7';
107
  $capability = 'manage_options';
108
- $menu_slug = 'save_contact_form_7';
109
  $function = 'nimble_populate_page';
110
  $icon_url = plugins_url('save-contact-form-7/assets/images/icon.png');
111
  $position = 99;
@@ -777,8 +783,8 @@ if (!function_exists("nimble_save_cf7_data")) {
777
  /* for version 3.1 and 3.1.1 start */
778
  if ($plugin_data['contact-form-7/wp-contact-form-7.php']['Version'] == "3.1.1" || $plugin_data['contact-form-7/wp-contact-form-7.php']['Version'] == "3.1") {
779
 
780
- if(isset($table) && $table != ""){
781
- $row_fields = $wpdb->get_results("SHOW full COLUMNS FROM $table");
782
  }
783
  $fname = array_values($submited['uploaded_files']);
784
  $fieldname = key($submited['uploaded_files']);
6
  Description: A simple plugin to save contact form data to db.
7
  Author: Nimblechapps
8
  Author URI: http://nimblechapps.com
9
+ Version: 1.6
10
  */
11
  //function to check dependencies for Contact Form 7 Plugin
12
 
13
  if (!defined('ABSPATH')) {
14
  exit;
15
  }
16
+ define('SAVE_CF7_ADMIN_MENU','save_contact_form_7'); // define menu slug name
17
  add_action('wp_head','nimble_scf7_ajaxurl');
18
  function nimble_scf7_ajaxurl() {
19
  ?>
64
 
65
  if (!function_exists('nimble_scripts')) {
66
 
67
+ function nimble_scripts($hook) {
68
+
69
+ if ($hook != 'toplevel_page_'.SAVE_CF7_ADMIN_MENU) {
70
+ return;
71
+ }
72
+
73
  //register css for datatables and bootstrap
74
  wp_register_style('nimble_dt_process_circle_style', plugin_dir_url(__FILE__) . 'assets/DataTables/media/css/dataTables.customLoader.circle.css');
75
  wp_register_style('nimble_dt_process_walker_style', plugin_dir_url(__FILE__) . 'assets/DataTables/media/css/dataTables.customLoader.walker.css');
111
  $page_title = 'Save Contact Form 7';
112
  $menu_title = 'Save CF7';
113
  $capability = 'manage_options';
114
+ $menu_slug = SAVE_CF7_ADMIN_MENU;
115
  $function = 'nimble_populate_page';
116
  $icon_url = plugins_url('save-contact-form-7/assets/images/icon.png');
117
  $position = 99;
783
  /* for version 3.1 and 3.1.1 start */
784
  if ($plugin_data['contact-form-7/wp-contact-form-7.php']['Version'] == "3.1.1" || $plugin_data['contact-form-7/wp-contact-form-7.php']['Version'] == "3.1") {
785
 
786
+ if(isset($table) && $table != ""){
787
+ $row_fields = $wpdb->get_results("SHOW full COLUMNS FROM $table");
788
  }
789
  $fname = array_values($submited['uploaded_files']);
790
  $fieldname = key($submited['uploaded_files']);