Categories
Announcement WordPress Plugins

Contact Form 7 1.7.6

Contact Form 7 / Download

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.

acceptance-1.png

Disabled when not checked.

acceptance-2.png

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.

acceptance-3.png

More valid

I fixed some HTML-invalid codes.

  • Add alt attribute to <img />
  • Add cols and rows attribute to <textarea>
  • Add size attribute 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.

Categories
Announcement WordPress Plugins

Contact Form 7 1.7.5

Contact Form 7 / Download

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.

Categories
Announcement WordPress Plugins

Contact Form 7 1.7.3

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 "ウインダム" "ミクラス" "アギラ"]

Categories
Announcement WordPress Plugins

Contact Form 7 1.7

日本語はこちら。(in Japanese)

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.

select-checkbox-radio.png

Categories
Announcement WordPress Plugins

Contact Form 7 1.6.1

I released Contact Form 7 1.6.1. Now you can place your contact form in sidebar widgets. Norwegian and Turkish translations are included.

Categories
Announcement WordPress Plugins

Contact Form 7 1.6

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.

Categories
Announcement WordPress Plugins

Contact Form 7 1.5 (日本語)

Contact Form 7 1.5 を公開しました。このバージョンでは CAPTCHA の設置が可能になりました。ロシア語とブラジル・ポルトガル語の言語ファイルが加わりました。また、Akismet の使用方法が紛らわしかったので変更されました。

Categories
Announcement WordPress Plugins

Contact Form 7 1.5

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.

(日本語はこちら)

Categories
Announcement WordPress Plugins

Contact Form 7 1.4.4

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 さんからコメントで報告があった、メールに余計なバックスラッシュが挿入されるバグについても修正しています。

Categories
Announcement WordPress Plugins

Contact Form 7 1.4.3

I released Contact Form 7 1.4.3. Polish translation by Zbigniew Czernik was newly added. Thank you Zbigniew! Now, Contact Form 7 supports 7 languages!

Contact Form 7 1.4.3 をリリースしました。Zbigniew Czernik さんによるポーランド語の言語ファイルを追加しています。これで 7 言語サポートです!