[WordPress] 外掛分享: autofill-CF7-BB

首頁外掛目錄 › autofill-CF7-BB
10+
安裝啟用
尚無評分
5171 天前
最後更新
問題解決
WordPress 2.8.1+ v1.0.1 上架:2012-06-03

內容簡介

autofill-CF7-BB 可讓您使用 URL GET 變數自動填入聯絡表單 7 的字段(包括輸入文本、單選、下拉菜單、多選框和文本區域)。它會添加一個短碼到“聯絡表單 7 模板編輯器”中,以便為每個字段編寫它。

對於下拉菜單和單選框/多選框,您可以指定是按 ID(從 0)還是按值進行選擇。您還可以使用 URL Get 變量填充每個字段,或替換首先定義的值。

要求
PHP 5+ (使用 Simple HTML Dom 自 Jose Solorzano)

無 JavaScript(除了選項頁面...)

選項說明

= 使用 =
首先,進入聯絡表單 7 的模板編輯器中,並選擇您要“自動填充”的模板。

短碼:[AFCF_BB getvar=”myVar”][CF7 field][/AFCF_BB]

getvar:用於填充 CF7 字段的 URL GET 變量名稱
例如:[AFCF_BB getvar=”myId”][select whatevername “Roger” “Jessica” “Steve” “Suzie”][/AFCF_BB]

並且 URL 為:http://mysite.com/?page_id=1&myId=2

所選擇的是 ID 2 的下拉菜單字段,因此為“Steve”(編號從 0 開始(不是 1))。

其他方法:
* meth=”value”:按值進行選擇
* meth=”add”:將在底部添加新輸入
* meth=”rep”:將替換當前值

對於“add”和“rep”,您可以在值之前加上“*”以預選值,例如:

http://mysite.com/?page_id=1&addval=Steeve$Rebecca$julie

有關更多詳細信息,請查看插件頁面或在 WordPress 的插件選項頁面中查看(在安裝時)。
如有任何問題,請在http://asblog.etherocliquecite.eu與我聯繫

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「autofill-CF7-BB」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

autofill-CF7-BB let you autofill contact form 7 fields (input text, radio, select, checkboxes, textarea) with url GET variables. It add a shortcode to write in the “contact form 7 template editor” for each field.
For drop down menu fields and radio/checkboxes you can specify wether you would select it by Id (from 0) or by value. You can also populate each field with new values from URL Get var, or replace firstly defined values.
Requirements
PHP 5+ (use Simple HTML Dom from Jose Solorzano)
No javascript (excpet for option page…)
Options description
= USES =
shortcode : [AFCF_BB getvar=”myVar”][CF7 field][/AFCF_BB]

getvar : the URL GET variable name used to fill the CF7 field
eg : [AFCF_BB getvar=”myId”][select whatevername “Roger” “Jessica” “Steve” “Suzie”][/AFCF_BB]

and url as : http://mysite.com/?page_id=1&myId=2
will select id 2 for the select field so “Steve” (numbering start by 0 (not 1)).
Other method :
* meth=”value” : will selet by value
* meth=”add” : will add at the bottom new input
* meth=”rep” : will replace current values
For “add” and “rep” you could preselect values by adding “*” before values, eg :
http://mysite.com/?page_id=1&addval=Steeve$Rebecca$julie
For more detail, consult the plugin page or see it in the plugin option page of wordpress (when installed).
for any question, please contact me at http://asblog.etherocliquecite.eu

延伸相關外掛

文章
Filter
Mastodon