Before the wpmem_register_form_rows filter was added, the way to insert a separator line of text into the registration form was by using php’s str_replace function to search/replace text/HTML in the form with the wpmem_register_form filter. While that way still works, wpmem_register_form_rows allows you an alternate approach that is much more simple using the wpmem_array_insert() API function. [Read more…]
This is a general discussion of how to customize the fields that are displayed in the registration form based on the page or the post that it is being displayed on.
There are some more advanced ways to approach this, but for most users, this will be the easiest to implement.
Note: this is a general discussion of how to implement. It is not a copy/paste codes snippet (although the code examples can be copy/pasted and used as-is as a general overview of trying out the approach discussed). You will need a basic knowledge of PHP to implement this based on your own custom fields. [Read more…]
I’ll be honest and tell you that this requires some php skills as you’ll need to be able to do some string manipulation via one of the filter hooks. You’ll also need to have some working knowledge of CSS. This tutorial will give you the basics to create a version of the display shown, which was done in the Twenty Fourteen theme – depending on your theme, your mileage may vary and you’ll need to know CSS to work with adjusting the layout. [Read more…]
The previous method involved adding each checkbox as a field, and then all of the extra code we needed to handle multiple fields as one both for storing the data, handling user updates, and also in emailing admin notifications.
But 2.9 allows us to filter the rows directly in the array of rows and insert the extra html we need for this. That means you only need to create one field in the fields manager which makes handling the data much easier on the backend. I’ve even made the code snippets nearly cut-and-paste. In most cases, you should only need to specify the name for the checkbox group and the labels/checked values. [Read more…]
When I first developed the admin panels for the plugin, I added editable dialogs for most of the various error messages. Since then, some additional dialogs have been added for form validation (as well as the ability to add your own validation and messages). However, most of those were not included in the dialogs tab. This is mainly because it does take quite a bit of programming overhead and more system resources for adding this as a feature.
So what if you want to change one of these messages? For example, you would like to change the message “The username cannot include non-alphanumeric characters” to something more light hearted, such as “Like, no weird characters in the username, dude!” This code snippet collects a number of these default message strings and allows you to replace them with your own versions. [Read more…]