內容目錄
前言介紹
- 這款 WordPress 外掛「NGP Forms」是 2013-06-06 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2018-05-01,距離現在已有 2561 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0.0 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
FEC | NGP | NGPVAN | donations | Voter Action Network |
內容簡介
該外掛可以幫助您將NGP(NGP VAN)的捐贈、註冊和志願者表單與您的網站整合。如果您想使用該插件的捐贈部分,您的站點上需要運行一個SSL證書。
該插件不與新的NGP Action平台兼容。
警告一!該插件不與NGP新平台兼容。我認為他們稱之為“Action”平台,但不清楚。
警告二!如果您使用該插件進行捐贈,您的站點需要運行SSL證書。
使用方法:請在適當的頁面或文章上放置以下簡短標記:
[ngp_show_donation]
您可以使用兩種方式設置捐贈金額:
將金額放入嵌入標記中:[ngp_show_donation amounts="50,250,1000"]
將金額放入GET查詢字符串中:http://mycamapign.com/donation?amounts=50,250,1000
如果您想要設置預設的捐贈金額,請將其放在嵌入標記中,然後在需要時使用查詢字串金額覆蓋它。
您可以使用兩種方式設置來源文章:
將來源放入嵌入標記中:[ngp_show_form source="hard-hitting-ad"]
將來源放入GET查詢字符串中:http://mycamapign.com/donation?source=hard-hitting-ad
如果您想要設置預設的捐贈來源,請將其放在嵌入標記中,然後在需要時使用查詢字串來源覆蓋它。
您可以通過將URL放入嵌入標記中設置自定義感謝頁面URL:
[ngp_show_donation thanks_url="/thanks-for-your-donation"]
捐贈感謝頁面URL的默認值為:/thank-you-for-your-contribution
您可以關閉自定義金額欄位:
[ngp_show_donation custom_amt_off="true"] 小心!
如果關閉自定義金額欄位並使用捐贈邀請表單,您將會有選民輸入無法在表單中找到且沒有機會進入自定義金額欄位的金額!
我們在捐贈頁面上使用以下建議的jQuery,以確保用戶了解單選按鈕和輸入字段是相同的。如果用戶不支持JavaScript而自定義字段保持著值,它總是優先於單選按鈕中選擇的任何值。
$('.ngp_custom_dollar_amt').keyup(function() {
if($(this).val()!='') { $('.Amount').attr('checked', false); }
});
$('.Amount').mouseup(function() {
$('.ngp_custom_dollar_amt').val('');
});
您可以通過將URL放入嵌入標記中設置自定義感謝頁面URL:
[ngp_show_volunteer thanks_url="/thanks-for-your-work-pledge"]
志願者感謝頁面URL的默認值為:/thank-you-for-volunteering
[ngp_show_signup]
您可以通過將URL放入嵌入標記中設置自定義感謝頁面URL:
[ngp_show_signup thanks_url="/thanks-for-signing-up-for-incessant-emails"]
電子郵件註冊感謝頁面URL的默認值為:/thank-you-for-signing-up
註冊可以利用COO API,如果您恰好擁有該特定NGP API端點的憑據,則可以使用該API。此API允許您為註冊提交較少全面的數據。
您可以找到必需的三個信息
原文外掛簡介
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:
Put the amounts in the embed tag: [ngp_show_donation amounts="50,250,1000"]
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:
Put source in the embed tag: [ngp_show_form source="hard-hitting-ad"]
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"]
Careful!
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('');
});
[ngp_show_volunteer]
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"]
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「NGP Forms」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.2 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.2.7 | 1.2.8 | trunk |
延伸相關外掛(你可能也想知道)
Stripe Political Donations 》這個外掛能夠幫助你整合並使用 Stripe.com,以便在你的網站上募集捐款。, 這個外掛由Revolution Messaging, LLC開發和維護,並使用 Stripe.com 的 PHP 函式庫...。