Contact Form 7 1.7.7
April 7, 2008
I released Contact Form 7 1.7.7. This release contains new tag types for required checkboxes and drop-down menus. Checkbox* and Select* are newly introduced in this release. And Danish, Latvian and Swedish translations have been added.
New tag types: checkbox* and select*
As text*, email* and textarea* in the past, checkbox* and select* are required fields. The sender must check or select at least one meaningful option for each of these.
New translations
- Danish (author: Jens Griebel)
- Latvian (author: Sandis Veinbergs)
- Swedish (author: Fredrik Jonsson)
Contact Form 7 has now been translated into 17 languages. I’d like to genuinely thank all the translators!
Read the rest of this entry »
Contact Form 7 1.7.6
March 2, 2008
Acceptance type of form tag newly added. Got more HTML-valid a bit.
New tag type: acceptance
A tag with acceptance type generates a checkbox with some JavaScript gimmick. You can use it as a test confirming if the sender has accepted specific terms.
Example
[acceptance foo]Check this if you want to send.
By default, submit buttons in the form are enabled when the acceptance checkbox is checked.

Disabled when not checked.

With invert option, this rule is inverted. Submit buttons are enabled when you uncheck it and disalbed when you check it.
Example
[acceptance bar invert]Uncheck this if you want to send.
You can use multiple acceptances in the same form.

More valid
I fixed some HTML-invalid codes.
- Add
altattribute to<img /> - Add
colsandrowsattribute to<textarea> - Add
sizeattribute to<input type="text" />
The last one is not for HTML-valid, it’s for users who claims default size of text input field is too small. The default size now is 40, in most of browsers it’s larger than before.
If you still have HTML-invalid codes not yet fixed, please let me know.
Read the rest of this entry »
Contact Form 7 1.7.5
January 26, 2008
Two fixes and one enhancement. 1) The SEO issue reported by Dexter has been fixed (I believe). 2) For wpautop() haters, hook function adding logic changed. 3) New include_blank option added to form tag of drop-down menus.
SEO issue
Dexter and some people told me that there seems be a SEO issue in Contact Form 7.
The “?wpcf7=json” code is used by Contact Form 7 only in AJAX submitting (POST) process. I wonder why Google indexed such URLs even now. Anyway, I worked around the issue.
Now Contact Form 7 doesn’t use “?wpcf7=json”, so I believe that kind of problem is fixed. But Google’s existing indexes are still there, I can’t do anything for that.
If you hate wpautop()
wpautop() is a WordPress’s built-in filter which automatically surrounds a paragraph with <p></p> tag. It’s useful and I like it, while I know some users hate it.
Some users remove the filter by commenting out a line in wp-includes/default-filters.php like below.
//add_filter('the_content', 'wpautop');
# Well, this is just an example. I don’t suggest that.
But when you are using Contact Form 7, this hack doesn’t work.
wpautop() is clever, but it doesn’t correctly treat form control elements. See this ticket. It’s a big issue for Contact Form 7. So Contact Form 7 removes original wpautop() filter, and adds patched one.
Due to this, if you want to remove wpautop() filtering, you need to hack codes in Contact Form 7 so far. It was sometimes confusing for the anti-autop hackers who didn’t know Contact Form 7 is doing such replacing.
In this release, I changed the replacing logic. Now it replaces wpautop() only if original wpautop() is registered on the filters array. So if you hate wpautop(), you can remove it by just editting wp-includes/default-filters.php.
New include_blank option for drop-down menu
If include_blank option is set, drop-down menu inserts a blank item “—” into the top of it. So this tag
[select your-menu "---" "a" "b" "c"]
and this tag
[select your-menu include_blank "a" "b" "c"]
have the same semantics.
I recommend you to use this option because it seems that some browsers don’t submit first option’s value in a menu, even if they shows the first one as selected by default. See also the HTML spec.
Read the rest of this entry »
Contact Form 7 1.7.3
December 25, 2007
I released Contact Form 7 1.7.3 last week. I added two options for dropdown menu, checkboxes and radio buttons. default: option allows you to set initially selected or checked items. label-first option is for checkboxes and radio buttons; this makes checkbox-label order reverse.
See also: Contact Form 7 1.7 (The introduction of select+, checkbox, checkbox+ and radio typed tags)
Setting default with default: option
For example, this tag:
[checkbox your-checkbox default:2 "ウインダム" "ミクラス" "アギラ"]
makes the second item “ミクラス” checked initially. The integer following default: is the position in the order of items. 1 is the first one.

If you want to make two or more items checked, joint integers with _ (underbar) as:
[checkbox your-checkbox default:1_3 "ウインダム" "ミクラス" "アギラ"]

Changing checkbox-label order with label-first option
By default, checkbox and radio button are put first, and a label last.
By adding label-first option to checkbox and radio button type tags, you can reverse them.
[checkbox your-checkbox label-first "ウインダム" "ミクラス" "アギラ"]
Contact Form 7 1.7
November 27, 2007
Contact Form 7 1.7 is now available. New types of form tag (select+, checkbox, checkbox+ and radio) are newly added.
Update (2007/12/30): select+ and checkbox+ were removed since 1.7.4 release. See the release note.
Contact Form 7 1.6.1
October 27, 2007
I released Contact Form 7 1.6.1. Now you can place your contact form in sidebar widgets. Norwegian and Turkish translations are included.
Read the rest of this entry »
Contact Form 7 1.6
October 17, 2007
I released Contact Form 7 1.6. User interface of admin page got improved. New Mail (2) feature allows you to send mail back to sender. Dutch translation newly came in.
Read the rest of this entry »
Contact Form 7 1.5 (日本語)
October 7, 2007
Contact Form 7 1.5 を公開しました。このバージョンでは CAPTCHA の設置が可能になりました。ロシア語とブラジル・ポルトガル語の言語ファイルが加わりました。また、Akismet の使用方法が紛らわしかったので変更されました。
Read the rest of this entry »
Contact Form 7 1.5
October 7, 2007
I released Contact Form 7 1.5. You can use CAPTCHA on it. Russian and Brazilian Portuguese translations came in. Akismet’s usage got changed as it was confusable.
Contact Form 7 1.4.4
September 17, 2007
I released Contact Form 7 1.4.4. French translation by Jillij was added. Thanks Jillij.
And a bug that extra backslashes are inserted reported by rome has been fixed as well. Thanks rome.
日本語 / Japanese
Contact Form 7 1.4.4 をリリースしました。Jillij さんによるフランス語の言語ファイルを追加しています。
それから、rome さんからコメントで報告があった、メールに余計なバックスラッシュが挿入されるバグについても修正しています。


