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

Highlight Author Comments

描述

Highlight Author Comments automatically displays comments made by a post’s author in a distinctive style with no need to edit your template files, etc. All you do is provide a snippet or two of CSS styling to be applied to author posts.

Version History

  • Version 1.0.2
    • Workaround for WP bug that failed to style the first paragraph as a paragraph
  • Version 1.0.1
    • Added the ability to style the comment author link
    • Added some security with nonces
  • Version 1.0.0
    • Initial version

安裝

Highlight Author Comments is installed in 3 easy steps:

  1. Unzip the “Highlight Author Comments” archive and copy the folder to /wp-content/plugins/
  2. Activate the plugin
  3. Use the Options > Highlight Comment admin page to enter the CSS styling you want to apply to author comments.

常見問題

What Do I Enter in the Options Page?

The plugin Options page just has couple of text boxes where you put the bits of CSS you want to apply to highlighted comments. Don’t include { or }: just the CSS. For example, by default the plugin applies the CSS padding: 1em which ‘indents’ the comment a little all round. If you wanted to also make the text red, for example, you would use color: red; padding: 1em.

You can style the body of the comment itself and/or the link to the comment author.

CSS Styling… What’s That?

Cascading Style Sheets (CSS) is too complex a subject to go into here. A good resource is provided by the Web Design Group.

How About Some Examples?

Here’s where some artistry would be a help! In lieu of skill here are some examples to play with:

  • padding: 1em;
  • padding-left: 20px;
  • background-color: #FFFF95;
  • border-left: 1em solid #DDD; padding: 1em;
  • background: white url(http://www.yourblog.com/images/fluffy-clouds.gif)
  • background-color: silver; margin-left: -2em; padding: 1em 1em 1em 2em;
  • etc.
How Does It Know Which Comments to Highlight?

The plugin simply compares the email of the post author with the email of the commentor. This works fine as long as a post author is logged in when commenting. It will fail if the author is not logged in and uses a different email.

評價

2016年9月3日
Installed it just now and give a lot of options such as adding images etc to the author comments . Really great hats off
閱讀全部1個評價

貢獻者及開發者

“Highlight Author Comments” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Highlight Author Comments 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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