這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Contact Form 7 Gated Content

外掛說明

Contact Form 7 Gated Content is a lead-capture extension for Contact Form 7. This plugin adds options to your CF7 forms to gate access to a file so users don’t see a download button until after the form has been successfully submitted. Repeat visitors will be presented with the download button only, so repeat form submissions are not required.

Image Credit: Uehara, Konen, Artist. Secchū Mimeguri. Japan, None. [Between 1900 and 1920] Photograph. https://www.loc.gov/item/2008660511/.

Supported Versions

We support and test against CF7 versions 4.9, 5.0, and 5.1. Earlier or later versions may not behave as expected.

Issues?

If you’re experiencing an issue with the plugin, please file an issue on our GitHub.

螢幕擷圖

  • Options Panel
  • Before Submission
  • After Submission
  • Repeat Visit

安裝方式

This section describes how to install the plugin and get it working.

  1. Upload the contents of /contact-form-7-gated-content/ to the /wp-content/plugins/ directory
  2. Activate the Contact Form 7 Gated Content Plugin through the ‘Plugins’ menu in WordPress

常見問題集

What kinds of files can I gate?

Anything that can be uploaded to the WordPress media library.

Can the download button be customized?

Yes! You can customize the output of the download box with CSS, or you can add this snippet to your theme\’s functions.php file:

function my_content_button($url, $button_text, $button_classes, $content)
{
  return "$button_text";
}

add_filter('wpcf7_gated_content_button', 'my_content_button', 10, 3);

Can I disable the default CSS?

Yes! The default CSS can be disabled on a per-form basis.

Does this secure my files?

No! Gating content does not secure it from outside access. While it does restrict visibility of a download link to those who have completed your form, it does nothing to make the file private. Anyone with the attachment link or a properly formatted cookie will be able to access your file.

使用者評論

2019 年 4 月 18 日 6 則留言
Looks like a cool plugin, but breaks my site. – WP 5.1.1 – Divi 3.22.1 I can update the review if the bug gets fixed! Thank you. Edit: Bug now fixed.
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Contact Form 7 Gated Content〉的開發相關工作。

參與者

將〈Contact Form 7 Gated Content〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

  • 1.0.8 Add art assets
  • 1.0.1 Fix deployment issues
  • 1.0.0 Initial release
  • 1.2.0 Fix issue with multiple download buttons
  • 1.3.0 Fix issue with breaking other shortcodes
  • 1.4.0 Added option for setting download target; fix bug where we always show download button; add option to disable download button
  • 1.4.1 Fix bug with default option for enabling forms set to false