Easy Forms for MailChimp - Version 2.0.3

Version Description

  • Add labels to table option for form
Download this release

Release Info

Developer yikesinc
Plugin Icon 128x128 Easy Forms for MailChimp
Version 2.0.3
Comparing to
See all releases

Code changes from version 2.0.2 to 2.0.3

classes/class.yksemeBase.php CHANGED
@@ -3,7 +3,8 @@ if(!class_exists("yksemeBase"))
3
  {
4
  class yksemeBase
5
  {
6
-
 
7
 
8
  /**
9
  * Variables
@@ -138,7 +139,7 @@ public function getBlankFieldsArray($lid='')
138
  // Add Field
139
  $name = $this->slugify('Email Address'.'-'.'EMAIL');
140
  $addField = array(
141
- 'id' => $lid.'-'.$name,
142
  'name' => $lid.'-'.$name,
143
  'merge' => 'EMAIL',
144
  'label' => 'Email Address',
@@ -166,7 +167,7 @@ public function getImportedFieldsArray($lid, $mv)
166
  // Add Field
167
  $name = $this->slugify($field['label'].'-'.$field['tag']);
168
  $addField = array(
169
- 'id' => $lid.'-'.$name,
170
  'name' => $lid.'-'.$field['tag'],
171
  'merge' => $field['tag'],
172
  'label' => $field['name'],
@@ -786,7 +787,7 @@ public function getFrontendFormDisplay($list='')
786
  <tbody>
787
  <?php foreach($list['fields'] as $field) : if($field['active'] == 1) : ?>
788
  <tr class="yks-mailchimpFormTableRow">
789
- <td class="prompt yks-mailchimpFormTableRowLabel"><?php echo $field['label']; ?></td>
790
  <td class="yks-mailchimpFormTableRowField">
791
  <?php echo $this->getFrontendFormDisplay_field($field); ?>
792
  </td>
3
  {
4
  class yksemeBase
5
  {
6
+
7
+
8
 
9
  /**
10
  * Variables
139
  // Add Field
140
  $name = $this->slugify('Email Address'.'-'.'EMAIL');
141
  $addField = array(
142
+ 'id' => $lid.'-'.$name,
143
  'name' => $lid.'-'.$name,
144
  'merge' => 'EMAIL',
145
  'label' => 'Email Address',
167
  // Add Field
168
  $name = $this->slugify($field['label'].'-'.$field['tag']);
169
  $addField = array(
170
+ 'id' => $lid.'-'.$name,
171
  'name' => $lid.'-'.$field['tag'],
172
  'merge' => $field['tag'],
173
  'label' => $field['name'],
787
  <tbody>
788
  <?php foreach($list['fields'] as $field) : if($field['active'] == 1) : ?>
789
  <tr class="yks-mailchimpFormTableRow">
790
+ <td class="prompt yks-mailchimpFormTableRowLabel"><label class="yks-mailchimpFormTdLabel" for="<?php echo $field['name']; ?>"><?php echo $field['label']; ?></label></td>
791
  <td class="yks-mailchimpFormTableRowField">
792
  <?php echo $this->getFrontendFormDisplay_field($field); ?>
793
  </td>
pages/lists.php CHANGED
@@ -221,13 +221,13 @@
221
  <h2 id="ykseme-page-header">
222
  Easy Mailchimp Extender
223
  <a href="#" class="button add-new-h2 yks-mailchimp-list-add">Add New List</a>
224
- <a href="#" class="button add-new-h2 yks-notice-toggle">Show Notice</a>
225
  </h2>
226
 
227
  <h3>Manage the Mailchimp Lists</h3>
228
 
229
  <div class="yks-status" style="display: block;">
230
- <div class="yks-notice<?php echo ($_COOKIE['yks-mailchimp-notice-hidden'] == '1' ? ' yks-hidden' : ''); ?>">
231
  <a href="#" class="yks-notice-close">Hide Notice</a>
232
  <p>
233
  <strong>Notice:</strong> Version 2 is out! When you add a new list you will now be prompted to put the list id in immediately. We'll contact MailChimp for you and pull in all of your custom fields! <em>Lists created after version 2.0 use a different format for the shortcodes. Instead of a unique id being generated, I now use the MailChimp List Id. The 2.0 update had so many changes in functionality that I had to import the old lists to the new format -- if anything isn't working, please let me know!</em><br />
221
  <h2 id="ykseme-page-header">
222
  Easy Mailchimp Extender
223
  <a href="#" class="button add-new-h2 yks-mailchimp-list-add">Add New List</a>
224
+ <a href="#" class="button add-new-h2 yks-notice-toggle">Show Notice for Version 1 Users</a>
225
  </h2>
226
 
227
  <h3>Manage the Mailchimp Lists</h3>
228
 
229
  <div class="yks-status" style="display: block;">
230
+ <div class="yks-hidden<?php echo ($_COOKIE['yks-mailchimp-notice-hidden'] == '1' ? ' yks-notice' : ''); ?>">
231
  <a href="#" class="yks-notice-close">Hide Notice</a>
232
  <p>
233
  <strong>Notice:</strong> Version 2 is out! When you add a new list you will now be prompted to put the list id in immediately. We'll contact MailChimp for you and pull in all of your custom fields! <em>Lists created after version 2.0 use a different format for the shortcodes. Instead of a unique id being generated, I now use the MailChimp List Id. The 2.0 update had so many changes in functionality that I had to import the old lists to the new format -- if anything isn't working, please let me know!</em><br />
readme.md CHANGED
@@ -35,17 +35,17 @@ For more help visit [The List Id Help Article](http://kb.mailchimp.com/article/h
35
  ### Hey, my checkboxes are not appearing in the active Fields options. What gives? =
36
  Mailchimp only supports the following fields from the "FIELDS & MERGE tags"
37
 
38
- Text
39
- Number
40
- Radio Buttons
41
- Drop Down
42
- Date
43
- Birthday
44
- Address
45
- Zip Code
46
- Phone
47
- Website
48
- Image
49
 
50
  Unfortunately, checkboxes is not currently an option. We will implement in our plugin as soon as MailChimp offers it as option from their API.
51
 
@@ -57,45 +57,47 @@ Due to the code overhaul required for the features of the new version, the struc
57
 
58
  Changes
59
  ===========
 
 
 
60
  ### 2.0.2:
61
- *Fix class MCAPI conflict issue
62
- *Fix class MCAPI conflict issue
63
- *Automtically check for jquery if not use version 1.7.1
64
- *fix jquery conflict issue (specifically when multiple instance of "jQuery(document).ready..."
65
- *fix jquery conflict with ".cycle" jquery command commonly used in slideshows.
66
- *add jquery libraries 1.7.1 and protype
67
- *use "noConflict" in each jquery instance to avoid future conflicts.
68
- *update Yikes about us info.
69
 
70
  ### 2.0.1:
71
- *Now supports multiples of the same list
72
- *Fixed the date format issue
73
- *Removed prompt class from the field wrapper
74
- *Updated plugin description
75
- *Disallowed adding the same list twice on the admin side
76
- *About page now links to the YIKES, Inc. page
77
 
78
  ### 2.0.0:
79
- *Added import function to pull in existing custom fields
80
- *Added new field handling to work with any list configuration
81
- *Required fields in MailChimp are now reflected properly in the list view
82
- *Added ability to choose Divs or Tables
83
 
84
  ### 1.3.1:
85
- *Added nopriv ajax action for anonymous users*
86
 
87
  ### 1.3.0:
88
- *Added custom merge_vars field*
89
 
90
  ### 1.2.0:
91
- *Removed required from First Name and Last Name fields*
92
- *Added update routines for future versions*
93
 
94
  ### 1.1.0:
95
- *Changed the list logic and added a notice for the MERGE VAR naming schema*
96
 
97
  ### 1.0.1:
98
- *Changed CSS paths from Absolute to Relative*
99
 
100
  ### 1.0.0:
101
- *Initial Release
35
  ### Hey, my checkboxes are not appearing in the active Fields options. What gives? =
36
  Mailchimp only supports the following fields from the "FIELDS & MERGE tags"
37
 
38
+ * Text
39
+ * Number
40
+ * Radio Buttons
41
+ * Drop Down
42
+ * Date
43
+ * Birthday
44
+ * Address
45
+ * Zip Code
46
+ * Phone
47
+ * Website
48
+ * Image
49
 
50
  Unfortunately, checkboxes is not currently an option. We will implement in our plugin as soon as MailChimp offers it as option from their API.
51
 
57
 
58
  Changes
59
  ===========
60
+ ### 2.0.3:
61
+ * Add labels to table option for form
62
+
63
  ### 2.0.2:
64
+ * Fix class MCAPI conflict issue
65
+ * Automtically check for jquery if not use version 1.7.1
66
+ * fix jquery conflict issue (specifically when multiple instance of "jQuery(document).ready..."
67
+ * fix jquery conflict with ".cycle" jquery command commonly used in slideshows.
68
+ * add jquery libraries 1.7.1 and prototype
69
+ * use "noConflict" in each jquery instance to avoid future conflicts.
70
+ * update Yikes about us info.
 
71
 
72
  ### 2.0.1:
73
+ * Now supports multiples of the same list
74
+ * Fixed the date format issue
75
+ * Removed prompt class from the field wrapper
76
+ * Updated plugin description
77
+ * Disallowed adding the same list twice on the admin side
78
+ * About page now links to the YIKES, Inc. page
79
 
80
  ### 2.0.0:
81
+ * Added import function to pull in existing custom fields
82
+ * Added new field handling to work with any list configuration
83
+ * Required fields in MailChimp are now reflected properly in the list view
84
+ * Added ability to choose Divs or Tables
85
 
86
  ### 1.3.1:
87
+ * Added nopriv ajax action for anonymous users*
88
 
89
  ### 1.3.0:
90
+ * Added custom merge_vars field*
91
 
92
  ### 1.2.0:
93
+ * Removed required from First Name and Last Name fields*
94
+ * Added update routines for future versions*
95
 
96
  ### 1.1.0:
97
+ * Changed the list logic and added a notice for the MERGE VAR naming schema*
98
 
99
  ### 1.0.1:
100
+ * Changed CSS paths from Absolute to Relative*
101
 
102
  ### 1.0.0:
103
+ * Initial Release
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.yikesinc.com
4
  Tags: mailchimp, marketing, email, mailing lists, newsletter, signup
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
- Stable tag: 2.0.2
8
 
9
  The YIKES, Inc. Easy MailChimp extender gives you the ability to create sign up forms that allow site visitors to join your MailChimp lists.
10
 
@@ -43,17 +43,17 @@ For more help visit [The List Id Help Article](http://kb.mailchimp.com/article/h
43
  = Hey, my checkboxes are not appearing in the active Fields options. What gives? =
44
  Mailchimp only supports the following fields from the "FIELDS & MERGE tags"
45
 
46
- Text
47
- Number
48
- Radio Buttons
49
- Drop Down
50
- Date
51
- Birthday
52
- Address
53
- Zip Code
54
- Phone
55
- Website
56
- Image
57
 
58
  Unfortunately, checkboxes is not currently an option. We will implement in our plugin as soon as MailChimp offers it as option from their API.
59
 
@@ -72,14 +72,17 @@ Due to the code overhaul required for the features of the new version, the struc
72
  4. Sample list setup screen on MailChimp
73
 
74
  == Changelog ==
 
 
 
75
  = 2.0.2 =
76
- *Fix class MCAPI conflict issue
77
- *Automtically check for jquery if not use version 1.7.1
78
- *fix jquery conflict issue (specifically when multiple instance of "jQuery(document).ready..."
79
- *fix jquery conflict with ".cycle" jquery command commonly used in slideshows.
80
- *add jquery libraries 1.7.1 and protype
81
- *use "noConflict" in each jquery instance to avoid future conflicts.
82
- *update Yikes about us info.
83
 
84
 
85
  = 2.0.1 =
4
  Tags: mailchimp, marketing, email, mailing lists, newsletter, signup
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
+ Stable tag: 2.0.3
8
 
9
  The YIKES, Inc. Easy MailChimp extender gives you the ability to create sign up forms that allow site visitors to join your MailChimp lists.
10
 
43
  = Hey, my checkboxes are not appearing in the active Fields options. What gives? =
44
  Mailchimp only supports the following fields from the "FIELDS & MERGE tags"
45
 
46
+ * Text
47
+ * Number
48
+ * Radio Buttons
49
+ * Drop Down
50
+ * Date
51
+ * Birthday
52
+ * Address
53
+ * Zip Code
54
+ * Phone
55
+ * Website
56
+ * Image
57
 
58
  Unfortunately, checkboxes is not currently an option. We will implement in our plugin as soon as MailChimp offers it as option from their API.
59
 
72
  4. Sample list setup screen on MailChimp
73
 
74
  == Changelog ==
75
+ = 2.0.3 =
76
+ * Add labels to table option for form
77
+
78
  = 2.0.2 =
79
+ * Fix class MCAPI conflict issue
80
+ * Automtically check for jquery if not use version 1.7.1
81
+ * fix jquery conflict issue (specifically when multiple instance of "jQuery(document).ready..."
82
+ * fix jquery conflict with ".cycle" jquery command commonly used in slideshows.
83
+ * add jquery libraries 1.7.1 and protype
84
+ * use "noConflict" in each jquery instance to avoid future conflicts.
85
+ * update Yikes about us info.
86
 
87
 
88
  = 2.0.1 =
templates/shortcode_form.php CHANGED
@@ -27,7 +27,7 @@ jQuery.noConflict(true);
27
  type: 'POST',
28
  url: '<?php echo YKSEME_URL_WP_AJAX; ?>',
29
  data: {
30
- action: 'yks_mailchimp_form',
31
  form_action: 'frontend_submit_form',
32
  form_data: $(this).serialize()
33
  },
27
  type: 'POST',
28
  url: '<?php echo YKSEME_URL_WP_AJAX; ?>',
29
  data: {
30
+ action: 'yks_mailchimp_form',
31
  form_action: 'frontend_submit_form',
32
  form_data: $(this).serialize()
33
  },
yikes-inc-easy-mailchimp-extender.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /*
3
  #_________________________________________________ PLUGIN
4
- Plugin Name: Yikes, Inc Easy Mailchimp Extender
5
  Plugin URI: http://www.yikesinc.com
6
  Description: Mailchimp API integration in the form of a shortcode or php snippet
7
- Version: 2.0.2
8
  Author: Yikes, Inc, Sean Kennedy, Tracy Levesque, Carlos Zuniga
9
  Author URI: http://www.yikesinc.com
10
  License: GPL2
@@ -28,21 +28,21 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
 
29
  #_________________________________________________ CONSTANTS
30
  /** Configuration **/
31
- if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', true);
32
- if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '2.0.2');
33
- if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
34
- if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'Yikes, Inc, Sean Kennedy, Tracy Levesque, Carlos Zuniga');
35
- if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');
36
- if(!defined('YKSEME_PREFIX')) define('YKSEME_PREFIX', 'ykseme_');
37
- if(!defined('YKSEME_PATH')) define('YKSEME_PATH', ABSPATH.'wp-content/plugins/yikes-inc-easy-mailchimp-extender/');
38
- if(!defined('YKSEME_URL')) define('YKSEME_URL', plugins_url('yikes-inc-easy-mailchimp-extender/'));
39
- if(!defined('YKSEME_URL_WP')) define('YKSEME_URL_WP', get_bloginfo('url'));
40
- if(!defined('YKSEME_URL_WP_ADM')) define('YKSEME_URL_WP_ADM', YKSEME_URL_WP.'/wp-admin/');
41
- if(!defined('YKSEME_URL_WP_AJAX')) define('YKSEME_URL_WP_AJAX', admin_url('admin-ajax.php'));
42
- if(!defined('YKSEME_URL_CURRENT')) define('YKSEME_URL_CURRENT', $_SERVER['REQUEST_URI']);
43
 
