Title: NGP Forms
Author: Signalfade
Published: <strong>2013 年 6 月 7 日</strong>
Last modified: 2018 年 5 月 1 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/ngp-forms.svg)

# NGP Forms

 由 [Signalfade](https://profiles.wordpress.org/signalfade/) 開發

[下載](https://downloads.wordpress.org/plugin/ngp-forms.1.2.8.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/ngp-forms/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/ngp-forms/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/ngp-forms/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/ngp-forms/#developers)

 [技術支援](https://wordpress.org/support/plugin/ngp-forms/)

## 外掛說明

This plugin helps you integrate NGP (NGP VAN) donation, signup, and volunteer forms
with your site. You’ll need an SSL certificate running on your site if you want 
to use the donation portion of this plugin.

This plugin _does not_ work with the new NGP Action Platform.

### Alert No. 1!

This plugin does _not_ work with NGP’s recently released “NEW” platform. I think
they call it the “Action” platform, but it’s unclear.

### Alert No. 2!

You should be running your site under an SSL certificate if you utilize this plugin
for donations.

### Usage

Place this short tag on the appropriate page or article:

### [ngp_show_donation]

You can set custom amounts for the donation amount in two ways:

 1. Put the amounts in the embed tag: `[ngp_show_donation amounts="50,250,1000"]`
 2. Put the amounts in a GET querystring: `http://mycamapign.com/donation?amounts=50,250,1000`

If you want to have a default donation amounts, put them in the embed tag and then
override it with a querystring amounts when you need to.

You can source an article in two ways:

 1. Put source in the embed tag: `[ngp_show_form source="hard-hitting-ad"]`
 2. Put the source in a GET querystring: `http://mycamapign.com/donation?source=hard-
    hitting-ad`

If you want to have a default donation source, put it in the embed tag and then 
override it with a querystring source when you need to.

You can set custom thanks URL for the donation process by putting the url in the
embed tag:

    ```
    [ngp_show_donation thanks_url="/thanks-for-your-donation"]
    ```

The donations thanks URL defaults to: `/thank-you-for-your-contribution`

You can turn off the custom amount field:

    ```
    [ngp_show_donation custom_amt_off="true"]<h3>Careful!</h3>
    ```

_If you turn off the custom amount field and you’re using the Donation Invite form,
you’ll have constituents entering amounts that can’t be found in the form and don’t
have a chance of getting placed in a custom amount field!_

### Donation Suggested jQuery

We use the following on our donation pages to make sure that the user understands
that the radio buttons and the input field are for the same thing. If the user doesn’t
support javascript and the custom field holds a value, it always overrides whatever’s
selected in the radio buttons.

    ```
    $('.ngp_custom_dollar_amt').keyup(function() {
        if($(this).val()!='') { $('.Amount').attr('checked', false); }
    });
    $('.Amount').mouseup(function() {
        $('.ngp_custom_dollar_amt').val('');
    });<h3>[ngp_show_volunteer]</h3>
    ```

You can set custom thanks URL for the donation process by putting the url in the
embed tag:

    ```
    [ngp_show_volunteer thanks_url="/thanks-for-your-work-pledge"]
    ```

The volunteer thanks URL defaults to: `/thank-you-for-volunteering`

### [ngp_show_signup]

You can set custom thanks URL for the email signup process by putting the url in
the embed tag:

    ```
    [ngp_show_signup thanks_url="/thanks-for-signing-up-for-incessant-emails"]
    ```

The email signup thanks URL defaults to: `/thank-you-for-signing-up`

### Signup Extensive Options

Signup can make use of the COO API, if you happen to have credentials for that particular
NGP API endpoint. This API allows you to send in less comprehensive data for signups.

You can find the three necessary pieces of information for configuring the plugin
to use the COO API on the General Setting page.

When you’ve configured the plugin to use the COO API, you can specify what fields
you want the signup embed tag to use. You must specify _at least_ Phone or Email.

    ```
    [ngp_show_signup fields="Name|Email|Phone|Zip"]
    ```

Be aware that this data will end up in your NGP consituents database without any
other accompanying information if a match cannot be made to existing data.

### [ngp_donation_invite_form url=”/donate”]

You must set the url that the donation invite form heads to. It must be a relative
URL.

If you want to have a donation source appended to the linked URL, put it in the 
embed tag:

    ```
    [ngp_donation_invite_form url="/donate" source="invite-form"]
    ```

If you absolutely must have this invite form set custom amounts on your donation
form, do it like this:

    ```
    [ngp_donation_invite_form url="/donate/?amounts=10,20,30,40,50"]
    ```

## 安裝方式

Go to `Settings -> General` and fill out the “NGP API Key”, “Donation Support Phone
Line”, and “Addt’l Information for Donation Footer” fields.

 * This plugin requires php greater than or equal to version 5.3
 * “NGP API Key” is how this plugin authenticates with your NGP VAN service. You
   need to make sure the API Credentials string you get from NGP is for the “CWP”
   API.
 * “NGP Secure URL” is used if you need to specify a different secure URL than the
   site might have already been configured to use (for instance, your SSL cert is
   for donate.yourdomain.com, which points at your WordPress site, but the site 
   also loads under www.yourdomain.com).
 * “Check to accept Amex” is a checkbox that, when checked, causes the American 
   Express options for card-type to show up on the front-end.
 * “Donation Support Phone Line” is shown with the error message when the contribution
   gets rejected by the NGP VAN server.
 * “Addt’l Information for Donation Footer” might be used for listing things like
   donation mailing address, donation limits, taxable status of donations, etc.

If you want to use this plugin, including the donation portions, in a dev environment
on your local machine, use “.dev” as the TLD (We develop in virtual hosts on our
developer machines. Edit /etc/hosts to add a .dev url). When this plugin is live,
it forces SSL on any pages with the donation shortcode. Make sure `$_SERVER['HTTPS']`
is set, valid and “on”.

## 常見問題集

  Installation Instructions

Go to `Settings -> General` and fill out the “NGP API Key”, “Donation Support Phone
Line”, and “Addt’l Information for Donation Footer” fields.

 * This plugin requires php greater than or equal to version 5.3
 * “NGP API Key” is how this plugin authenticates with your NGP VAN service. You
   need to make sure the API Credentials string you get from NGP is for the “CWP”
   API.
 * “NGP Secure URL” is used if you need to specify a different secure URL than the
   site might have already been configured to use (for instance, your SSL cert is
   for donate.yourdomain.com, which points at your WordPress site, but the site 
   also loads under www.yourdomain.com).
 * “Check to accept Amex” is a checkbox that, when checked, causes the American 
   Express options for card-type to show up on the front-end.
 * “Donation Support Phone Line” is shown with the error message when the contribution
   gets rejected by the NGP VAN server.
 * “Addt’l Information for Donation Footer” might be used for listing things like
   donation mailing address, donation limits, taxable status of donations, etc.

If you want to use this plugin, including the donation portions, in a dev environment
on your local machine, use “.dev” as the TLD (We develop in virtual hosts on our
developer machines. Edit /etc/hosts to add a .dev url). When this plugin is live,
it forces SSL on any pages with the donation shortcode. Make sure `$_SERVER['HTTPS']`
is set, valid and “on”.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈NGP Forms〉的開發相關工作。

參與者

 *   [ Signalfade ](https://profiles.wordpress.org/signalfade/)

[將〈NGP Forms〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/ngp-forms)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/ngp-forms/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/ngp-forms/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/ngp-forms/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/ngp-forms/)。

## 變更記錄

#### 1.2.8

 * No more runtime pass-by-reference

#### 1.2.7

 * Note under installation information about php version.

#### 1.2.6

 * Bugfix for CC legend dupe

#### 1.2.5

 * Employment info can be specialized.
 * Addt’l footer info has become (and can replace) compliance info. Accepts simplified
   HTML (i, b, u) and respects line-breaks.
 * Credit Card legend now ucwords.

#### 1.2.4

 * Another Alert.

#### 1.2.3

 * Fixed https link from donation invite form
 * Added type “hidden” to source input on invite form

#### 1.2.2

 * (Another) Fix Readme

#### 1.2.1

 * Fix Readme

#### 1.2

 * Donation Invitation Form & Functionality

#### 1.1

 * COO API works for signups.

#### 1.0

 * First version. Migrated over NGP Donations plugin. Added Volunteer and Signup
   options.

## 中繼資料

 *  版本 **1.2.8**
 *  最後更新 **8 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.0.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.7.41**
 *  語言
 * [English (US)](https://wordpress.org/plugins/ngp-forms/)
 * 標籤
 * [donations](https://tw.wordpress.org/plugins/tags/donations/)[FEC](https://tw.wordpress.org/plugins/tags/fec/)
   [NGP](https://tw.wordpress.org/plugins/tags/ngp/)[NGPVAN](https://tw.wordpress.org/plugins/tags/ngpvan/)
   [Voter Action Network](https://tw.wordpress.org/plugins/tags/voter-action-network/)
 *  [進階檢視](https://tw.wordpress.org/plugins/ngp-forms/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/ngp-forms/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/ngp-forms/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/ngp-forms/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/ngp-forms/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/ngp-forms/reviews/?filter=1)

[新增使用者評論](https://wordpress.org/support/plugin/ngp-forms/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/ngp-forms/reviews/)

## 參與者

 *   [ Signalfade ](https://profiles.wordpress.org/signalfade/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/ngp-forms/)