There is a lot of interest in the sidebar login shown on this site, even by users who may not be using a Twitter Bootstrap theme. The tutorial in the “How I Did It” category is specific to Twitter Bootstrap, which this particular site uses. But this tutorial is an example of how you can create this type of login wiget styling without using a theme based on Twitter Bootstrap. Actually, you will be using Bootstrap or some of it, but loading it with your existing theme and/or custom WP-Members custom css. For this example, we will create this with a simple theme – WordPress TwentyTen. Continue Reading →
The functions.php file
The functions.php file is an important element in customizing WordPress. It is also an important element in terms of customizing and integrating WP-Members into your site.
While you are not required to do any customization to get WP-Members to work on your site (it is, after all, a plugin), to leverage the power of the framework and thus make it look professional and seamless on your site, you will need to have some knowledge of the functions.php file.
Continue Reading →WordPress site management best practices
WordPress is a great tool and it has become an icon in the Internet world. But with success of distribution comes the vulnerability of becoming a target for hackers. Many of you have experienced what it is like to deal with hacking and malware. Hopefully most of you haven’t experienced this yet. This post will cover some best practices so that hopefully, you won’t ever have to deal with that. Continue Reading →
Blocking content in a custom template
Lately, this question has come up a lot. How do you block content that is outside the loop and still display the login/registration forms on the page.
This type of issue may come up if you are using a custom query to put some specific content on a specific page, or it might be that you are displaying specific data that you want to protect. As long as it is something in the WordPress template framework, you can still use WP-Members to block the content. Continue Reading →
WP-Members 2.7.6 release
Some exciting updates in this release:
- Added ability to use same redirect_to querystring that WP uses in the wp-login form. This allows more seamless replacement of the wp-login.
- Added a new page shortcode for password reset/change [[wp-members page=”password”]]. If the user is logged out, it works the reset forgotten password functionality. If the user is logged in, it will offer the change password functionality. These functions do also remain in the members-area page shortcode as well, but now can be placed in a stand-alone location as well.
- Added a new page shortcode for the user edit page [[wp-members page=”user-edit”]]. This needs to be used if the user is logged in and can be used with the login status shortcode.
- Removed $content global from the page shortcode function. This should correct the double form issue when used with plugins/themes that filter $content.
- Added do_shortcode to the page shortcode call. This should allow the page shortcodes to be used in conjuction with other shortcodes on the page (although this is not necessarily recommended).
- Added translations for Russian, Slovak, and Hindi.
- Moved _OLD forms to wp-members-deprecated.php. These forms can still be used, but will be deprecated in a future version. It is highly recommended that users still using legacy forms begin converting to the _NEW forms.
The addition of redirect_to to the login form gives users the ability to seamlessly replace the wp-login with the login_enqueue_scripts action. There’s an example of how to set this up here.
The reworking of shortcodes and the addition of some new ones allows more flexibility with the shortcodes than in the past. It allows for the use of more than one of the “page” shortcodes on a single page, allows for nested shortcodes (such as putting page shortcodes within the logged in/out status shortcodes). In my opinion, this is probably the most powerful update in this release.
The new shortcodes break out some of the functions of the members-area page to be used separately as needed/desired.