44
  /** Database Tables **/
45
- if(!defined('YKSEME_OPTION')) define('YKSEME_OPTION', YKSEME_PREFIX.'storage');
46
 
47
  /** Initial Configuration **/
48
  if(YKSEME_DEBUG) error_reporting(E_ALL ^ E_NOTICE);
@@ -57,9 +57,9 @@ require_once YKSEME_PATH.'lib/lib.func.php';
57
  $yksemeBase = new yksemeBase();
58
 
59
  /** Activation Hooks **/
60
- register_activation_hook(__FILE__, array(&$yksemeBase, 'activate'));
61
- register_deactivation_hook(__FILE__, array(&$yksemeBase, 'deactivate'));
62
- register_uninstall_hook(__FILE__, array(&$yksemeBase, 'uninstall'));
63
 
64
  //Check for jquery
65
  $checkJQuery = true;
1
  <?php
2
  /*
3
  #_________________________________________________ PLUGIN
4
+ Plugin Name: YIKES, Inc Easy Mailchimp Extender
5
  Plugin URI: http://www.yikesinc.com
6
  Description: Mailchimp API integration in the form of a shortcode or php snippet
7
+ Version: 2.0.3
8
  Author: Yikes, Inc, Sean Kennedy, Tracy Levesque, Carlos Zuniga
9
  Author URI: http://www.yikesinc.com
10
  License: GPL2
28
 
29
  #_________________________________________________ CONSTANTS
30
  /** Configuration **/
31
+ if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', true);
32
+ if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '2.0.3');
33
+ if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
34
+ if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'Yikes, Inc, Sean Kennedy, Tracy Levesque, Carlos Zuniga');
35
+ if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');
36
+ if(!defined('YKSEME_PREFIX')) define('YKSEME_PREFIX', 'ykseme_');
37
+ if(!defined('YKSEME_PATH')) define('YKSEME_PATH', ABSPATH.'wp-content/plugins/yikes-inc-easy-mailchimp-extender/');
38
+ if(!defined('YKSEME_URL')) define('YKSEME_URL', plugins_url('yikes-inc-easy-mailchimp-extender/'));
39
+ if(!defined('YKSEME_URL_WP')) define('YKSEME_URL_WP', get_bloginfo('url'));
40
+ if(!defined('YKSEME_URL_WP_ADM')) define('YKSEME_URL_WP_ADM', YKSEME_URL_WP.'/wp-admin/');
41
+ if(!defined('YKSEME_URL_WP_AJAX')) define('YKSEME_URL_WP_AJAX', admin_url('admin-ajax.php'));
42
+ if(!defined('YKSEME_URL_CURRENT')) define('YKSEME_URL_CURRENT', $_SERVER['REQUEST_URI']);
43
 
44
  /** Database Tables **/
45
+ if(!defined('YKSEME_OPTION')) define('YKSEME_OPTION', YKSEME_PREFIX.'storage');
46
 
47
  /** Initial Configuration **/
48
  if(YKSEME_DEBUG) error_reporting(E_ALL ^ E_NOTICE);
57
  $yksemeBase = new yksemeBase();
58
 
59
  /** Activation Hooks **/
60
+ register_activation_hook(__FILE__, array(&$yksemeBase, 'activate'));
61
+ register_deactivation_hook(__FILE__, array(&$yksemeBase, 'deactivate'));
62
+ register_uninstall_hook(__FILE__, array(&$yksemeBase, 'uninstall'));
63
 
64
  //Check for jquery
65
  $checkJQuery = true;