Linux 软件免费装
Banner图

p5 : Plenty of Perishable Passwords for Protected Posts

开发者 cyrilbatillat
更新时间 2014年5月21日 03:15
PHP版本: 3.5 及以上
WordPress版本: 3.9.1
版权: GPLv2
版权网址: 版权信息

标签

password expiration protected posts

下载

1.0 1.1 1.2 1.3 1.4 1.4.1

详情介绍:

By default, Wordpress can protect each post with one and only password. This plugin gives you the possibility to assign multiple passwords on each post, with an expiration date.

安装:

  1. Upload plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Specify WordPress timezone on General Settings screen (/wp-admin/options-general.php). If possible, choose a real timezone (eg 'Europe/London') which may be more accurate than offsets ('+2:00') in some cases.
  4. Be sure that your template files use the WordPress function to protect your content :
<?php if ( post_password_required() ) { ?> <div id="form-password"> <?php echo get_the_password_form(); ?> </div> <?php } ?> See WordPress codex for more info.

屏幕截图:

  • A protected post with multiple passwords

常见问题:

What happens when a password expire ?

The password is deleted from the database, so it is no longer attached to your post.

Expired passwords aren't deleted. Why ?

The plugin use WordPress cron feature to periodically delete expired passwords. Please make sure this functionnality is working on your WordPress installation. WP-Cron Control plugin is a good way to see what's happening with the cron.

My post is no longer protected. Why ?

In WordPress, a post is protected as long as it has a password attached. When all the post passwords have expired, the post is no longer protected. It's as simple as that. To keep a post protected, assign it a password without an expiration date.

Are my already defined passwords conserved after installation ?

Yes.

Are my password-protected posts still protected when I deactivate/uninstall p5 plugin ?

Yes. After deactivation or uninstallation, your posts are still protected with the first password that was attached to each of them.

My password is supposed to be expired, but I still can see my protected content

Be sure that the timezone is well defined in /wp-admin/options-general.php

Does this plugin provide some hooks ?

Yes. Actually these actions are defined :

  1. p5_insert_password, called after insertion of a new password
  2. p5_update_password, called after password update
  3. p5_save_password, called indifferently after p5_insert_password or p5_update_password.
  4. p5_delete_password, after a password has been deleted

更新日志:

1.4.1 Fixed bug on form when WordPress is used with non-Cyrillic characters 1.4 1.3 Get ready for languages packs (WP 3.7.1 feature) 1.2 Workaround to url_to_postid getting bugged. (see http://core.trac.wordpress.org/ticket/19744) The post ID was not retrieved on custom post types. 1.1 Use CSS scope on jQuery UI datetime picker to avoid collisions 1.0 First release