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

Protected Post Personalizer

外掛說明

This plugin is a simple one, but good at what it does. It changes three elements of protected posts to make them more friendly to visitors.

Prefixes:

  • customize prefix for password-protected posts from default “Protected: “
  • customize prefix for private posts from “Private: “

Custom Previews:

  • ability to use the post’s excerpt (if one is saved) when no password is given
  • ability to show custom text for all password-protected posts
  • if no saved excerpt, show the default OR use custom site-wide text

Password Form:

  • change text before the password input box
  • change text of submit button
  • add custom CSS; set class or ID for theme integration

Change Log

0.6 – corrected for WordPress 2.7, which handles protected and private posts differently.
0.5 – initial public release

螢幕擷圖

  • Seen here with (mostly) default options. The 'Assign ID, Class, or Inline Styles' box has been given an example setting, because Wordpress' default is no id, class, or style.
  • These are my personal settings for glot.homepie.org (seen with colorful customized CSS for the Alluric Admin plugin).

安裝方式

  1. Upload protected-post-personalizer.php to your /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. In the ‘Settings’ menu click ‘Protected Posts Personalizer’ and change any text you want, then click Save Changes.

常見問題集

Does this change the way WordPress handles passwords?

No, not at all. This plugin is specifically for changing how password-protected and private posts are displayed. Changing these will not affect the password system at all.

What if I only want to change one thing and nothing else?

That’s fine. All plugin defaults are WordPress defaults. If you install it and don’t change the values, nothing will appear different.

Can anything go in the ‘Assign ID, Class, or Inline Styles’ box?

Tecnically, yes. This option inserts text directly into the <p> tag of the password form. That means that, while you could put anything in there, if you put something which is invalid HTML or XHTML odd things will probably happen. Additionally, you’re site won’t validate.

What if I want to keep the default post previews, but also want to use a customized password form?

No can do. Because the text of the custom password form relies on having a custom function to call it, you must use one of the ‘custom’ options. It’s practically the same thing. Is it that important to tell visitors “There is no excerpt because this post is password protected”? Because, in fact, that’s the only difference.

Neato! But I was really hoping for a protected post plugin that would do…

Please, please do submit any ideas for the future at the plugin’s homepage. If you can think them and I can program them, we’ve got ourselves a new feature.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Protected Post Personalizer〉的開發相關工作。

參與者

將〈Protected Post Personalizer〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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