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 →
str_replace
Create different styles for “success” and “error” messages
This is an idea that has been floated by a few users, which means there is probably a need for it. As is usually the case, I don’t like to make wholesale changes to the codebase that effects users in a way that requires them to make a change to accommodate an update. So I wouldn’t want to change the plugin to put in different classes, since users with a custom stylesheet would need to be paying attention when they update to accommodate the new classes in their stylesheet. But this is something that we can certainly do on the fly using the wpmem_msg_dialog filter. This article will show you how to do just that. Continue Reading →
Add password and email confirmation to the registration process
NOTE: As of plugin version 2.9.3, password, password confirm, and email confirm fields are included in the plugin’s default fields. All you need to do is enable them. Everything described in this post is now integrated into the plugin.
Some users like to have a confirmation process in their registration. For example, having two email fields and comparing to make sure the user properly entered their email address. This code snippet will show you how you can quickly add this feature with the addition of some custom fields in your form.
Adding user display name to the registration form
WordPress does not allow for users to change their username, so neither does WP-Members. However, it does allow for the use of “display name” which is the name that is displayed on the site when showing users’ names. The default install of WP-Members does not make use of display name. In fact, by default, it adds the user’s username to this field so that it is not empty in the database, just in case you are using that information somewhere else on the site (such as in a forum).
But what if you want to make use of the display name field? How can you add that to the front-end user profile in WP-Members. This post will show you how to add it to the registration form (which by default includes the user update form), and then how to show it only in the user update form. Continue Reading →
Add section headings to the registration form
In cases where you have a long registration form, you may want to add section headings to the form for an easier user experience. This post will give you a simple example to add headings to your form. For this example, we will be using the default values that install with the plugin and be adding an html <h2> heading to some of the form.Continue Reading →