Version Description
- August, 26, 2014 =
Fixes
- Remove
type
attribute fromtextarea
elements - Check for array fields in form when checking presence of required MailChimp list fields
Improvements
- Added
-webkit-appearance
reset to checkbox CSS - Updated Italian translations
- Updated links to point to the new MailChimp for WordPress Pro site.
- Don't use
{response}
tag if form is hidden after successful submissions
Additions
- Added official integration with Events Manager. Just include a
mc4wp-subscribe
checkbox field and MailChimp for WordPress will do the rest.
Download this release
Release Info
Developer | DvanKooten |
Plugin | MailChimp for WordPress |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- assets/css/checkbox.css +1 -0
- assets/css/checkbox.min.css +1 -1
- assets/sass/checkbox.scss +1 -0
- includes/class-admin.php +1 -1
- includes/class-checkbox-manager.php +5 -0
- includes/class-form-manager.php +2 -2
- includes/class-plugin.php +1 -0
- includes/integrations/class-cf7.php +1 -1
- includes/integrations/class-events-manager.php +74 -0
- includes/integrations/class-general.php +8 -3
- includes/integrations/class-integration.php +1 -1
- includes/views/form-settings.php +1 -1
- includes/views/parts/admin-need-support.php +3 -2
- languages/mailchimp-for-wp.po +1 -1
- mailchimp-for-wp.php +2 -2
- readme.txt +67 -43
assets/css/checkbox.css
CHANGED
@@ -12,6 +12,7 @@ p#mc4wp-checkbox input {
|
|
12 |
vertical-align: middle;
|
13 |
display: inline-block !important;
|
14 |
max-width: 21px;
|
|
|
15 |
}
|
16 |
p#mc4wp-checkbox label {
|
17 |
display: block;
|
12 |
vertical-align: middle;
|
13 |
display: inline-block !important;
|
14 |
max-width: 21px;
|
15 |
+
-webkit-appearance: checkbox;
|
16 |
}
|
17 |
p#mc4wp-checkbox label {
|
18 |
display: block;
|
assets/css/checkbox.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
p#mc4wp-checkbox{clear:both;display:block;position:static;width:auto}p#mc4wp-checkbox input{position:static;margin:0 6px 0 0;padding:0;vertical-align:middle;display:inline-block!important;max-width:21px}p#mc4wp-checkbox label{display:block;cursor:pointer;width:auto;position:static}#registerform #mc4wp-checkbox{margin-bottom:10px}
|
1 |
+
p#mc4wp-checkbox{clear:both;display:block;position:static;width:auto}p#mc4wp-checkbox input{position:static;margin:0 6px 0 0;padding:0;vertical-align:middle;display:inline-block!important;max-width:21px;-webkit-appearance:checkbox}p#mc4wp-checkbox label{display:block;cursor:pointer;width:auto;position:static}#registerform #mc4wp-checkbox{margin-bottom:10px}
|
assets/sass/checkbox.scss
CHANGED
@@ -13,6 +13,7 @@ p#mc4wp-checkbox{
|
|
13 |
vertical-align: middle;
|
14 |
display: inline-block !important;
|
15 |
max-width: 21px;
|
|
|
16 |
}
|
17 |
|
18 |
label {
|
13 |
vertical-align: middle;
|
14 |
display: inline-block !important;
|
15 |
max-width: 21px;
|
16 |
+
-webkit-appearance: checkbox;
|
17 |
}
|
18 |
|
19 |
label {
|
includes/class-admin.php
CHANGED
@@ -244,7 +244,7 @@ class MC4WP_Lite_Admin
|
|
244 |
*/
|
245 |
public function redirect_to_pro()
|
246 |
{
|
247 |
-
?><script type="text/javascript">window.location.replace('https://
|
248 |
}
|
249 |
|
250 |
/**
|
244 |
*/
|
245 |
public function redirect_to_pro()
|
246 |
{
|
247 |
+
?><script type="text/javascript">window.location.replace('https://mc4wp.com/#utm_source=lite-plugin&utm_medium=link&utm_campaign=menu-upgrade-link'); </script><?php
|
248 |
}
|
249 |
|
250 |
/**
|
includes/class-checkbox-manager.php
CHANGED
@@ -54,6 +54,11 @@ class MC4WP_Lite_Checkbox_Manager
|
|
54 |
$this->integrations['contact_form_7'] = new MC4WP_CF7_Integration();
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
57 |
// Always load General Integration
|
58 |
$this->integrations['general'] = new MC4WP_General_Integration();
|
59 |
}
|
54 |
$this->integrations['contact_form_7'] = new MC4WP_CF7_Integration();
|
55 |
}
|
56 |
|
57 |
+
// Load Events Manager integration
|
58 |
+
if( defined( 'EM_VERSION' ) ) {
|
59 |
+
$this->integrations['events_manager'] = new MC4WP_Events_Manager_Integration();
|
60 |
+
}
|
61 |
+
|
62 |
// Always load General Integration
|
63 |
$this->integrations['general'] = new MC4WP_General_Integration();
|
64 |
}
|
includes/class-form-manager.php
CHANGED
@@ -147,7 +147,7 @@ class MC4WP_Lite_Form_Manager {
|
|
147 |
$form_action = apply_filters( 'mc4wp_form_action', mc4wp_get_current_url() );
|
148 |
|
149 |
// Generate opening HTML
|
150 |
-
$opening_html = "<!-- Form by MailChimp for WordPress plugin v". MC4WP_LITE_VERSION ." - https://
|
151 |
$opening_html .= '<form method="post" action="'. $form_action .'" id="mc4wp-form-'.$this->form_instance_number.'" class="'. $this->get_css_classes() .'">';
|
152 |
|
153 |
// Generate before & after fields HTML
|
@@ -206,7 +206,7 @@ class MC4WP_Lite_Form_Manager {
|
|
206 |
$response_html = $this->get_form_message_html();
|
207 |
|
208 |
// add form response after or before fields if no {response} tag
|
209 |
-
if( stristr( $visible_fields, '{response}' ) === false ) {
|
210 |
|
211 |
/**
|
212 |
* @filter mc4wp_form_message_position
|
147 |
$form_action = apply_filters( 'mc4wp_form_action', mc4wp_get_current_url() );
|
148 |
|
149 |
// Generate opening HTML
|
150 |
+
$opening_html = "<!-- Form by MailChimp for WordPress plugin v". MC4WP_LITE_VERSION ." - https://mc4wp.com/ -->";
|
151 |
$opening_html .= '<form method="post" action="'. $form_action .'" id="mc4wp-form-'.$this->form_instance_number.'" class="'. $this->get_css_classes() .'">';
|
152 |
|
153 |
// Generate before & after fields HTML
|
206 |
$response_html = $this->get_form_message_html();
|
207 |
|
208 |
// add form response after or before fields if no {response} tag
|
209 |
+
if( stristr( $visible_fields, '{response}' ) === false || $opts['hide_after_success']) {
|
210 |
|
211 |
/**
|
212 |
* @filter mc4wp_form_message_position
|
includes/class-plugin.php
CHANGED
@@ -75,6 +75,7 @@ class MC4WP_Lite {
|
|
75 |
'mc4wp_bbpress_integration' => $include_path . 'integrations/class-bbpress.php',
|
76 |
'mc4wp_buddypress_integration' => $include_path . 'integrations/class-buddypress.php',
|
77 |
'mc4wp_cf7_integration' => $include_path . 'integrations/class-cf7.php',
|
|
|
78 |
'mc4wp_comment_form_integration' => $include_path . 'integrations/class-comment-form.php',
|
79 |
'mc4wp_general_integration' => $include_path . 'integrations/class-general.php',
|
80 |
'mc4wp_multisite_integration' => $include_path . 'integrations/class-multisite.php',
|
75 |
'mc4wp_bbpress_integration' => $include_path . 'integrations/class-bbpress.php',
|
76 |
'mc4wp_buddypress_integration' => $include_path . 'integrations/class-buddypress.php',
|
77 |
'mc4wp_cf7_integration' => $include_path . 'integrations/class-cf7.php',
|
78 |
+
'mc4wp_events_manager_integration' => $include_path . 'integrations/class-events-manager.php',
|
79 |
'mc4wp_comment_form_integration' => $include_path . 'integrations/class-comment-form.php',
|
80 |
'mc4wp_general_integration' => $include_path . 'integrations/class-general.php',
|
81 |
'mc4wp_multisite_integration' => $include_path . 'integrations/class-multisite.php',
|
includes/integrations/class-cf7.php
CHANGED
@@ -56,7 +56,7 @@ class MC4WP_CF7_Integration extends MC4WP_General_Integration {
|
|
56 |
return false;
|
57 |
}
|
58 |
|
59 |
-
return $this->try_subscribe(
|
60 |
}
|
61 |
|
62 |
}
|
56 |
return false;
|
57 |
}
|
58 |
|
59 |
+
return $this->try_subscribe();
|
60 |
}
|
61 |
|
62 |
}
|
includes/integrations/class-events-manager.php
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// prevent direct file access
|
4 |
+
if( ! defined("MC4WP_LITE_VERSION") ) {
|
5 |
+
header( 'Status: 403 Forbidden' );
|
6 |
+
header( 'HTTP/1.1 403 Forbidden' );
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
|
10 |
+
class MC4WP_Events_Manager_Integration extends MC4WP_General_Integration {
|
11 |
+
|
12 |
+
protected $type = 'events_manager';
|
13 |
+
|
14 |
+
public function __construct() {
|
15 |
+
add_action( 'em_bookings_added', array( $this, 'subscribe_from_events_manager' ) );
|
16 |
+
}
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Subscribe from Events Manager booking forms.
|
20 |
+
*
|
21 |
+
* @param array $args
|
22 |
+
*/
|
23 |
+
public function subscribe_from_events_manager( $em_booking ) {
|
24 |
+
|
25 |
+
// was sign-up checkbox checked?
|
26 |
+
if( ! isset( $em_booking->booking_meta['booking']['mc4wp-subscribe'] ) || $em_booking->booking_meta['booking']['mc4wp-subscribe'] != 1 ) {
|
27 |
+
return false;
|
28 |
+
}
|
29 |
+
|
30 |
+
// find email field
|
31 |
+
if( isset( $em_booking->booking_meta['registration']['user_email'] ) ) {
|
32 |
+
|
33 |
+
$meta = $em_booking->booking_meta;
|
34 |
+
|
35 |
+
$email = $meta['registration']['user_email'];
|
36 |
+
$merge_vars = array();
|
37 |
+
|
38 |
+
// find name fields
|
39 |
+
if( isset( $meta['registration']['user_name'] ) ) {
|
40 |
+
$merge_vars['NAME'] = $meta['registration']['user_name'];
|
41 |
+
}
|
42 |
+
|
43 |
+
if( isset( $meta['registration']['first_name'] ) ) {
|
44 |
+
$merge_vars['FNAME'] = $meta['registration']['first_name'];
|
45 |
+
}
|
46 |
+
|
47 |
+
if( isset( $meta['registration']['last_name'] ) ) {
|
48 |
+
$merge_vars['LNAME'] = $meta['registration']['last_name'];
|
49 |
+
}
|
50 |
+
|
51 |
+
if( is_array( $meta['booking'] ) ) {
|
52 |
+
foreach( $meta['booking'] as $field_name => $field_value ) {
|
53 |
+
|
54 |
+
// only add fields starting with mc4wp-
|
55 |
+
if( strtolower( substr( $field_name, 0, 6 ) ) !== 'mc4wp-' || $field_name === 'mc4wp-subscribe' ) {
|
56 |
+
continue;
|
57 |
+
}
|
58 |
+
|
59 |
+
$field_name = strtoupper( substr( $field_name, 6 ) );
|
60 |
+
|
61 |
+
// add to merge vars
|
62 |
+
$merge_vars[ $field_name ] = $field_value;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
|
66 |
+
// subscribe using email and name
|
67 |
+
return $this->subscribe( $email, $merge_vars );
|
68 |
+
}
|
69 |
+
|
70 |
+
// try general fallback
|
71 |
+
return $this->try_subscribe();
|
72 |
+
}
|
73 |
+
|
74 |
+
}
|
includes/integrations/class-general.php
CHANGED
@@ -61,7 +61,12 @@ class MC4WP_General_Integration extends MC4WP_Integration {
|
|
61 |
return false;
|
62 |
}
|
63 |
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
|
67 |
/**
|
@@ -85,7 +90,7 @@ class MC4WP_General_Integration extends MC4WP_Integration {
|
|
85 |
*
|
86 |
* @param string $trigger
|
87 |
*/
|
88 |
-
public function try_subscribe(
|
89 |
|
90 |
// start running..
|
91 |
$email = null;
|
@@ -175,7 +180,7 @@ class MC4WP_General_Integration extends MC4WP_Integration {
|
|
175 |
return false;
|
176 |
}
|
177 |
|
178 |
-
return $this->subscribe( $email, $merge_vars, $
|
179 |
}
|
180 |
|
181 |
|
61 |
return false;
|
62 |
}
|
63 |
|
64 |
+
// don't run if this is an events manager request
|
65 |
+
if( isset( $_POST['action'] ) && $_POST['action'] === 'booking_add' && isset( $_POST['event_id'] ) ) {
|
66 |
+
return false;
|
67 |
+
}
|
68 |
+
|
69 |
+
$this->try_subscribe();
|
70 |
}
|
71 |
|
72 |
/**
|
90 |
*
|
91 |
* @param string $trigger
|
92 |
*/
|
93 |
+
public function try_subscribe() {
|
94 |
|
95 |
// start running..
|
96 |
$email = null;
|
180 |
return false;
|
181 |
}
|
182 |
|
183 |
+
return $this->subscribe( $email, $merge_vars, $this->type );
|
184 |
}
|
185 |
|
186 |
|
includes/integrations/class-integration.php
CHANGED
@@ -98,7 +98,7 @@ abstract class MC4WP_Integration {
|
|
98 |
|
99 |
}
|
100 |
|
101 |
-
$content = "<!-- MailChimp for WP v". MC4WP_LITE_VERSION ." - https://
|
102 |
|
103 |
do_action( 'mc4wp_before_checkbox' );
|
104 |
|
98 |
|
99 |
}
|
100 |
|
101 |
+
$content = "<!-- MailChimp for WP v". MC4WP_LITE_VERSION ." - https://mc4wp.com/ -->";
|
102 |
|
103 |
do_action( 'mc4wp_before_checkbox' );
|
104 |
|
includes/views/form-settings.php
CHANGED
@@ -151,7 +151,7 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
151 |
<input type="radio" readonly /> <label><?php _e("Yes"); ?></label>
|
152 |
<input type="radio" checked readonly /> <label><?php _e("No"); ?></label>
|
153 |
</td>
|
154 |
-
<td class="desc"><?php _e( 'Select "yes" if you want to use AJAX (JavaScript) to submit forms.', 'mailchimp-for-wp' ); ?> <a href="https://
|
155 |
</tr>
|
156 |
<tr valign="top">
|
157 |
<th scope="row"><label for="mc4wp_form_hide_after_success"><?php _e( 'Hide form after a successful sign-up?', 'mailchimp-for-wp' ); ?></label></th>
|
151 |
<input type="radio" readonly /> <label><?php _e("Yes"); ?></label>
|
152 |
<input type="radio" checked readonly /> <label><?php _e("No"); ?></label>
|
153 |
</td>
|
154 |
+
<td class="desc"><?php _e( 'Select "yes" if you want to use AJAX (JavaScript) to submit forms.', 'mailchimp-for-wp' ); ?> <a href="https://mc4wp.com/demo/#utm_source=lite-plugin&utm_medium=link&utm_campaign=settings-demo-link">(demo)</a></td>
|
155 |
</tr>
|
156 |
<tr valign="top">
|
157 |
<th scope="row"><label for="mc4wp_form_hide_after_success"><?php _e( 'Hide form after a successful sign-up?', 'mailchimp-for-wp' ); ?></label></th>
|
includes/views/parts/admin-need-support.php
CHANGED
@@ -21,8 +21,9 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
21 |
</ul>
|
22 |
</div>
|
23 |
<div class="mc4wp-box">
|
24 |
-
<h4 class="mc4wp-title">About Danny van Kooten</h4>
|
25 |
-
<p>
|
|
|
26 |
<p>If you like to stay updated of what I'm doing, consider following <a href="http://twitter.com/dannyvankooten">@DannyvanKooten</a> on Twitter.</p>
|
27 |
<p>Hope you enjoy the plugin!</p>
|
28 |
</div>
|
21 |
</ul>
|
22 |
</div>
|
23 |
<div class="mc4wp-box">
|
24 |
+
<h4 class="mc4wp-title">About <a href="http://dannyvankooten.com/">Danny van Kooten</a></h4>
|
25 |
+
<p>A twenty-something Dutch guy writing code and emails for a living.</p>
|
26 |
+
<p>I developed <a href="http://dannyvankooten.com/wordpress-plugins/">a few WordPress plugins</a> together totaling well over a million downloads, one of which you're using right now.</p>
|
27 |
<p>If you like to stay updated of what I'm doing, consider following <a href="http://twitter.com/dannyvankooten">@DannyvanKooten</a> on Twitter.</p>
|
28 |
<p>Hope you enjoy the plugin!</p>
|
29 |
</div>
|
languages/mailchimp-for-wp.po
CHANGED
@@ -407,7 +407,7 @@ msgstr ""
|
|
407 |
|
408 |
#: ../includes/library/license-manager/class-update-manager.php:138
|
409 |
msgid ""
|
410 |
-
"This site has not been activated properly on
|
411 |
"cannot check for future updates. Please activate your site with a valid "
|
412 |
"license key."
|
413 |
msgstr ""
|
407 |
|
408 |
#: ../includes/library/license-manager/class-update-manager.php:138
|
409 |
msgid ""
|
410 |
+
"This site has not been activated properly on mc4wp.com and thus "
|
411 |
"cannot check for future updates. Please activate your site with a valid "
|
412 |
"license key."
|
413 |
msgstr ""
|
mailchimp-for-wp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: MailChimp for WordPress Lite
|
4 |
Plugin URI: https://mc4wp.com/
|
5 |
Description: Lite version of MailChimp for WordPress. Adds various sign-up methods to your website.
|
6 |
-
Version: 2.1.
|
7 |
Author: Danny van Kooten
|
8 |
Author URI: http://dannyvankooten.com
|
9 |
Text Domain: mailchimp-for-wp
|
@@ -47,7 +47,7 @@ function mc4wp_load_plugin() {
|
|
47 |
}
|
48 |
|
49 |
// bootstrap the lite plugin
|
50 |
-
define( 'MC4WP_LITE_VERSION', '2.1.
|
51 |
define( 'MC4WP_LITE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
52 |
define( 'MC4WP_LITE_PLUGIN_URL', plugins_url( '/' , __FILE__ ) );
|
53 |
define( 'MC4WP_LITE_PLUGIN_FILE', __FILE__ );
|
3 |
Plugin Name: MailChimp for WordPress Lite
|
4 |
Plugin URI: https://mc4wp.com/
|
5 |
Description: Lite version of MailChimp for WordPress. Adds various sign-up methods to your website.
|
6 |
+
Version: 2.1.2
|
7 |
Author: Danny van Kooten
|
8 |
Author URI: http://dannyvankooten.com
|
9 |
Text Domain: mailchimp-for-wp
|
47 |
}
|
48 |
|
49 |
// bootstrap the lite plugin
|
50 |
+
define( 'MC4WP_LITE_VERSION', '2.1.2' );
|
51 |
define( 'MC4WP_LITE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
52 |
define( 'MC4WP_LITE_PLUGIN_URL', plugins_url( '/' , __FILE__ ) );
|
53 |
define( 'MC4WP_LITE_PLUGIN_FILE', __FILE__ );
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== MailChimp for WordPress ===
|
2 |
Contributors: DvanKooten
|
3 |
Donate link: https://mc4wp.com/
|
4 |
-
Tags: mailchimp,form,shortcode,widget,checkbox,comment,
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -16,7 +16,7 @@ The best MailChimp plugin to get more email subscribers. Easily add sign-up form
|
|
16 |
|
17 |
*Adding sign-up methods for your MailChimp lists to your WordPress site should be easy. With this plugin, it finally is.*
|
18 |
|
19 |
-
MailChimp for WordPress lets you create a highly customizable sign-up form which you can display wherever you want it to display using a simple shortcode, widget or template function. You can also add sign-up checkboxes to various forms on your site, like your comment or contact forms.
|
20 |
|
21 |
= Sign-Up Forms =
|
22 |
Easily create sign-up forms for your MailChimp list and display it using a simple shortcode, a widget or PHP function.
|
@@ -33,37 +33,38 @@ Add sign-up checkboxes to *any* form on your website. The plugin offers built-in
|
|
33 |
|
34 |
[Installation](http://wordpress.org/plugins/mailchimp-for-wp/installation/) | [Frequently Asked Questions](http://wordpress.org/plugins/mailchimp-for-wp/faq/) | [Screenshots](http://wordpress.org/plugins/mailchimp-for-wp/screenshots/)
|
35 |
|
36 |
-
>
|
|
|
37 |
>
|
38 |
-
>
|
|
|
|
|
|
|
|
|
|
|
39 |
>
|
40 |
-
> -
|
41 |
-
> - AJAX forms, submitting forms does not require a page reload
|
42 |
-
> - Easy CSS Builder and custom color themes
|
43 |
-
> - Reports: Statistical graphs & subscription log
|
44 |
-
> - Checkbox integration for WooCommerce & Easy Digital Downloads checkout
|
45 |
-
> - Priority support
|
46 |
-
>
|
47 |
-
> [More information](https://mc4wp.com/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=after-features-link) | [Form demo's](https://mc4wp.com/demo/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=after-features-link) | [Upgrade now >>](https://dannyvankooten.com/mailchimp-for-wordpress/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=after-features-link)
|
48 |
|
49 |
**Translations**
|
50 |
|
51 |
The MailChimp for WordPress plugin is fully translated into the following languages.
|
52 |
|
53 |
-
- English (en_US) - Danny van Kooten
|
54 |
-
- Dutch (nl_NL) - Danny van Kooten
|
55 |
- Spanish (es_ES) - [Paul Benitez - Tecnofilos](http://www.tecnofilos.net/)
|
56 |
- Brazilian (pt_BR) - [Felipe Scuissiatto - Evonline](http://www.evonline.com.br/)
|
57 |
- German (de_DE) - [Jochen Gererstorfer](http://slotnerd.de/)
|
58 |
-
- Italian (it_IT) - [Gianpaolo Rolando](
|
|
|
59 |
|
60 |
-
If you
|
61 |
|
62 |
**More information**
|
63 |
|
|
|
64 |
- Other [WordPress plugins](http://dannyvankooten.com/wordpress-plugins/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=more-info-link) by [Danny van Kooten](http://dannyvankooten.com#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=more-info-link)
|
65 |
-
-
|
66 |
-
-
|
67 |
|
68 |
|
69 |
== Installation ==
|
@@ -76,9 +77,9 @@ If you have created your own language pack (or have an update of an existing one
|
|
76 |
|
77 |
= Configuring Sign-Up Checkboxes =
|
78 |
1. Go to *MailChimp for WP > Checkboxes*
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
|
83 |
`
|
84 |
<label><input type="checkbox" name="mc4wp-subscribe" value="1" /> Subscribe to our newsletter.</label>
|
@@ -86,15 +87,15 @@ If you have created your own language pack (or have an update of an existing one
|
|
86 |
|
87 |
= Configuring Sign-Up Form(s) =
|
88 |
1. Go to *MailChimp for WP > Forms*
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
|
93 |
`
|
94 |
[mc4wp_form]
|
95 |
`
|
96 |
-
|
97 |
-
|
98 |
|
99 |
`
|
100 |
<?php
|
@@ -111,16 +112,16 @@ If you like the plugin, [get the Pro version of MailChimp for WordPress](https:/
|
|
111 |
|
112 |
== Frequently Asked Questions ==
|
113 |
|
114 |
-
|
|
|
|
|
|
|
115 |
>
|
116 |
-
>
|
117 |
-
>
|
118 |
-
>
|
119 |
-
>
|
120 |
-
>
|
121 |
-
> - Reports: Graphs & log. Learn when, where and how your visitors subscribed.
|
122 |
-
>
|
123 |
-
> [More Pro features](https://mc4wp.com/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=faq-link) | [Demo](https://dannyvankooten.com/mailchimp-for-wordpress/demo/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=faq-link)
|
124 |
|
125 |
= How to display a form in posts or pages? =
|
126 |
Use the `[mc4wp_form]` shortcode.
|
@@ -158,7 +159,7 @@ You can use CSS rules to style the sign-up form, use the following CSS selectors
|
|
158 |
.mc4wp-alert { ... } /* success & error messages */
|
159 |
.mc4wp-success { ... } /* success message */
|
160 |
.mc4wp-error { ... } /* error messages */
|
161 |
-
`
|
162 |
|
163 |
Add your custom CSS rules to the end of your theme stylesheet, **/wp-content/themes/your-theme-name/style.css**. Do not add them to the plugin stylesheet as they will be automatically overwritten on the next plugin update.
|
164 |
|
@@ -168,7 +169,7 @@ Add your custom CSS rules to the end of your theme stylesheet, **/wp-content/the
|
|
168 |
[You can find your MailChimp API key here](http://kb.mailchimp.com/article/where-can-i-find-my-api-key)
|
169 |
|
170 |
= How to add a sign-up checkbox to my Contact Form 7 forms? =
|
171 |
-
Use the following shortcode in your CF7 form mark-up to display a sign-up checkbox.
|
172 |
|
173 |
`[mc4wp_checkbox "My custom label text"]`
|
174 |
|
@@ -219,6 +220,11 @@ Not at the moment, but you can add more data using a filter. Here is a code snip
|
|
219 |
= How do I add a Captcha to my forms? =
|
220 |
Install the [BWS Captcha](https://wordpress.org/plugins/captcha/) plugin, then use `[captcha]` inside your form mark-up.
|
221 |
|
|
|
|
|
|
|
|
|
|
|
222 |
= Why does the checkbox not show up at my comment form? =
|
223 |
Your theme probably does not support the necessary comment hook this plugin uses to add the checkbox to your comment form. You can manually place the checkbox by placing the following code snippet inside the form tags of your theme's comment form.
|
224 |
|
@@ -231,7 +237,7 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
|
|
231 |
1. Simple or advanced sign-up forms that blend in with your theme.
|
232 |
2. A sign-up checkbox in your comment form is an amazing conversion booster.
|
233 |
3. A simple form in the footer of the Twenty Thirteen theme.
|
234 |
-
4. Add sign-up checkboxes to various places on your site.
|
235 |
5. Creating sign-up forms is easy. The Pro version allows you to create as many form as you like.
|
236 |
6. Write your own HTML or have it generated for you. Many (optional) customization settings are availabl.
|
237 |
7. **Pro only:** Gain valuable insights which method your visitors used to subscribe for any given time period using beautiful line charts.
|
@@ -239,6 +245,25 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
|
|
239 |
|
240 |
== Changelog ==
|
241 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
= 2.1.1 - August 12, 2014 =
|
243 |
|
244 |
**Fixes**
|
@@ -480,7 +505,6 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
|
|
480 |
* Added: filter to add more variables to Checkbox Sign-Ups.
|
481 |
* Improved: more fields unlocked in "add field" tool when editing forms.
|
482 |
* Improved: smarter auto-detection of name fields when integrating with third-party forms like Contact Form 7
|
483 |
-
* Changed: links point to new [MailChimp for WordPress](https://dannyvankooten.com/mailchimp-for-wordpress/) page now.
|
484 |
|
485 |
= 1.3.1 - October 20, 2013 =
|
486 |
* Fixed: bug when calling MailChimp API for PHP 5.2
|
@@ -499,7 +523,7 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
|
|
499 |
|
500 |
= 1.2.4 - October 6, 2013 =
|
501 |
* Improved: code performance improvements
|
502 |
-
* Improved: added `mc4wp_get_form()` for an easier shortcode callback. Useful to [add a sign-up form to the end of your posts](http://dannyvankooten.com/
|
503 |
* Improved default CSS
|
504 |
* Improved: checkbox debug message only shows to WP Administrators when JavaScript is disabled
|
505 |
* Added: form nonce for better security
|
@@ -525,5 +549,5 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
|
|
525 |
|
526 |
== Upgrade Notice ==
|
527 |
|
528 |
-
= 2.1.
|
529 |
-
Added
|
1 |
=== MailChimp for WordPress ===
|
2 |
Contributors: DvanKooten
|
3 |
Donate link: https://mc4wp.com/
|
4 |
+
Tags: mailchimp,newsletter,optin,mailinglist,sign-up form,subscribe,form,shortcode,widget,checkbox,comment,buddypress,multisite,bbpress,woocommerce,easy digital downloads,contact form,contact form 7,events manager,comment form,registration form,captcha
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 2.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
16 |
|
17 |
*Adding sign-up methods for your MailChimp lists to your WordPress site should be easy. With this plugin, it finally is.*
|
18 |
|
19 |
+
MailChimp for WordPress lets you create a highly customizable sign-up form which you can display wherever you want it to display using a simple shortcode, widget or template function. You can also add sign-up checkboxes to various forms on your site, like your comment or contact forms.
|
20 |
|
21 |
= Sign-Up Forms =
|
22 |
Easily create sign-up forms for your MailChimp list and display it using a simple shortcode, a widget or PHP function.
|
33 |
|
34 |
[Installation](http://wordpress.org/plugins/mailchimp-for-wp/installation/) | [Frequently Asked Questions](http://wordpress.org/plugins/mailchimp-for-wp/faq/) | [Screenshots](http://wordpress.org/plugins/mailchimp-for-wp/screenshots/)
|
35 |
|
36 |
+
> #### MailChimp for WordPress Pro
|
37 |
+
> This plugin has a premium version which comes with the following features.<br />
|
38 |
>
|
39 |
+
> Multiple Forms. Each form can subscribe to one or multiple MailChimp lists<br />
|
40 |
+
> Easy CSS Styles Builder & Custom Color Themes.<br />
|
41 |
+
> AJAX Forms. Forms do not require a page reload.<br />
|
42 |
+
> Log & Statistics. Useful insights.<br />
|
43 |
+
> WooCommerce and Easy Digital Downloads checkout integration.<br />
|
44 |
+
> Priority Support<br />
|
45 |
>
|
46 |
+
> [More information](https://mc4wp.com/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=after-features-link) | [Demo](https://mc4wp.com/demo/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=after-features-link)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
**Translations**
|
49 |
|
50 |
The MailChimp for WordPress plugin is fully translated into the following languages.
|
51 |
|
52 |
+
- English (en_US) - [Danny van Kooten](http://dannyvankooten.com)
|
53 |
+
- Dutch (nl_NL) - [Danny van Kooten](http://dannyvankooten.com)
|
54 |
- Spanish (es_ES) - [Paul Benitez - Tecnofilos](http://www.tecnofilos.net/)
|
55 |
- Brazilian (pt_BR) - [Felipe Scuissiatto - Evonline](http://www.evonline.com.br/)
|
56 |
- German (de_DE) - [Jochen Gererstorfer](http://slotnerd.de/)
|
57 |
+
- Italian (it_IT) - [Gianpaolo Rolando](http://www.gianpaolorolando.eu/)
|
58 |
+
- Slovak (sk_SK) - [Henrich Koszegi - Webworks](http://webworks.sk/)
|
59 |
|
60 |
+
If you want to help [translating the MailChimp for WordPress plugin](http://docs.mc4wp.com/article/41-translating-mailchimp-for-wordpress), head over to [translate.mc4wp.com](http://translate.mc4wp.com) .
|
61 |
|
62 |
**More information**
|
63 |
|
64 |
+
- [MailChimp for WordPress Pro](https://mc4wp.com/), containing additional features.
|
65 |
- Other [WordPress plugins](http://dannyvankooten.com/wordpress-plugins/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=more-info-link) by [Danny van Kooten](http://dannyvankooten.com#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=more-info-link)
|
66 |
+
- [@DannyvanKooten](http://twitter.com/dannyvankooten) on Twitter
|
67 |
+
- Developers; follow or contribute to the [MailChimp for WP plugin on GitHub](https://github.com/dannyvankooten/mailchimp-for-wordpress)
|
68 |
|
69 |
|
70 |
== Installation ==
|
77 |
|
78 |
= Configuring Sign-Up Checkboxes =
|
79 |
1. Go to *MailChimp for WP > Checkboxes*
|
80 |
+
2. Select at least one of your MailChimp lists to subscribe to.
|
81 |
+
3. Select the forms you want to add a sign-up checkbox to, eg your comment form.
|
82 |
+
4. Integrate the sign-up checkbox with any other form by using the following HTML.
|
83 |
|
84 |
`
|
85 |
<label><input type="checkbox" name="mc4wp-subscribe" value="1" /> Subscribe to our newsletter.</label>
|
87 |
|
88 |
= Configuring Sign-Up Form(s) =
|
89 |
1. Go to *MailChimp for WP > Forms*
|
90 |
+
2. Select at least one of your MailChimp lists to subscribe to.
|
91 |
+
3. *(Optional)* Add more fields or dynamic content to your form using the **add MailChimp field** dropdown.
|
92 |
+
4. Embed a sign-up form in pages or posts by using the following shortcode.
|
93 |
|
94 |
`
|
95 |
[mc4wp_form]
|
96 |
`
|
97 |
+
5. Show a sign-up form in your widget areas using the "MailChimp Sign-Up Form" widget.
|
98 |
+
6. Show a sign-up form from your theme files by using the following PHP function.
|
99 |
|
100 |
`
|
101 |
<?php
|
112 |
|
113 |
== Frequently Asked Questions ==
|
114 |
|
115 |
+
|
116 |
+
> **What are the main differences between Pro and Lite?**<br />
|
117 |
+
>
|
118 |
+
> MailChimp for WordPress Pro comes with some additional features.<br />
|
119 |
>
|
120 |
+
> **Multiple Forms.** Each form can have unique settings. <br />
|
121 |
+
> **AJAX Forms.** Submitting forms does not require a page reload.<br />
|
122 |
+
> **Styles Builder..** Alter the design of your forms and have the styling rules generated for you.<br />
|
123 |
+
> **Statistics & Logging.** Beautiful line charts and log tables, providing useful insights.<br /><br />
|
124 |
+
> [Have a look](https://mc4wp.com/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=faq-link) | [Demo](https://mc4wp.com/demo/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=faq-link)
|
|
|
|
|
|
|
125 |
|
126 |
= How to display a form in posts or pages? =
|
127 |
Use the `[mc4wp_form]` shortcode.
|
159 |
.mc4wp-alert { ... } /* success & error messages */
|
160 |
.mc4wp-success { ... } /* success message */
|
161 |
.mc4wp-error { ... } /* error messages */
|
162 |
+
`
|
163 |
|
164 |
Add your custom CSS rules to the end of your theme stylesheet, **/wp-content/themes/your-theme-name/style.css**. Do not add them to the plugin stylesheet as they will be automatically overwritten on the next plugin update.
|
165 |
|
169 |
[You can find your MailChimp API key here](http://kb.mailchimp.com/article/where-can-i-find-my-api-key)
|
170 |
|
171 |
= How to add a sign-up checkbox to my Contact Form 7 forms? =
|
172 |
+
Use the following shortcode in your CF7 form mark-up to display a sign-up checkbox.
|
173 |
|
174 |
`[mc4wp_checkbox "My custom label text"]`
|
175 |
|
220 |
= How do I add a Captcha to my forms? =
|
221 |
Install the [BWS Captcha](https://wordpress.org/plugins/captcha/) plugin, then use `[captcha]` inside your form mark-up.
|
222 |
|
223 |
+
= How do I add a checkbox to my Events Manager booking form? =
|
224 |
+
Add a checkbox field to your booking form and name it `mc4wp-subscribe`.
|
225 |
+
|
226 |
+
Optionally, add more MailChimp fields by prefixing the MailChimp list field name with `mc4wp-`, eg `mc4wp-website`.
|
227 |
+
|
228 |
= Why does the checkbox not show up at my comment form? =
|
229 |
Your theme probably does not support the necessary comment hook this plugin uses to add the checkbox to your comment form. You can manually place the checkbox by placing the following code snippet inside the form tags of your theme's comment form.
|
230 |
|
237 |
1. Simple or advanced sign-up forms that blend in with your theme.
|
238 |
2. A sign-up checkbox in your comment form is an amazing conversion booster.
|
239 |
3. A simple form in the footer of the Twenty Thirteen theme.
|
240 |
+
4. Add sign-up checkboxes to various places on your site.
|
241 |
5. Creating sign-up forms is easy. The Pro version allows you to create as many form as you like.
|
242 |
6. Write your own HTML or have it generated for you. Many (optional) customization settings are availabl.
|
243 |
7. **Pro only:** Gain valuable insights which method your visitors used to subscribe for any given time period using beautiful line charts.
|
245 |
|
246 |
== Changelog ==
|
247 |
|
248 |
+
|
249 |
+
= 2.1.2 - August, 26, 2014 =
|
250 |
+
|
251 |
+
**Fixes**
|
252 |
+
|
253 |
+
- Remove `type` attribute from `textarea` elements
|
254 |
+
- Check for array fields in form when checking presence of required MailChimp list fields
|
255 |
+
|
256 |
+
**Improvements**
|
257 |
+
|
258 |
+
- Added `-webkit-appearance` reset to checkbox CSS
|
259 |
+
- Updated Italian translations
|
260 |
+
- Updated links to point to the new [MailChimp for WordPress Pro](https://mc4wp.com/) site.
|
261 |
+
- Don't use `{response}` tag if form is hidden after successful submissions
|
262 |
+
|
263 |
+
**Additions**
|
264 |
+
|
265 |
+
- Added official integration with [Events Manager](https://wordpress.org/plugins/events-manager/). Just include a `mc4wp-subscribe` checkbox field and MailChimp for WordPress will do the rest.
|
266 |
+
|
267 |
= 2.1.1 - August 12, 2014 =
|
268 |
|
269 |
**Fixes**
|
505 |
* Added: filter to add more variables to Checkbox Sign-Ups.
|
506 |
* Improved: more fields unlocked in "add field" tool when editing forms.
|
507 |
* Improved: smarter auto-detection of name fields when integrating with third-party forms like Contact Form 7
|
|
|
508 |
|
509 |
= 1.3.1 - October 20, 2013 =
|
510 |
* Fixed: bug when calling MailChimp API for PHP 5.2
|
523 |
|
524 |
= 1.2.4 - October 6, 2013 =
|
525 |
* Improved: code performance improvements
|
526 |
+
* Improved: added `mc4wp_get_form()` for an easier shortcode callback. Useful to [add a sign-up form to the end of your posts](http://dannyvankooten.com/add-mailchimp-sign-up-form-end-of-posts/).
|
527 |
* Improved default CSS
|
528 |
* Improved: checkbox debug message only shows to WP Administrators when JavaScript is disabled
|
529 |
* Added: form nonce for better security
|
549 |
|
550 |
== Upgrade Notice ==
|
551 |
|
552 |
+
= 2.1.2 =
|
553 |
+
Added Events Manager integration and other minor improvements & edge case bug fixes.
|