Version Description
- Changed the list logic and added a notice for the MERGE VAR naming schema
Download this release
Release Info
Developer | yikesinc |
Plugin | Easy Forms for MailChimp |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.1.0
- classes/class.yksemeBase.php +37 -11
- css/style.ykseme.css +11 -0
- pages/lists.php +11 -0
- readme.txt +8 -1
- screenshot-4.png +0 -0
- templates/shortcode_form.php +1 -0
- yikes-inc-easy-mailchimp-extender.php +2 -2
classes/class.yksemeBase.php
CHANGED
@@ -429,17 +429,43 @@ public function addUserToMailchimp($p)
|
|
429 |
if(!empty($fd['yks-mailchimp-list-id']))
|
430 |
{
|
431 |
$api = new MCAPI($this->optionVal['api-key']);
|
432 |
-
$mv = array(
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
// By default this sends a confirmation email - you will not see new members
|
444 |
// until the link contained in it is clicked!
|
445 |
$retval = $api->listSubscribe($fd['yks-mailchimp-list-id'], $fd['yks-mailchimp-field-email'], $mv);
|
429 |
if(!empty($fd['yks-mailchimp-list-id']))
|
430 |
{
|
431 |
$api = new MCAPI($this->optionVal['api-key']);
|
432 |
+
$mv = array();
|
433 |
+
|
434 |
+
// First name
|
435 |
+
if(isset($fd['yks-mailchimp-field-phone']))
|
436 |
+
{
|
437 |
+
$mv['FNAME'] = $fd['yks-mailchimp-field-name-first'];
|
438 |
+
}
|
439 |
+
|
440 |
+
// Last name
|
441 |
+
if(isset($fd['yks-mailchimp-field-phone']))
|
442 |
+
{
|
443 |
+
$mv['LNAME'] = $fd['yks-mailchimp-field-name-last'];
|
444 |
+
}
|
445 |
+
|
446 |
+
// Address
|
447 |
+
if(isset($fd['yks-mailchimp-field-address'])
|
448 |
+
|| isset($fd['yks-mailchimp-field-apt-suite'])
|
449 |
+
|| isset($fd['yks-mailchimp-field-city'])
|
450 |
+
|| isset($fd['yks-mailchimp-field-state'])
|
451 |
+
|| isset($fd['yks-mailchimp-field-zip']))
|
452 |
+
{
|
453 |
+
$mv['ADDR1'] = array(
|
454 |
+
'addr1'=> $fd['yks-mailchimp-field-address'].(!empty($fd['yks-mailchimp-field-apt-suite']) ? ' '.$fd['yks-mailchimp-field-apt-suite'] : ''),
|
455 |
+
'city' => $fd['yks-mailchimp-field-city'],
|
456 |
+
'state' => $fd['yks-mailchimp-field-state'],
|
457 |
+
'zip' => $fd['yks-mailchimp-field-zip']
|
458 |
+
);
|
459 |
+
}
|
460 |
+
|
461 |
+
// Phone
|
462 |
+
if(isset($fd['yks-mailchimp-field-phone']))
|
463 |
+
{
|
464 |
+
$mv['PHONE'] = $fd['yks-mailchimp-field-phone'];
|
465 |
+
}
|
466 |
+
|
467 |
+
|
468 |
+
|
469 |
// By default this sends a confirmation email - you will not see new members
|
470 |
// until the link contained in it is clicked!
|
471 |
$retval = $api->listSubscribe($fd['yks-mailchimp-list-id'], $fd['yks-mailchimp-field-email'], $mv);
|
css/style.ykseme.css
CHANGED
@@ -31,6 +31,17 @@
|
|
31 |
margin: 15px auto 15px auto;
|
32 |
text-align: center;
|
33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
.yks-mailchimp-fields-td
|
36 |
{
|
31 |
margin: 15px auto 15px auto;
|
32 |
text-align: center;
|
33 |
}
|
34 |
+
.yks-status .yks-notice
|
35 |
+
{
|
36 |
+
color: #000;
|
37 |
+
width: 80%;
|
38 |
+
height: auto;
|
39 |
+
border: 2px solid #0033AA;
|
40 |
+
background: #CCDDFF;
|
41 |
+
clear: both;
|
42 |
+
margin: 15px auto 15px auto;
|
43 |
+
text-align: center;
|
44 |
+
}
|
45 |
|
46 |
.yks-mailchimp-fields-td
|
47 |
{
|
pages/lists.php
CHANGED
@@ -157,6 +157,17 @@
|
|
157 |
|
158 |
<h3>Manage the Mailchimp Lists</h3>
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
<div id="yks-list-wrapper"><?php echo $this->generateListContainers(); ?></div>
|
161 |
|
162 |
</div>
|
157 |
|
158 |
<h3>Manage the Mailchimp Lists</h3>
|
159 |
|
160 |
+
<div class="yks-status" style="display: block;">
|
161 |
+
<div class="yks-notice">
|
162 |
+
<p>
|
163 |
+
<strong>Notice:</strong> For the lists to work correctly right now, you need to use specific names for the MERGE VARS. I'm working on a proper fix that will allow you to use custom MERGE VARS, until then, please name them as follows:<br />
|
164 |
+
<strong>First Name:</strong> *|FNAME|*<br />
|
165 |
+
<strong>Last Name:</strong> *|LNAME|*<br />
|
166 |
+
<strong>Address:</strong> *|ADDR1|*
|
167 |
+
</p>
|
168 |
+
</div>
|
169 |
+
</div>
|
170 |
+
|
171 |
<div id="yks-list-wrapper"><?php echo $this->generateListContainers(); ?></div>
|
172 |
|
173 |
</div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yikesinc.com
|
|
4 |
Tags: mailchimp, marketing, email, mailing lists, newsletter, signup
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 3.2
|
7 |
-
Stable tag: 1.0
|
8 |
|
9 |
The YIKES, Inc. MailChimp extender allows you to easily add a MailChimp signup form to a page or post using a shortcode or template tag.
|
10 |
|
@@ -40,14 +40,21 @@ For more help visit [The API Key Help Article](http://kb.mailchimp.com/article/w
|
|
40 |
From your MailChimp Dashboard go to Lists. Under the specific list you want to make a signup form for, click settings > list settings and unique ID.
|
41 |
For more help visit [The List Id Help Article](http://kb.mailchimp.com/article/how-can-i-find-my-list-id/ "List Id Help Article")
|
42 |
|
|
|
|
|
|
|
43 |
== Screenshots ==
|
44 |
|
45 |
1. Sidebar menu
|
46 |
2. Options page
|
47 |
3. List page
|
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
51 |
= 1.0.1 =
|
52 |
* Changed CSS paths from Absolute to Relative
|
53 |
|
4 |
Tags: mailchimp, marketing, email, mailing lists, newsletter, signup
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 3.2
|
7 |
+
Stable tag: 1.1.0
|
8 |
|
9 |
The YIKES, Inc. MailChimp extender allows you to easily add a MailChimp signup form to a page or post using a shortcode or template tag.
|
10 |
|
40 |
From your MailChimp Dashboard go to Lists. Under the specific list you want to make a signup form for, click settings > list settings and unique ID.
|
41 |
For more help visit [The List Id Help Article](http://kb.mailchimp.com/article/how-can-i-find-my-list-id/ "List Id Help Article")
|
42 |
|
43 |
+
= My Information isn't showing up when people subscribe! =
|
44 |
+
This is a temporary issue that has to do with the MERGE VARS naming. Follow the instruction of the notice on the lists page. The next major version will fix this issue.
|
45 |
+
|
46 |
== Screenshots ==
|
47 |
|
48 |
1. Sidebar menu
|
49 |
2. Options page
|
50 |
3. List page
|
51 |
+
4. List setup you need to use
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.1.0 =
|
56 |
+
* Changed the list logic and added a notice for the MERGE VAR naming schema
|
57 |
+
|
58 |
= 1.0.1 =
|
59 |
* Changed CSS paths from Absolute to Relative
|
60 |
|
screenshot-4.png
ADDED
Binary file
|
templates/shortcode_form.php
CHANGED
@@ -54,6 +54,7 @@ endif; endforeach;
|
|
54 |
}
|
55 |
else
|
56 |
{
|
|
|
57 |
$('#yks-status-<?php echo $list['id']; ?>').html('<div class="yks-error"><p>There was an error submiting the form -- please try again!</p></div>');
|
58 |
$('#yks-status-<?php echo $list['id']; ?>').slideDown('fast');
|
59 |
}
|
54 |
}
|
55 |
else
|
56 |
{
|
57 |
+
$('#ykfmc-submit_<?php echo $list['id']; ?>').removeAttr('disabled');
|
58 |
$('#yks-status-<?php echo $list['id']; ?>').html('<div class="yks-error"><p>There was an error submiting the form -- please try again!</p></div>');
|
59 |
$('#yks-status-<?php echo $list['id']; ?>').slideDown('fast');
|
60 |
}
|
yikes-inc-easy-mailchimp-extender.php
CHANGED
@@ -4,7 +4,7 @@
|
|
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: 1.0
|
8 |
Author: Yikes, Inc
|
9 |
Author URI: http://www.yikesinc.com
|
10 |
License: GPL2
|
@@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
29 |
#_________________________________________________ CONSTANTS
|
30 |
/** Configuration **/
|
31 |
if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', true);
|
32 |
-
if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '1.0');
|
33 |
if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
|
34 |
if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'Sean Kennedy');
|
35 |
if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');
|
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: 1.1.0
|
8 |
Author: Yikes, Inc
|
9 |
Author URI: http://www.yikesinc.com
|
10 |
License: GPL2
|
29 |
#_________________________________________________ CONSTANTS
|
30 |
/** Configuration **/
|
31 |
if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', true);
|
32 |
+
if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '1.1.0');
|
33 |
if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
|
34 |
if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'Sean Kennedy');
|
35 |
if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');
|