Wordpress Plugins – Extensions

Just another WordPress.com weblog

WP-Members 2.2.2

Author: cbutlerjr
WP-Members is a plugin to restrict WP content to be viewable by registered site members. It also puts the registration process inline with your content rather than using the native WP registration process. It is designed to work “out-of-the-box” with no modifications to your theme, but it is scalable for those that want to customize the look and feel, or want to restrict only some content
Installation:
WP-Members 2.x is designed to run “out-of-the-box” with no modifications to your WP installation necessary. There are also optional features that, if implemented, will require you to add some php to your theme.

Basic Install:

Upload wp-members.php to the /wp-content/plugins/ directory
Activate the plugin through the ‘Plugins’ menu in WordPress

That’s it! You are ready to begin using WP-Members. Follow the instructions titled “Locking down your site” below. A “Quick Start Guide” is available at http://butlerblog.com/wp-members. A live example site is viewable at http://butlerblog.com/wpmembers.

(Upgrading from 2.1 or earlier: If you are running a previous version “out-of-the-box,” you should be able to upgrade without any problems. If you did any customization to which registration fields are used and/or required, you can simply set this in the new admin panel to match your current usage. However, if made changes to the code to customize the fields beyond this, i.e. field names or types, you should not upgrade at this time. Also, if you made code changes to the inline registration and login forms, you should download and compare the new code to your customizations before upgrading.)

Locking down your site:

To begin restricting posts, you will need to be using the <!–more–> link. Content above to the “more” split will display on summary pages (home, archive, category) but the user will be required to login to view the entire post.
If you want to restrict comments from being viewed along with posts, add the following at the top your comments.php template file: <?php if (!is_user_logged_in() && !get_post_custom_values(‘unblock’)) { $post->post_password = wpmem_generatePassword(); } ?>
To further protect comments, we recommend setting “Users must be registered and logged in to comment” under Settings > Discussion
Also on the page Settings > General, we recommend making sure “Anyone can register” is unchecked. Although not required, this will prevent WP’s native registration from colliding with WP-Members.
If you want to display the user’s login status, and the following function call to your template: <?php wpmem_login_status(); ?>
To add the login box to the sidebar (if desired) – if no widget support, call the function <?php wpmem_inc_sidebar(); ?>. If you do have widget support, you can just drag the WP-Members widget to your sidebar.
If you want to have your users be able to edit their login information, add a page (not a post) with a slug of “members-area”. In the body of this page, place <!–members-area–> where you want WP-Members to display its content. (You may place content before and after this if desired.) This page will allow registered members to edit their information or change their password, and will display the registration form for new members. (If you are using the default permalinks, i.e. http://yoursite.com/?p=123, then you must be certain this page title is “Members Area”. Check Settings > Permalinks to see your settings.)

faq:
I activated the plugin and went to test it and it didn’t block my post?

Make sure you log out of the admin before you test. If you are logged in as admin, you will be able to click through to view the post. (To know if you are logged in, we suggest using the WP-Members login widget, included in the installation. However, you must have the widgets plugin and a widget enabled theme to use this feature.)

Also, be sure you are using the <!–more–> tag. The blocking only takes place one single posts (or, optionally, pages). Without this tag, a full post would display on your home page or on an archive/category page.

How can I show the login status on the sidebar?

If your theme is widget enabled, activate the widgets plugin, then add the WP-Members widget to your sidebar. If you do not have widgets, you can call the function by adding this to your sidebar: <?php wpmem_inc_sidebar(); ?>

I’m really only using this to add user fields and have the login integrated into the site. I would rather that posts be unblocked by default. How do I do that?

New in version 2.2 is the ability to change the settings for how WP-Members blocks content. The default is to block posts and allow individual posts to be set to unblock at the post level. If you change this to “no,” then all posts will be viewable by default. If you then have a post that you want blocked to registered members only, you can set the post to block at the post level.

How do I block (or unblock) an individual post (or page)?

If you are using the default settings (as mentioned above), and you have a post that you want to be unblocked (viewable by any user, not just logged in users), on the Edit Post page add a Custom Field with the name “block” and set the value to “true” or “1” (either will work). This post will be now be viewable by anyone. If you have set WP-Members to unblock by default and you want to block an individual post, use a Custom Field with the name “unblock” and set the value to “true” or “1”.

How to I change the registration fields that are used and which are required?

These settings can be managed on the WP-Members admin panel found under Settings > WP-Members

Where do I find the users registration information?

WP-Members was designed to fully integrate with WordPress to allow maximum compatiblity not only with WP, but also with other plugins that rely on WP user registration information, such as discussion forums, email newsletters, etc. The user information is in the main WP users page under Users > Users, then click “Edit” under an individual user. Any non-native WP fields (WP-Members custom fields) are added to the bottom of this page and are fully editable. (Note: if you don’t have any registered users yet, i.e. a clean install, these fields will not display until there is data in them.)

WP-Members 2.2.2

Advertisements

August 6, 2010 - Posted by | download, extension, extensions, free, get, internet, plugin, plugins, Uncategorized, wordpress

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: