SL MailChimp Subscribe
Automatically add new members to MailChimp mailing lists.
No video? Hmm, I guess you haven’t got Flash installed.
Not to worry, there are detailed instructions below to help get you up and running.
Overview
Download
SL MailChimp Subscribe, v1.1.2
(ZIP, 53KB)
SL MailChimp Subscribe makes it easy to subscribe new members of your ExpressionEngine-powered website to one or more MailChimp mailing lists.
Here are a few of the highlights:
- Automatically add a member to one or more mandatory mailing lists.
- Specify “opt-in triggers” to allow a member to control which lists he is added to.
- Associate custom ExpressionEngine member profile fields with MailChimp Interest Groups and Merge Variables, on a list-by-list basis.
Simply enter your MailChimp API key, configure your mailing lists, and the extension does the rest.
Requirements
SL MailChimp Subscribe requires that the “jQuery for the Control Panel” extension be installed and enabled in order to function correctly.
“jQuery for the Control Panel” is installed (but disabled) by default on ExpressionEngine version 1.6.5 and up. You can also download it directly from the ExpressionEngine website.
SL MailChimp Subscribe also makes use of Leevi Graham’s LG Addon Updater extension to keep you informed about updates and bug fixes, but will function perfectly well without it.
Installation and Upgrading
The SL MailChimp Subscribe ZIP file contains an extensions folder, a language folder, and a themes folder. Here’s how to install the extension:
- Extract the ZIP file.
- Copy the
extensions/ext.sl_mailchimp_subscribe.phpfile to your/system/extensions/directory. - Copy the
extensions/sl_mailchimp_subscribefolder to your/system/extensions/directory. - Copy the
language/english/lang.sl_mailchimp_subscribe.phpfile to your/system/languages/english/directory. - SL MailChimp Subscribe can keep a log of any errors it encounters when subscribing new site members to your MailChimp mailing lists. To enable this, you’ll need to set the permissions on the
/system/extensions/sl_mailchimp_subscribe/log/directory to755. - If you’re installing SL MailChimp Subscribe for the first time, open the Extensions Manager, and enable the extension.
Configuration
Retrieving and configuring your MailChimp mailing lists is a 2 step process:
- Enter your MailChimp API key, and click the “Get clients” link. The extension includes a quick link to retrieve your MailChimp API key, in case you haven’t got it to hand.
- Select the mailing lists to which you wish to subscribe newly activated members, by ticking the checkbox next to the list name. If required, you can also select an “opt-in trigger” (see below), and map MailChimp Interest Groups and Merge Variables to custom ExpressionEngine member profile fields.
Trigger fields
A “trigger” field is a custom ExpressionEngine member profile field that must contain a specific value in order for the mailing list subscription to be processed.
For example, you may have a “Special Offers” mailing list, which new members must opt-in to. Here’s how to implement this:
- Create a new custom EE member profile field, and give it an appropriate field name (for example, “subscribe-offers”) and label (for example, “Receive our special offers newsletter?”). Specify
Drop-down listas the field type, and add the optionsYesandNo. - Open the SL MailChimp Subscribe extension settings page. Tick the checkbox for the “Special Offers” mailing list, select the member profile field you just created from the “Trigger field” drop-down, and set the “Trigger value” to
Yes.
Usage
Once the extension is installed and configured, it will automatically subscribe newly registered users to the specified MailChimp mailing lists.
If you’ve specified “Self-activation via email” in your ExpressionEngine Membership Preferences, mailing list subscriptions will not be processed until the member has confirmed his registration.
The extension works best with “single opt-in” MailChimp lists.
Support
Support is provided via this thread on the ExpressionEngine forums.
License
SL MailChimp Subscribe is made available under a Creative Commons Attribution-Share Alike 3.0 Unported License.
- Fixed minor bug caused by the foolish assumption that an array key will always exist (thanks to @methnen for spotting my deliberate mistake).
- Updated the MailChimp-supplied API wrapper to the latest version, in anticipation of upcoming changes to the API endpoint URLs.
- Implemented
user_register_endhook, to accommodate “no activation required” sites utilising the User module.
- Tidied up code.
- Improved inline help text.
- Initial release.
Need a custom ExpressionEngine addon?
Find out about our ExpressionEngine development services.