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

Show Comment Policy

描述

Show Comment Policy lets you display a custom message above your site’s comment form. Display your blog comment policy or any other text you want your readers to see.

Use it for:

  • Comment policy
  • Posting rules
  • List of allowed HTML tags in comments

If you need help with this plugin

If this plugin breaks your site or just flat out does not work, please go to Compatibility and click “Broken” after verifying your WordPress version and the version of the plugin you are using.

Then, create a thread in the Support forum with a description of the issue. Make sure you are using the latest version of WordPress and the plugin before reporting issues, to be sure that the issue is with the current version and not with an older version where the issue may have already been fixed.

Please do not use the Reviews section to report issues or request new features.

螢幕截圖

  • Plugin settings page
  • The comments section showing the comment policy entered on the plugin settings page

安裝

  1. Upload plugin file through the WordPress interface.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Settings » Show Comment Policy, configure plugin.
  4. Check a post or page that allows comments.

常見問題

How do I use the plugin?

Go to Settings » Show Comment Policy and enter the text you want to see above the comment form. Make sure the “enabled” checkbox is checked. Note that the comment policy will only be displayed on pages/posts where the comments are open. If comments are closed, the policy will not appear. You may also includes shortcodes which will be processed for output.

I entered some text but don’t see anything on the page.

Are you using another plugin that is also trying to use the comment_form_before hook?

Is the page/post cached?

Are comments open? The comment policy will only display if comments are actually open.

How can I style the output?

The comment policy text is wrapped in div tags with class name “scp-comment-policy”. Use this class in your local stylesheet to style the output how you want.

I don’t want the admin CSS. How do I remove it?

Add this to your functions.php:

remove_action('admin_head', 'insert_scp_admin_css');

評價

閱讀全部1個評價

貢獻者及開發者

“Show Comment Policy” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Show Comment Policy 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

0.1.2

  • confirmed compatibility with WordPress 4.1

0.1.1

  • updated .pot file and readme

0.1.0

  • fixed validation issue

0.0.9

  • minor code optimizations

0.0.8

  • code fix
  • admin CSS and page updates

0.0.7

  • updated support tab

0.0.6

  • minor code fix

0.0.5

  • code fix

0.0.4

  • option to hide output for logged in users
  • now processes shortcodes
  • code optimizations
  • plugin settings page is now tabbed

0.0.3

  • fix 2 for wp_kses

0.0.2

  • fix for wp_kses

0.0.1

  • created
  • verified compatibility with 3.9