<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[iDeasilo]]></provider_name><provider_url><![CDATA[https://ideasilo.wordpress.com]]></provider_url><author_name><![CDATA[Takayuki Miyoshi]]></author_name><author_url><![CDATA[https://ideasilo.wordpress.com/author/miyoshita/]]></author_url><title><![CDATA[Contact Form 7&nbsp;1.10]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>Contact Form 7 1.10 is now available. New features in this version include additional mail headers, response message placeholder tags <code>[response]</code>, the calling of user-specified JavaScript code when a message is sent successfully, controlling JavaScript loading with new constant, and much more. Therefore, I would highly recommend that you upgrade today!</p>
<p><strong><a href="http://wordpress.org/extend/plugins/contact-form-7/">Download</a></strong> | <strong><a href="https://ideasilo.wordpress.com/2007/04/30/contact-form-7/">Plugin Homepage</a></strong> | <strong><a href="https://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/">FAQ</a></strong> | <strong><a href="http://wordpress.org/tags/contact-form-7">Support Forum</a></strong><br />
<!--more--><br />
<a href="#injapanesefromhere">(日本語のドキュメントは下のほうにあります。)</a></p>
<h4>Additional Mail Header</h4>
<p>In the past, Contact Form 7 allowed you to set mail headers of <em>To</em>, <em>From</em> and <em>Subject</em>. Have you ever thought of adding <em>Cc</em> or <em>Bcc</em> headers to your mail? The newly introduced <strong><em>Additional Headers</em></strong> fields in the <em>Mail</em> and <em>Mail (2)</em> section are just for that purpose.</p>
<p>You can input any header lines into the field; and you can insert any tags into any place in each header line, just like other Mail fields.</p>
<p><img loading="lazy" data-attachment-id="418" data-permalink="https://ideasilo.wordpress.com/2009/05/31/contact-form-7-1-10/additional-headers/" data-orig-file="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png" data-orig-size="420,320" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="additional-headers" data-image-description="" data-image-caption="" data-medium-file="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=300" data-large-file="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=420" src="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=420&#038;h=320" alt="additional-headers" title="additional-headers" width="420" height="320" class="aligncenter size-full wp-image-418" srcset="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png 420w, https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=150&amp;h=114 150w, https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=300&amp;h=229 300w" sizes="(max-width: 420px) 100vw, 420px" /></p>
<h4><code>[response]</code> Tag</h4>
<p>After a reader of your blog submits the contact form, he or she sees a response message from Contact Form 7, such as &#8220;Your message was sent successfully&#8221; or &#8220;Validation errors occurred.&#8221; I sometimes hear from users who tell me that the position of the response message is not good, and, in fact, sometimes their visitors miss the message entirely.</p>
<p>In the past, the response message was shown at the bottom of the form. I changed this by allowing users to locate their response massage placeholder as they like. The response message is shown within the placeholder after submission.</p>
<p>A tag <strong><code>[response]</code></strong> for the placeholder has been introduced. You can insert this <code>[response]</code> tag into any place of your choice in your form. You can use it multiple times in a form. If there is no <code>[response]</code> used, the response message is shown at the bottom of the form by default.</p>
<p><a name="on_sent_ok"></a></p>
<h4>JavaScript Action Hook: <code>on_sent_ok</code></h4>
<p>Sometimes you might think of running custom codes after the form has been submitted. For example, you may wish to run Google Analytics&#8217;s tracking code for tracking their visitor&#8217;s usage of the contact form and counting it as conversions.</p>
<p>The new JavaScript action hook would be useful in such a case. If you have a JavaScript code you wish to run after form submission is completed successfully, simply insert the code into the <strong><em>Additional Settings</em></strong> section (which is new in this version and is placed at the bottom of the admin panel) with preceding <strong><code>on_sent_ok</code></strong> keyword, like this:</p>
<p><img loading="lazy" data-attachment-id="419" data-permalink="https://ideasilo.wordpress.com/2009/05/31/contact-form-7-1-10/on_sent_ok/" data-orig-file="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png" data-orig-size="420,120" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="on_sent_ok" data-image-description="" data-image-caption="" data-medium-file="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=300" data-large-file="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=420" src="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=420&#038;h=120" alt="on_sent_ok" title="on_sent_ok" width="420" height="120" class="aligncenter size-full wp-image-419" srcset="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png 420w, https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=150&amp;h=43 150w, https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=300&amp;h=86 300w" sizes="(max-width: 420px) 100vw, 420px" /></p>
<p>Note that you need to quote the codes properly; and the code must be in one line.</p>
<p>To show you a more practical example, if you want to insert <a href="http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&amp;answer=55514">Google Analytics&#8217;s tracking function</a>, enter it like this:</p>
<p><code>on_sent_ok: "pageTracker._trackPageview('/funnel_G1/step1.html');"</code></p>
<p><a name="WPCF7_LOAD_JS"></a></p>
<h4>Controlling JavaScript Loading with <code>WPCF7_LOAD_JS</code> Constant</h4>
<p>By default, Contact Form 7 loads three JavaScript files &#8212; contact-form-7.js, jquery.form.js and jquery.js &#8212; into each page. They are necessary for Ajax. I believe that the smooth form submission with Ajax is one of the better points of Contact Form 7; however, I&#8217;ve heard from users they don&#8217;t like this feature and think the loading of these JavaScripts is wasteful. So I have made it controllable.</p>
<p>When the value of <strong><code>WPCF7_LOAD_JS</code></strong> is set to <em>false</em> (default: <em>true</em>), Contact Form 7 does not load the JavaScript. You can set the value of this constant in your wp-config.php like this:</p>
<p><code>define ('WPCF7_LOAD_JS', false );</code></p>
<p>Tip: If you set <code>WPCF7_LOAD_JS</code> as <em>false</em>, but you wish to load the JavaScripts only on specific pages, call <strong><code>wpcf7_enqueue_scripts()</code></strong> in your template file. Note that <code>wpcf7_enqueue_scripts()</code> must be called before <code>wp_head()</code> is called.</p>
<h4>Other Changes</h4>
<ul>
<li>
Now you can specify the file upload limit size with <em>kb</em> and <em>mb</em> unit symbols. These three tags have the same meaning:</p>
<p><code>[file your-file limit:1048576]</code><br />
<code>[file your-file limit:1024kb]</code><br />
<code>[file your-file limit:1mb]</code></p>
<p>Note that you can&#8217;t use a decimal point in it (i.e., like this: <code>[file your-file limit:1.5mb]</code>) and it will be ignored if it exists.
</li>
<li>
A donation banner is displayed on the admin panel randomly. You might not see it as it is shown with very low probability.</p>
<p>If you, or your client, hate to see anything about donations, you can stop displaying this banner by setting the value of <code>WPCF7_SHOW_DONATION_LINK</code> constant as <em>false</em> in your wp-config.php like this:</p>
<p><code>define( 'WPCF7_SHOW_DONATION_LINK', false );</code>
</li>
<li><code>wpcf7_version()</code>, <code>wpcf7_read_capability()</code> and <code>wpcf7_read_write_capability()</code> are removed. Use constants instead.</li>
<li>JavaScript is loaded in footer, instead of in a header, if it is allowed to do so. This has good performance merit.</li>
<li>Support of HTTPS is partly improved by <code>using plugins_url()</code>.</li>
<li>An overall relocation and refactoring of codes and files has been done.</li>
</ul>
<h4>Translation Updates</h4>
<p>New addition:</p>
<ul>
<li>Bosnian (bs) &#8211; <a href="http://www.seorabbit.com/">Vedran</a></li>
<li>Serbian (sr_RS) &#8211; <a href="http://www.seorabbit.com/">Vedran</a></li>
</ul>
<p>Updated:</p>
<ul>
<li>Hungarian (hu_HU) &#8211; <a href="http://hia.itblog.hu/">Andras Hirschler</a></li>
<li>Italian (it_IT) &#8211; <a href="http://gidibao.net/">Gianni Diurno</a></li>
<li>Swedish (sv_SE) &#8211; <a href="http://wp-support.se/">the Swedish community</a></li>
</ul>
<p>Thank you.</p>
<p><a href='http://www.pledgie.com/campaigns/3117'><img alt='Click here to lend your support to: Support Contact Form 7 and make a donation at www.pledgie.com !' src='https://i2.wp.com/www.pledgie.com/campaigns/3117.png' border='0' /></a></p>
<hr />
<p>(in Japanese from here)</p>
<p><a name="injapanesefromhere"></a><br />
Contact Form 7 1.10 をリリースしました。追加メールヘッダー、応答メッセージのプレースホルダーとしての <code>[response]</code> タグ、メッセージ送信に成功した時の JavaScript 呼び出し、定数での JavaScript ロードの抑制、などなど、たくさんの機能をこのバージョンでは導入しています。この機会にアップグレードをおすすめします。</p>
<h4>追加メールヘッダー</h4>
<p>従来の Contact Form 7 では <em>To</em> (宛先)、<em>From</em> (送信元)、<em>Subject</em> (件名) のメールヘッダを指定できました。これに <em>Cc</em> や <em>Bcc</em> のヘッダーを追加したいと思ったことはありませんか? <em>メール</em>と<em>メール(2)</em>両セクションに新しく導入した<em>追加ヘッダー</em>項目はまさにこのためのものです。</p>
<p>このフィールドに任意のメールヘッダー行を入力してください。それから、メールセクションのほかの項目と同様に、好きな場所にタグを挿入できます。</p>
<p><img loading="lazy" data-attachment-id="418" data-permalink="https://ideasilo.wordpress.com/2009/05/31/contact-form-7-1-10/additional-headers/" data-orig-file="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png" data-orig-size="420,320" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="additional-headers" data-image-description="" data-image-caption="" data-medium-file="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=300" data-large-file="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=420" src="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=420&#038;h=320" alt="additional-headers" title="additional-headers" width="420" height="320" class="aligncenter size-full wp-image-418" srcset="https://ideasilo.files.wordpress.com/2009/05/additional-headers.png 420w, https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=150&amp;h=114 150w, https://ideasilo.files.wordpress.com/2009/05/additional-headers.png?w=300&amp;h=229 300w" sizes="(max-width: 420px) 100vw, 420px" /></p>
<h4><code>[response]</code> タグ</h4>
<p>ブログの訪問者がコンタクトフォームで送信すると、その訪問者は Contact Form 7 の応答メッセージを見ますよね。「あなたのメッセージを送信しました」とか「入力内容に不備があります」とか、そういうのです。よくユーザーから言われていたのですが、この応答メッセージを表示する場所がよくないので、訪問者がたびたびこのメッセージを見落としてしまうのだそうです。</p>
<p>従来のバージョンではこの応答メッセージをフォームの一番下に表示するようにしていたのですが、今回これを変更して、ユーザーが自由な位置に応答メッセージのプレースホルダーを置けるようにしました。応答メッセージは送信後にこのプレースホルダーの中に表示されるようになります。</p>
<p>このプレースホルダーを表現するタグとして、<code>[response]</code> を新たに導入しました。これをフォームセクションの中でならどこでも、何回でも挿入できます。もし <code>[response]</code> が1回も使われていなかったら、従来どおりフォームの一番下に応答メッセージを表示します。</p>
<h4>JavaScript アクションフック: <code>on_sent_ok</code></h4>
<p>フォームの送信が完了した時に何かコードを実行したい、と思うこともあるかもしれません。例えば、Google Analytics のトラッキングコードを走らせて、訪問者のフォーム利用を追跡したり、それをコンバージョンとしてカウントしたりとか。</p>
<p>新しく導入した JavaScript アクションフックはそんなときに便利です。フォームの送信に成功した時に実行させたいコードがあったら、その先頭に <code>on_sent_ok</code> のキーワードをつけて、「その他の設定」セクション(これもこのバージョンで新規導入されたもので、管理パネルの一番下にあります)に挿入するだけです。こんな感じ:</p>
<p><img loading="lazy" data-attachment-id="419" data-permalink="https://ideasilo.wordpress.com/2009/05/31/contact-form-7-1-10/on_sent_ok/" data-orig-file="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png" data-orig-size="420,120" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="on_sent_ok" data-image-description="" data-image-caption="" data-medium-file="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=300" data-large-file="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=420" src="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=420&#038;h=120" alt="on_sent_ok" title="on_sent_ok" width="420" height="120" class="aligncenter size-full wp-image-419" srcset="https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png 420w, https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=150&amp;h=43 150w, https://ideasilo.files.wordpress.com/2009/05/on_sent_ok.png?w=300&amp;h=86 300w" sizes="(max-width: 420px) 100vw, 420px" /></p>
<p>コードを適切な引用符で囲む必要があるので気をつけてください。それからコードは1行に収まっていないといけません。</p>
<p>もっと実用的な例として、<a href="http://www.google.com/support/googleanalytics/bin/answer.py?hl=jp&amp;answer=55514">Google Analytics のトラッキング関数</a>を使うならこんな感じになります:</p>
<p><code>on_sent_ok: "pageTracker._trackPageview('/funnel_G1/step1.html');"</code></p>
<h4><code>WPCF7_LOAD_JS</code> 定数による JavaScript ロードの抑制</h4>
<p>デフォルトでは Contact Form 7 は contact-form-7.js、jquery.form.js、jquery.js の3個の JavaScript ファイルを個々のページでロードします。これは Ajax の機能に必要です。Ajax を使った滑らかな送信動作というのは Contact Form 7 の良いところのひとつだと自負していますが、聞くところによるとこの機能が好きではなく、このために JavaScript ファイルを読み込むのも無駄でしかないと考えている(いけすかない!)ユーザーもいるようです。仕方がないので、この機能をオン・オフ変更できるように変えました。</p>
<p><code>WPCF7_LOAD_JS</code> 定数の値が <em>false</em> の場合(デフォルトでは <em>true</em>)、Contact Form 7 は JavaScript をロードしません。定数を設定するなら wp-config.php の中でこんな風にするといいでしょう:</p>
<p><code>define ( 'WPCF7_LOAD_JS', false );</code></p>
<p>裏技: <code>WPCF7_LOAD_JS</code> を <em>false</em> に設定したものの、特定のページでは JavaScript を読み込ませたいという場合は <code>wpcf7_enqueue_scripts()</code> をテンプレートファイルの中で呼び出してください。<code>wpcf7_enqueue_scripts()</code> は <code>wp_head()</code> より先に実行される必要があるので注意してください。</p>
<h4>その他の変更</h4>
<ul>
<li>ファイルアップロードのサイズ上限指定に <em>kb</em> と <em>mb</em> の単位シンボルが使えるようになります。次の3個のタグはどれも同じ意味になります。
<p><code>[file your-file limit:1048576]</code><br />
<code>[file your-file limit:1024kb]</code><br />
<code>[file your-file limit:1mb]</code></p>
<p>小数点つきの値は使えないので注意してください。例えば <code>[file your-file limit:1.5mb]</code> のような指定をしても無視しますので。
</li>
<li>寄付呼びかけのバナーを管理画面に置かせてもらってます。ランダム表示でかなり低い確率でしか表示させないようになっているので、ひょっとしたら目にする機会はないかもしれませんが。
<p>もしあなたが(またはあなたの顧客が)寄付のことなど見るのも汚らわしいと感じているようでしたら、<code>WPCF7_SHOW_DONATION_LINK</code> を <em>false</em> に指定して表示を解除してください。wp-config.php にこんな風に書くとよいでしょう:</p>
<p><code>define( 'WPCF7_SHOW_DONATION_LINK', false );</code>
</li>
<li><code>wpcf7_version()</code>、<code>wpcf7_read_capability()</code>、 <code>wpcf7_read_write_capability()</code> の各関数を削除しました。もしこれらの関数を使っていたなら、今後は代わりに定数を使ってください。
</li>
<li>JavaScript のロードをヘッダではなくフッタで行うようにしました(それが可能な場合のみ)。これによりパフォーマンスが多少よくなると思います。
</li>
<li><code>plugins_url()</code> を使用するようにしたことで HTTPS のサポートが多少改善されているはずです。</li>
<li>全体的にファイル配置の見直しやコードのリファクタリングを行いました。</li>
</ul>
<h4>翻訳の更新</h4>
<p>新規追加:</p>
<ul>
<li>Bosnian (bs) – <a href="http://www.seorabbit.com/">Vedran</a></li>
<li>Serbian (sr_RS) – <a href="http://www.seorabbit.com/">Vedran</a></li>
</ul>
<p>更新:</p>
<ul>
<li>Hungarian (hu_HU) &#8211; <a href="http://hia.itblog.hu/">Andras Hirschler</a></li>
<li>Italian (it_IT) – <a href="http://gidibao.net/">Gianni Diurno</a></li>
<li>Swedish (sv_SE) – <a href="http://wp-support.se/">the Swedish community</a></li>
</ul>
<p>ありがとうございました。</p>
<p><a href='http://www.pledgie.com/campaigns/3117'><img alt='Click here to lend your support to: Support Contact Form 7 and make a donation at www.pledgie.com !' src='https://i2.wp.com/www.pledgie.com/campaigns/3117.png' border='0' /></a></p>
]]></html><thumbnail_url><![CDATA[https://i2.wp.com/ideasilo.wordpress.com/files/2009/05/additional-headers.png?fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[420]]></thumbnail_width><thumbnail_height><![CDATA[320]]></thumbnail_height></oembed>