Member Access

January 25, 2012

Member Access Plugin

Member Access is a WordPress plugin that allows an administrator to require that users be logged-in in order to view certain posts and pages.

Please report any bugs and feel free to suggest new features.

Member Access allows a WordPress administrator to make individual posts and pages accessible only to logged-in members. Member Access allows global configuration so that all posts or pages can be viewable by everyone (the default) or only by members, and it also allows each post and page to override the global setting.

WordPress pages which display multiple posts, such as search results, archives and RSS feeds, can be configured to either omit entirely content that is only available to members or to include an excerpt for that content to entice non-members to sign-up.

Template developers can take advantage of the members_access_is_private template tag to make custom template modifications to further configure the display of content that is viewable only to members.

Non-members can be redirected to the WordPress login page, or to a page of the administrators choosing, when they access content intended for members. Redirection can also be configured to occur if generated archive or search result pages contain only member content.

More info:

Localization

NOTE: If you have previously sent me a translation file, please resend it. All stored translation files were lost!

If you are interested in contributing to the localization of Member Access, please contact me and let me know which language you would like to translate. All help is greatly appreciated!

Localization Contributors:

Some resources on localization:

Template Developers

This plugin provides the template tag member_access_is_private() that can be used to determine whether or not a post should be visible only to members. You can use this tag in your templates to add custom styles to posts that are not available to the general public. For example:

<?php if (have_posts()): while (have_posts()): the_post() ?> <?php if (function_exists(member_access_is_private) && member_access_is_private(get_the_ID())): ?> <div class="members-only"> <?endif;?> <h1 class="post_title"><?php the_title(); ?></h1> <?php the_content(); ?> <?php if (function_exists(member_access_is_private) && member_access_is_private(get_the_ID())): ?> </div> <?endif;?> <?php endwhile; endif; ?> 

You should also keep in mind that calls to the_content() from within the loop may instead function as though the_excerpt() was called if the administrator has configured the plugin to show excerpts for non-public content.

More Information

Installation

Installing Member Access is easy:

  • Download and unzip the plugin.
  • Copy the member_access folder to the plugins directory of your blog.
  • Enable the plugin in your admin panel.
  • An options panel will appear under Plugins.
  • Choose the settings you want.

Screenshots

  1. This screenshot shows the Member Access options screen.

    This screenshot shows the Member Access options screen.

  2. This screenshot shows the Write Post interface where global settings can be overridden for a single post.

    This screenshot shows the Write Post interface where global settings can be overridden for a single post.

  3. This screenshot is from the Manage Posts interface. The 'Visibility' column shows the visibility status for each listed post.

    This screenshot is from the Manage Posts interface. The 'Visibility' column shows the visibility status for each listed post.

FAQ

Installation Instructions

Installing Member Access is easy:

  • Download and unzip the plugin.
  • Copy the member_access folder to the plugins directory of your blog.
  • Enable the plugin in your admin panel.
  • An options panel will appear under Plugins.
  • Choose the settings you want.

Changelog

1.1.6

  • Add Quick Edit functionality
  • Fixed incorrect field value when clearing overrides
  • Fixed encoding problems with readme file
  • Require jQuery 1.7 (WP 3.3 or later)

1.1.5

  • Added French translation by Jérôme Fabre
  • Fixed “unexpected output during activation” warning
  • Tested up to WordPress v3.3

1.1.4

  • Reverse order of changelog entries.
  • Fix “Settings” link on plugins page.
  • Tested up to WordPress v3.2.1

1.1.3

  • Added Danish translation from Jakob Smith
  • Fix localization issue preventing use of configured WP_LANG language
  • Move settings option from “Plugins” to “Settings” menu in admin panel
  • Replace use of deprecated wp_specialchars with esc_html
  • Replace use of deprecated attribute_escape with esc_attr

1.1.2

  • Verified compatibility with WordPress 3.0

1.1.1

  • Tested to WordPress v2.8.4
  • Added Changelog
  • Removed filter loop which cased script execution to halt, resulting in blank pages. Thanks James Turner.
  • Only private posts display excerpts on archive pages (instead of all posts). Thanks James Turner.
  • Posts Page redirect pulldown was not correctly showing current option. Thanks maestrobob.
  • Version bump to 1.1.1

1.1

1.0

  • Added uninstall functionality
  • Validated for use with WordPress 2.7.1

0.1.4

  • Implemented i18n hooks and added default messages.pot for translators.
  • Fixed problem with quick-edit nuking per-post plugin settings.
  • Validated for use with WordPress 2.7

0.1.3

  • Plugin still broken for some PHP4 installations

0.1.2

  • Settings link on plugin page doesn’t display
  • Object overloading does not work by default in PHP4

0.1.1

  • Code still includes use of ‘self’ keyword
  • Call to a member function query() on a non-object

0.1

  • Initial Release.

Details

  • Version: 1.1.6
  • Active installations: 2,000
  • WordPress Version: 3.3
  • Tested up to: 3.3.2

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars