该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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」是开源软件。 以下人员对此插件做出了贡献。

贡献者