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

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 =
First of all, go into the template ditor of contact form 7, and choose the template which you want to “autofill”.

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

安裝方式

  1. Upload the entire autofill-CF7-BB folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

For usage, please refer to the “Other note” section.

常見問題集

Q/ It add lines (eg br tag) between fields?

A- Yes, in the CF7 template editor, write shortcode in 1 line… It should come from CF7 parser (actually, I don’t know ! )

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈autofill-CF7-BB〉的開發相關工作。

參與者

將〈autofill-CF7-BB〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

  • add textarea support
  • add preselected value by “*” character

1.0.0

Public release