Contact Form 7 1.10.1

I have just released Contact Form 7 1.10.1, it has a few bug fixes, new features and translation updates. They are not critical or security-related bugs, so you don’t need to upgrade urgently.

Download | Plugin Homepage | FAQ | Support Forum

(日本語のドキュメントは下のほうにあります。)

Bugs fixed

  • A necessary ‘global $wp_version’ declaration was missing. This omission could cause erroneous paths of JavaScript and CSS files in case if you were using it on specific WordPress version.
  • If the items include the apostrophe character (‘) in it, checked items were being erroneously unchecked when getting validation errors.

New features

  • Controllable CSS loading: If you don’t need the original CSS files loaded by Contact Form 7, define the WPCF7_LOAD_CSS constant as false (default: true). You can do this easily by inserting this line into your wp-config.php file:

    define( 'WPCF7_LOAD_CSS', false );

  • use_label_element option for checkbox and radio button. By using this, you can wrap each checkbox and radio button with <label> tag. You can use it like this:

    [checkbox fruit use_label_element "Orange" "Apple" "Banana"]

  • Loading the JavaScripts in the header when the WPCF7_LOAD_JS constant is defined as header.

    By default, Contact Form 7 loads scripts in the footer if you are using it on WordPress 2.8 or higher. But we’ve heard from a lot of users that loading scripts in the footer won’t work in several instances. If you have such a situation, try to insert this line into your wp-config.php file:

    define( 'WPCF7_LOAD_JS', 'header' );

    But, most of the time the reason that loading scripts in the footer fails is because it is missing the wp_footer() call in their template. Lester Chan discusses this issue. My suggestion would be not to use the above WPCF7_LOAD_JS setting, but to ask your theme’s author to fix this issue and insert the wp_footer() as a WordPress theme standard.

Translation Updates

New addition:

Updated:

Thank you.


(in Japanese from here)

Contact Form 7 1.10.1 をリリースしました。このバージョンにはいくつかのバグ修正、新しい機能と翻訳の更新が含まれます。これらのバグは重大なものやセキュリティに関係したものではないので、急いでアップグレードする必要はありません。

修正済みのバグ

  • 必要な ‘global $wp_version’ の宣言が抜けていました。特定のバージョンの WordPress を使っている場合において、間違った JavaScript と CSS のパスが生成される可能性がありました。
  • チェックボックスやラジオボタンなどで選択された項目が、検証エラー表示時に間違って選択から外される問題がありました。この問題は項目の値がアポストロフィー (‘) を含む場合にみられました。

新しい機能

  • 制御可能な CSS 読み込み。Contact Form 7 が読み込む CSS ファイルを必要としない場合は、WPCF7_LOAD_CSS 定数を false に指定してください(デフォルトは true)。wp-config.php に次の行を追加するとよいでしょう:

    define( 'WPCF7_LOAD_CSS', false );

  • チェックボックスとラジオボタンに use_label_element オプションを追加。このオプションを使用すると、チェックボックスとラジオボタンの個々の項目を <label> タグで包みます。使用例は次の通り:

    [checkbox fruit use_label_element "オレンジ" "リンゴ" "バナナ"]

  • WPCF7_LOAD_JS 定数が header に指定されている場合に JavaScript をヘッダーに読み込みます。

    WordPress 2.8 以上で使用する場合、デフォルトでは Contact Form 7 はスクリプトをフッターに読み込みます。しかし、多くのユーザーからの報告によると、フッターへの読み込みが機能しない場合があるようです。もしそのような問題がみられる場合は、試しに以下の行を wp-config.php に追加してみてください:

    define( 'WPCF7_LOAD_JS', 'header' );

    とはいうものの、このフッターへのスクリプト読み込みが失敗する問題の理由のほとんどは、使っているテンプレートで wp_footer() を正しく呼び出していないことにあります。Lester Chan がこのことについて説明しています。ですから、上に書いた設定を使うよりも、お使いのテーマの作者に WordPress のテーマの標準に従うよう修正してもらうようにお願いすることをお勧めします。

翻訳の更新

新たに追加されたもの:

更新されたもの:

ありがとうございます。

