Categories
Announcement WordPress Plugins

Contact Form 7 1.8.0.2

I released Contact Form 7 1.8.0.2.

Contact Form 7 | Download

If you are seeing an error like below, please update soon.

Fatal error: Call to undefined function get_shortcode_regex() in /…/wp-content/plugins/contact-form-7/wp-contact-form-7.php on line 115

This release also includes new translation packages, Traditional Chinese translation newly created by James Wu, and Turkish translation updated by Hasan Yılmaz. Thank you very much.

(以下、日本語)

Contact Form 7 1.8.0.2 をリリースしました。以前のバージョンで下のようなエラーが出ている、という場合は、バージョンアップすることで解決するはずです。

Fatal error: Call to undefined function get_shortcode_regex() in /…/wp-content/plugins/contact-form-7/wp-contact-form-7.php on line 115

繁体字中国語の翻訳が James Wu さんにより新たに追加され、トルコ語の翻訳が Hasan Yılmaz さんにより更新されました。ありがとうございます。

Categories
Announcement WordPress Plugins

Contact Form 7 1.8.0.1

I released a relief pitcher for Contact Form 7 1.8 because of a bug I found that it causes style flaw. It’s not critical but if you are seeing strange behavior with the plugin, I recommend you to upgrade.

Plus, Chinese and Fnnish translations have been newly added. Thank you Soz and Miika!

先日公開したばかりの Contact Form 7 1.8 にスタイル関連のバグが見つかりましたので急遽中継ぎで 1.8.0.1 をリリースしました。重大な問題というわけではないですがもし気になるような変な挙動が見られたならアップグレードをおすすめします。

それと中国語とフィンランド語の翻訳が新たに追加されています。Soz さんと Miika さん、どうもありがとう!

Categories
Announcement WordPress Plugins

Contact Form 7 1.8

Contact Form 7 | Download

(日本語の説明は下にありますので転がして読んでください)

Contact Form 7 1.8 is now available at last! Please note that I’m also planning to release 1.8.1 next month, with even more functions.

The main changes of Contact Form 7 1.8 are below.

Control panel moved from Settings to Manage

This is an important change, particularly if you are a longtime user. In the past, the control panel of Contact Form 7 was in Settings > Contact Form 7. You will now find it in Manage > Contact Form 7.

In addition to this change, I extended the scope of authority to access the control panel. Administrators and editors can read and edit contact forms, while authors and contributors can read only the tag code for inserting into their posts. Whether this change is acceptable to all users is still up for debate, so your feedback would be much appreciated.

Should you find you don’t like the behavior, you can alter it by defining wpcf7_read_capability() and wpcf7_read_write_capability() in or outside the wp-contact-form-7.php. For example, with these codes you can put it back to the old way (only administrators can access the control panel):

function wpcf7_read_capability() { return 'manage_options'; }
function wpcf7_read_write_capability() { return 'manage_options'; }

WP_CONTENT_DIR, WP_CONTENT_URL and other constants

In WordPress 2.6, you can redefine the path of the directory of customizable contents, i.e. wp-content. If you haven’t heard that, read this post from planetOzh. Contact Form 7 1.8 supports this feature by referring the new constants WP_CONTENT_DIR and WP_CONTENT_URL for getting paths. Backward compatibility is also considered.

In addition, it uses these constants:

  • WP_PLUGIN_DIR
  • WP_PLUGIN_URL
  • WPCF7_PLUGIN_DIR
  • WPCF7_PLUGIN_URL
  • WPCF7_CAPTCHA_TMP_DIR
  • WPCF7_CAPTCHA_TMP_URL

The WPCF7_* contents are Contact Form 7’s original constants.

You decide paths as you wish by editing source codes and defining these constants.

Compatible with HTTPS

WordPress 2.6 includes better support for visiting the admin over HTTPS. Contact Form 7 1.8 has been updated to be able to work correctly when you are using this feature.

Moving CAPTCHA temporary image directory

In previous releases of Contact Form 7, temporary CAPTCHA images were generated in the directory wp-content/plugins/contact-form-7/captcha/tmp. However, putting the images inside the plugin’s directory could cause trouble when the plugin auto-upgrading function of WordPresss runs (which resets the writing permission of the directory).

To prevent such troubles occurring, the CAPTCHA temporary image directory has been moved to outside the plugin’s directory. Its new home is wp-contents/uploads/wpcf7_captcha.

In most cases that directory is writable, so you can use CAPTCHA without any concerns. If you don’t like the path and want to change it, you can do it by redefining the constants WPCF7_CAPTCHA_TMP_DIR and WPCF7_CAPTCHA_TMP_URL. Don’t forget to make the directory writable.

Adding id: and class: options to submit tag

This may sound like a trivial addition, but it is one many users have requested. There have always been id: and class: options for adding id and class attributes to the form control tags, but the submit tag has not had such options. These options have now, at last, been added to the submit tag in Contact Form 7 1.8.

New translation pack

A translation pack for Hungarian has been newly added. Our thanks must go to Andras Hirschler!

Plans for Contact Form 7 1.8.1

Version 1.8.1 of Contact Form 7 is in the pipeline to be released in September. The following features and improvements are likely to be a part of this version:

  • Importing and exporting of configurations;
  • Customizable messages;
  • More tags for forms and mail contents;
  • And more.
Categories
Announcement WordPress Plugins

Contact Form 7 1.7.8

Contact Form 7 / Download

I released Contact Form 7 1.7.8 after a long interval. This release includes two bug fixes and two translations update.

