- b2evolution CMS Support Forums
- b2evolution Support
- Plugins & Extensions
- Protected Posts Plugin
1 achillis Oct 21, 2013 17:04
Protected Posts
This plugin allows you to password protect your posts, and visitors would have to enter correct password in order to view post content and comments.
All passwords are stored in cookies (optional) and visitors don't have to enter them every time.
Compatibility
This plugin works in b2evolution v5
Compatibility for b2evolution v2, 3 & 4 is still un-tested
Updates:
- The user can select to install new comment forms [_comments.disp.php] files automatically into the required skins folder (Normal & Mobile/Table (if any)).
- If the user choose to select the install option, the user can specify how comment authors name text display.
//'author_link_text' => 'login', // avatar | only_avatar | login | nickname | firstname | lastname | fullname | preferredname - The install option updates comment forms [_comments.disp.php] automatically in the required skins folder (Normal & Mobile/Table (if any)).
- The user can select to update existing comment forms [_comments.disp.php] automatically in the required skins folder/s (Normal & Mobile/Table (if any)).
This only installs the restrictions to hide protected posts comments from the public portal. Specifying login-link-text here will have no effect. - The user can select to un-install comment forms [_comments.disp.php] from the respective skins folder/s (Normal & Mobile/Table (if any)) before the plugin is deleted/un-installed.
- The user can select to restore comment forms [_comments.disp.php] in the respective skins folder/s (Normal & Mobile/Table (if any)) before the plugin is deleted/un-installed.
Restoring comment forms [_comments.disp.php] will restore it to [_comments.disp.php] as per b2evolution v5.0.6
- with the created comment forms [_comments.disp.php], protected posts will remain hidden from the public portal [index.php?disp=comments]- The user MUST first specify to (Update/Install/Retain) existing comment forms [_comments.disp.php] before the plugin can be enabled. (It will not overwrite, install or change files without the user specification)
- Bug fix * (duplicate entries error) for password creation.
Install Instructions
1) Upload the plugin in /plugins directory on your website.
2) Navigate to (/admin.php?ctrl=plugins) : Dashboard > System ? > Plugin configuration, and install it.
3) Enable the plugin and select settings. (Plugin will auto enable with correctly specified settings).
4) Navigate here: Dashboard > Blog > Settings > Blog specific plugin settings and set Apply rendering to posts to (Always) & Apply rendering to comments to (Always).
4) Once installed, you will see a new field "Set password" in post edit screen. Create and use the password to access the post, each post may have unique password with up to 255 chars.
Development
A future release will restore comment forms [_comments.disp.php] to it's original state if requested.
This means if a user has a custom comment form [_comments.disp.php] in a skin, it will be able to restore it to that state.If users prefer to make protected posts and comments available to logged in users only, please indicate and it may be implimented in the next release.
Thank you to @sam2kb (http://b2evo.sonorth.com) for his input.
Previous releases of this plugin could be found here: http://forums.b2evolution.net/topic-16830
Download v1.0.2
www.midnightstudios.co.za/downloads/protected_posts_plugin.zip
3 achillis Nov 11, 2013 22:26
Updated:
Fixed Bug: Deletes password bug when item owner comments on own post.
Fixed Bug: Didn't support multiple blog install or uninstall.
Added feature: Assigning a protected post item to a user will include a link. (Request Password from $assigned->user)
Since my user rights doesn't allow me to update the head post.... I'll juts add it here...