26 thoughts on “Contact Form 7 1.10.1

  1. Hi,

    Excellent, thanks for the loading java-script in header fix. :D

    Though I am still having trouble getting it to work 100% with PHP Speedy WP 0.5.2:

    http://aciddrop.com/2009/02/02/php-speedy-wp-052-bug-fix/

    My Contact Page: http://www.war59312.com/contact/

    Notice if user has java-script enabled it works perfect.

    But disable java-script and submit form and then look at source code.

    Notice how PHP Speedy WP was not ran. Not sure if this is a bug in PHP Speedy WP (probably) or if it’s an issue with Contact Form 7.

    Not a major issue since most users have java-script enabled, but interesting none the less.

    So any thoughts on the matter?

    Thanks,

    Will

  2. Thanks for at least proving a direct link in the changelog to an area where I read more information regarding the changes in the new version.

  3. My email is set to use google Apps. Do you know if this contact form has problems with google Apps? Many thanks.

  4. I just went back to the previous version (1.10) due to numerous page calls for a non existing “ver=1.10.1” page.
    Problem is resolved for me but may happen to other people.
    Thanks.

  5. What happened to all the nice, smooth, visual effects for the warning messages …?!

    My contact form is much more difficult to use without them, as the page now jumps back to the top while displaying the error messages …

    I’m using IE8 on Windows Vista Home Premium.

  6. I think there was an upgrade recently, right? All emails are now coming from admin@mysite.com and not from the email addresses entered by the users. I’ve lost the contact information from the people who emailed me while this was going on. I just added [your-email] to the subject and message body as a stopgap measure but that’s not really a solution. What’s up?

  7. For some reason I don’t see the “generate tag” option next to the form code. I also don’t see the copy and paste option.

    I use wordpress 2.8

    What can be the problem?

  8. I’ve had the same issue where the “From” address now has my email address rather than [your-email] as the user submits.

    I’ve tried a number of different things, but my email address always ends up in the “From” field.

    Any ideas on why this is?

  9. Thanks for a great plugin, i very like it.

    Did you plane to implement new HTML 5 things for forms? Like “email” and “url” type’s of input?

  10. It’s really nice to see that you’ve added some configuration options that manage the inclusion of CSS/JavaScript. Instead of just allowing to set these options globally (e.g. in wp-config.php) it’d be great if we could turn them off by default and activate the inclusion of CSS/JS for particular pages only.

    This would be a great feature because it would make it much easier to fine tune a site with Google’s Page Speed or Yahoo’s YSlow: these tools suggest that you don’t include unused CSS/JS in your page – sensible, right?! So instead of including the CSS/JS for CF7 on each and every page it’d be nice to have these things only where needed; custom fields may help here.

  11. Hi Everybody,
    The plugin almost works, though emails that are generated contain no text just topic. :(
    I am using Atahualpa 2.21 theme with WordPress 2.8.1
    same happens on another blog.
    changing email addresses does not help
    Any ideas?? thanks !
    best regards
    M

  12. I am getting a ton of errors in error_log that look like this:

    [11-Jul-2009 22:56:21] PHP Warning: stat() [function.stat]: stat failed for /wp-content/uploads/wpcf7_captcha/2122716643.php in /wp-content/plugins/contact-form-7/includes/captcha.php on line 95

  13. also having the “from” email issue. it’s putting my email as the “from” email. i’ve also added the to the body of the message and it appears correctly there.

    TO FIND THE EMAILS IF YOU DON’T SEE THEM – view the “original message” (at least that’s what gmail calls it). basically, view the headers and the person’s email will be in the “respond to” email. that’s saved me already!

  14. oh, i just realized that it probably has something to do with the “WP-Mail-SMTP” plugin. for some reason, my emails re: comments, backups, contact forms, etc weren’t getting through from my site. so i installed the WP-Mail-SMTP plugin and i get my emails now.

    HOWEVER – that means that all of my emails, including those coming from the contact form, are coming via those preferences, which is my address.

    got it!

  15. Excellent Work Miyoshi, I have used your plugin on many sites and find it very useful. Thank you.

    I recently upgraded to 2.0.1 and the ajax form validation / submit stopped working as some other comments mention.

    I found the problem to be in the wpcf7_enqueue_scripts function in wp-contact-form-7.php :
    The syntax used for wp_enqueue_script() seems to be incorrect.
    on line where it says:
    wp_enqueue_script( ‘contact-form-7’, wpcf7_plugin_url( ‘contact-form-7.js’ ),
    array(‘jquery’, ‘jquery-form’), WPCF7_VERSION, $in_footer );

    I put the following and got things working:
    wp_enqueue_script( ‘contact-form-7’, ‘/wp-content/plugins/contact-form-7/contact-form-7.js’,
    array(‘jquery’, ‘jquery-form’), WPCF7_VERSION );

    I am using WordPress 2.8.4 and PHP 5.2.6

    If the ajax works for others, could there be more than 1 version of plugin going around ?

    I downloaded mine today from wordpress.org and had to make the above changes to get the AJAX working

    Hope this post helps someone.

    Again THANK YOU for your great work on this marvelous plugin

  16. as someone already mention: I just installed Contact Form 8 on WP 2.8.4 and I do not see the “Generate Tag” button. What is going on?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s