Apostrophe in drop down menu issue reported by majestique and locale setting of default contact form issue reported by Henrique were resolved.

Brazilian Portuguese (pt_BR) translation was updated by Henrique Vianna. Romanian (ro) translation was newly added by Stas Sushkov. Now Contact Form 7 has 18 translations. Thank you all contributors.

I’m working hard to release next version 1.8 now. It will be released in next month. It will include some new tags and features that make it more customizable.


(In Japanese from here.)

Contact Form 7 1.7.8 をリリースしました。2つのバグフィックスと2つの翻訳の更新を含みます。

majestique さんから報告のあったドロップダウンメニューの項目にアポストロフィが含まれている場合に起こる問題と、Henrique さんから報告のあったデフォルトのコンタクトフォームが正しくロケール設定されない問題が解決されました。

ブラジルのポルトガル語 (pt_BR) の翻訳が Henrique Vianna さんにより更新されました。ルーマニア語 (ro) の翻訳が Stas Sushkov さんにより新たに追加されました。これにより Contact Form 7 は18 の言語に翻訳されたことになります。貢献された皆さんに感謝します。

現在、次の Contact Form 7 1.8 のリリースに向けて開発を進めているところです。来月までにリリースする予定です。1.8 はいくつかの新しいタグとカスタマイズを容易にする新たな機能が搭載されます。

Categories
Announcement WordPress Plugins

Contact Form 7 1.7.7

Contact Form 7 / Download

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

Contact Form 7 has now been translated into 17 languages. I’d like to genuinely thank all the translators!

Categories
WordPress Plugins

Contact Form 7 FAQ (日本語)

この投稿は更新されません。Contact Form 7 公式サイトを参照してください。


English version

  1. Contact Form 7 の管理ページはどこにありますか?
  2. 投稿の内容にコンタクトフォームを追加するにはどうすればよいですか?
  3. コンタクトフォームに項目を追加するにはどうすればよいですか?
  4. フォームにタグを追加したのにメールには何も表示されません。どうすれば追加した項目の入力内容をメールに取り込めますか?
  5. メールに [foobar] のような変なコードが入っているのですが、これは何ですか? 入れて欲しいのはユーザーの入力内容なんですが。
  6. メールの件名を指定することはできますか?
  7. 投稿内容以外の場所にコンタクトフォームを配置することはできますか?
  8. テンプレートファイルにコンタクトフォームを埋め込むことはできますか?
  9. フォームを送信すると「メッセージの送信に失敗しました」というエラーメッセージが表示されます。何が悪いのですか?
  10. 私の場合は赤いボーダーラインのエラーが出るのですが、どうすれば直せますか
  11. 「メッセージを送信しました」という緑色のボーダーラインつきのメッセージは表示されるのですが、そのメールが送られてきません。
  12. フォームの送信後、回転する矢印のアイコンは現れるのですが、それっきりで何も起きません。
  13. 一部のブラウザ上でコンタクトフォームの動作がおかしくなります。
  14. コンタクトフォームを英語ではなく自国語で使いたいのですが。
  15. CAPTCHA が機能しません。画像が表示されないのです。
  16. CAPTCHA のテキスト入力項目が Internet Explorer では動くのに、Firefox では正しく機能しません。入力項目にコードを入力できません。
  17. ファイルアップロード、ファイル添付が機能しません。
Categories
WordPress Plugins

Contact Form 7 FAQ

This post is no longer updated. Move to Contact Form 7 official site.


Download | Plugin Homepage | FAQ | Support Forum

(日本語の FAQ はこちら)

  1. Where is the settings page for Contact Form 7?
  2. How can I add a contact form into my post content?
  3. How can I add a field to my contact form?
  4. Nothing shows up in the email, even after adding a tag to the form! How can I include a new field’s input in the email?
  5. I get emails containing codes such as [foobar]. What’s this? I want to see the user’s input.
  6. How can I specify a subject for the email?
  7. Can I place a contact form outside a post?
  8. Can I embed a contact form into my template file?
  9. After submitting the form, I get an error message stating “Failed to send your message”. What is wrong?
  10. I get an error message with a red border. So, how can I solve this?
  11. I see a response message “Your message was sent successfully” with green border, but I never receive a mail for that.
  12. The spinning arrow icon shows up once I submit a form, but then nothing happens.
  13. My contact form behaves oddly on certain browsers.
  14. I want to use contact form in my language, not in English. How can I do that?
  15. CAPTCHA does not work; the image does not show up.
  16. CAPTCHA’s text input box is working on Internet Explorer, but not with Firefox. I cannot enter the code.
  17. File upload & file attachment do not work.
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
WordPress Plugins

TinyMCE x WordPress Translation Sharing

TinyMCE x WordPress Translation Sharing (txwts) is a WordPress plugin for translators who are localizing WordPress 2.5 beta right now. It allows you to import TinyMCE 3.x language package into WordPress PO file.

WordPress 2.5 newly allows gettext based localization for TinyMCE. TinyMCE has so many texts needed to be translated. With this plugin, you can reduce the work and share the same translating style between WordPress and TinyMCE.

Install

Download zip file from here.

  1. Upload whole txwts folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the [Plugins] menu in WordPress

Usage

  1. Open admin panel [Manage] – [TxW]
  2. Choose a PO file you want to translate (e.g. ja.po) from your PC
  3. Select your locale (e.g. Japanese)
  4. Enter [Translate] button

Then you’ll get updated PO file, check carefully and commit it.

If you find bugs, please let me know :)

Update (2/28): “No fuzzy” option added. Check this option if you want to make entries translated by this plugin not “fuzzy”.

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.