Development

Protected Post Password Hint

If you have ever thought of providing password hint for any protected posts, this plugin will be useful. It replaces the boiler-plate password form with a form containing hints.

Traditionally all password protected posts contain a string looking like:

WordPress password box

Without any capability to change the string, one must provide the hint in another post, which is a bit clumsy. Not to mention, people viewing the single protected post only will be unable to see the hint at all. With this plugin protected posts are more usable.

Usage

A picture is worth a hundred words: :)

How to use wordpress password hint plugin

Click to enlarge image

The password hint is taken from a certain custom field within the protected post, with key name ‘password_hint’. If this key is present, the value of key is immediately taken as the password hint. Without the key, the standard password form is shown again… well, with some little enhancement actually. The password form will not be mangled by content autoformatting done by WordPress, and you can change the style of password form with style sheets!

Hint is shown along with password box

Hint is shown along with password box

Download

Please visit corresponding WordPress plugin page.

Installation

  1. Decompress zip file
  2. Copy protected-post-password-hint.php to plugin subfolder (usually wp-content/plugins/)
  3. Activate plugin in WordPress admin page. No configuration needed.

License

This plugin is released under BSD license.

Version History

Version 1.0 (2008-08-11)

Initial Release.

7 Responses

  1. 長耳動物 says:

    It’s a very good plugin.. I am using it now..

    thank you dog dog ….

  2. skyx says:

    我本來打算以這個”密碼提示”作為我的第一個wordperss的插件呢,看來還是不用了吧,狗爺已經做了,哈哈.

    可惜還沒學習php阿~所以遲遲沒開始~不知何年何月才玩插件吧.呵.
    謝謝狗爺~~

    PS: 不過wordpress官方blog不能裝插件呢…能建議它們安裝這個為內置function嗎?

    • Abel says:

      不過wordpress官方blog不能裝插件呢…能建議它們安裝這個為內置function嗎?

      基本上沒甚麼可能,因為 wordpress.com 是以商業模式運作的,要加哪個插件,可以說都是商業決定。

  3. 夏維 says:

    您好,我經由路人的推薦得知此可以提示密碼的插件,但方才實際安裝啟用的結果發現似乎還沒支援到2.7,想請問作者您會考慮做更新版本嗎?此插件對於鎖密碼但無法出現提示的文章來說是很貼心的設定,希望會有用到此插件的機會。

    • Abel says:

      我因為未將 WordPress 更新至 2.7 (WordPress 的 x.x.0 版本一向都不可靠),所以不知道它和 2.7 不兼容。這幾天內會安裝 2.7 測試一下,並更新這個插件。

    • Abel says:

      @夏維:

      剛測試過,它在 2.7 也能正常使用啊。請問你在使用時出現甚麼問題?
      另外,如果要顯示密碼提示,是需要在 custom field 內加上提示的,詳情請留意上面 usage 那一段。

      • 夏維 says:

        您好,因為完全沒使用過custom field(自訂欄位)所以平常是不讓它顯現的,經您的提醒後再去摸索一會兒後已經知道使用方法了:)
        只是對於WP不能只把繼續閱讀的部份加密覺得有點麻煩^^”

        很感謝您製作的插件ˇ

Leave a Reply

E-mail is not disclosed nor shared. Required fields are marked *