When moderating registration and sending admin notification emails, WP-Members has a shortcode in the email that allows you to click through to that particular user’s profile to activate them. But what if you want the link itself to activate the user? This tutorial will show you how to set up a process to make that a single click process. Continue Reading →
Blog
Blocking custom post types
Note: As of WP-Members 3.0, you can add custom post types to the plugin’s main blocking options. See the options documentation section on Custom Post Types.
With explosion of custom post types in WordPress 3.0, the WordPress world has changed somewhat from what it was when WP-Members was first developed. If you have a theme or site that uses custom post types, you may find that you need to make some adjustments to accommodate what content you would like to be blocked.
WP-Members 2.8.2 beta release now available
Current Release Candidate: RC 4
WP-Members 2.8.2 is both a feature release and a fix release. Continue Reading →
WP-Members 2.8.1 str_getcsv patch
An improvement to the dropdown capability for the custom field manager in WP-Members 2.8.1 actually has an incompatibility for users with php less than 5.3. While I will patch this for the 2.8.2 release, you can apply the patch for 2.8.1 with these instructions.
Note: if you are using PHP 5.3 or greater, this patch is unnecessary. If you are having issues with the dropdown, it is not likely related to this.
- Open the wp-members file /admin/tab-fields.php in the plugin editor (Plugins > Editor in the admin menu).
- Search for this line (line# 206):
$arr[7] = str_getcsv( $str, ',', '"' );
- change that line to the following:
$arr[7] = explode( ',', $str );
- Save this change.
Note: you will not be able to use commas in your values
WP-Members 2.8.1 shortcode patch
I am always nervous about releasing updates to the plugin because in the back of my mind I am wondering what element slipped through the cracks. The 2.8.1 release was no exception.
WP-Members 2.8.1 made it out the door with a small error related to the new “user-profile” shortcode.
The problem was with the logic in line 208 of wp-members-core.php:
$page = ( 'user-profile' ) ? 'members-area' : $page;
This would actually always return true, which would mean that all shortcodes using the “page” parameter would be members-area pages. So register and login pages, while still being able to provide their core function, wouldn’t be working quite the way they should since they would have both the login and registration forms in the logged out state and wouldn’t have the correct links in the logged in state.
The fix (which has been implemented in the download already) is to change line 208 of wp-members-core.php to:
$page = ( $page == 'user-profile' ) ? 'members-area' : $page;