Tag: tips
-
Customizing form CSS: Adjusting floated form elements
Some of the generic stylesheets included with the plugin use the CSS property definition “float” to align the form label and input tags next to each other in a pure CSS fashion. Sometimes, CSS from the theme and the plugin can collide in a way that causes these elements to not be in alignment. The…
-
Login form honey pot
We’ve discussed building a honey pot for the registration form to prevent spam signups by bots. But what about the login form? With WordPress being so much more ubiquitous across the Internet today, there are many more attempts to hack and exploit it. Many of these attempts are automated by bots. Whether the login attempt…
-
Make WP-Members fields in the users screen sortable
Here is a code snippet that you can use to make all of the WP-Members custom fields sortable in the Users > All Users screen. To use this code, add the entire code snippet to your functions.php file. Any field in the WP-Members Fields tab that you have selected to display on the Users Screen…
-
Add a datepicker to the registration form
Here is an example of how to implement a jQuery datepicker script for the registration form. Note that as of WP-Members 3.1.8, a date field type is available. However, this is an HTML5 field type and is not fully integrated into all browsers (most notably, it is a “development” option in FireFox). This example is…
-
Add a separator line of text in the registration form (wpmem_register_form_rows version)
Using the wpmem_register_form_rows filter allows you a simple way to add custom fields and text to the WP-Members registration form using the wpmem_array_insert() API function.