The shortcode for the profile detail page is easy to install and use. It allows for you to add specific IDs and classes that you can style with CSS to get the profile looking the way you want it. Continue Reading →
Blog
Create a Table Style Layout for the User List Extension
Note: The User List plugin now has an option to apply a table style layout to the list. It is available in the plugin’s settings. Applying that setting automatically applies style to the list that is what is discussed in this tutorial (i.e. you don’t need to do this customization anymore). However, I have left this discussion on the site because it shows a process of customizing the layout and can be used to teach necessary concepts for customizing the plugin.
I recently was asked if the User List extension could display a table style layout with links to a more detailed user profile. My initial thought was “Great idea. How can we do that?”
CSS is a powerful tool, and with a little bit of CSS here, and a very simple filter (only for the heading), you can have a table style layout for the user list that looks like the screenshot to the left.
The screenshot was taken from the my test of how to put together such a customization. To be very honest, it took me less than 30 minutes to put this together – and that’s working from scratch. I’ll show you in this post exactly what I did, so while it might take you a little time to read, it should take you only a few minutes to implement. Continue Reading →
User List layout tricks
The User List extension has some built in features to put div tags around the various fields. You can use CSS to manipulate the layout of these elements as needed. Continue Reading →
WP-Members 2.9.1 Release
It was only two short weeks ago that 2.9.0 was put into production. As some of you know, I do live in fear of releasing updates. Even though I test and evaluate prior to a release, there is always something that comes up after the fact. With the significant rebuild of the form building function in 2.9.0, I was especially concerned about how smooth the process would be. Continue Reading →
WP-Members 2.9.0 release
WP-Members 2.9.0 is finally complete and is being released this evening. This is a significant update with some major changes to the form building functions, the way the plugin initializes, and a host of other updates.
For most people, the form building function updates should be invisible. The only place I expect some challenges is for people who utilize filters on their forms. And even then, unless your filter is complex or involves line breaks in the search/replace strings, you should not see any differences.
For those that would like to test just the form building functions, you can do so with a pluggable file. Information on this is available on the beta release announcement.
Here is a list of changes included in this update:
Major updates
- New form building functions include new hooks and a more customizable form building process.
- Form functions moved from wp-members-dialogs.php to new file forms.php.
- Sidebar login form also rebuilt in the same way the login and register forms were changed.
- Legacy (old table based) forms completely removed in 2.9.
- Updates to error and dialog messages – removed unnecessary html tags.
Changes in wp-members-core.php
- updated calling of wpmem_test_shortcode, now it works like has_shortcode, put off deprecating at this time.
- updated shortcode to include tos page, allow for new tags (wpmem_field, wpmem_logged_in) (added new shortcode calls in wp-members.php), and accept id attribute for fields. Added $tag argument, can use shortcode_atts_{$shortcode} filter.
- moved wpmem_test_shortcode to utilities.php.
- added new action hooks: wpmem_pwd_change and wpmem_pwd_reset.
- added new filter hook: wpmem_regchk.
Changes in wp-members.php
- a pretty major overhaul of this file. Moved all but four declarations that weren’t already in functions into the init function. Only two constants are declared before the function. This initialization comes after the theme is setup, so pre-initilization needs, such as loading pluggable functions can be declared in the theme’s functions.php file. Pluggable functions do not need to be loaded only from the wp-members-pluggable.php file.
- The file name of the wp-members-pluggable.php file is loaded in a filter hook – wpmem_plugins_file, so you could call it something else or load it from another location.
- New action hooks: wpmem_pre_init, wpmem_after_init, wpmem_pre_admin_init, wpmem_after_admin_init.
- New filter hook: wpmem_settings.
Miscellaneous Changes
- Updates to the html for some of the admin to better fit the new WP admin layout. Old html was compatible, but the new works better.
- Updates to the options tab to better group options.
- Updates to native (wp-login.php) registration to include require field indication.
- Review of output, localized a few missed strings.
- Implementation of changes in localization of field names. English values are now stored in the db (except for custom fields – that would be whatever language the user creates the field as). Fields are then translated when displayed, rather than stored as translated strings.
- Updated user profile to fix some issues with checkbox and required fields – users.php.
- Updated user export to include wp_users table fields user_url, user_nicename, and display_name fields.
- Code cleanup in wpmem_block function.
- Updated autoexcerpt function.
- New filter hooks for post editor meta box titles: wpmem_admin_post_meta_title, wpmem_admin_page_meta_title.
- Some updates to existing stylesheets.
- Added new stylesheets, including two with non-floated elements. Generic, non-floated stylesheet new default for fresh installs.
You can get the new release here.