Extension:MailChimpForms

From Linux Web Expert

MediaWiki extensions manual
MailChimpForms
Release status: unmaintained
Implementation Parser extension , Tag
Description Adds MailChimp subscription management forms to your wiki. Currently only supports the sign-up form.
Author(s) Andrew Mahr (jamahrtalk)
Latest version 1.0
MediaWiki 1.16+
Database changes No
License No license specified
Download MailChimpForms.php
‎<mailchimpforms />
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

The MailChimpForms extension allows the insertion of MailChimp forms easy on your wiki. Currently it only supports the sign-up form, but should be easy to add more functionality if you're interested in doing so.

Usage

Insert a form using the new tag <mailchimpforms> using these parameters.

Required parameters

  • prefix: the text that comes before us1.list-manage.com in the URLs that MailChimp uses to manage your lists (usually it is the name of your organization, all lower-case, no spaces)
  • account: your 24-character account id with MailChimp. You can get this by looking at the sign-up form code that MailChimp provides you, and looking for the parameter u=xxxxxxxxxxxxxxxxxxxxxxx
  • list: the 10-character id of the list you want the form to work with, found in the same place as the account id above
  • type: the type of form to insert, which right now can only be set to subscribe

Optional parameters

  • bordercss: if you want to customize the border around your form, enter the code here, e.g. 1px solid black
  • closelink: set to true if you want the "Close" link to appear under your form

Example

This following code will insert a form for a Mediawiki mailing list (fictional) with no border and no "Close" link:

<mailchimpforms prefix="mediawiki" account="abcdefghijklmnopqrstuvwx" list="0123456789" type="subscribe" />

Installation

  • <translate> <tvar name=1>Copy the code into a file</tvar> and place the file(s) in a directory called <tvar name=name>MailChimpForms</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    require_once "$IP/extensions/MailChimpForms/MailChimpForms.php";
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>