ButlerBlog

chad butler's weblog

  • About
  • Blog
  • WordPress Plugins
  • Contact
Home / Web / WordPress / WP-Members / WP-Members 2.6.3 incremental code improvement release

WP-Members 2.6.3 incremental code improvement release

By Chad Butler 21 Comments

Tonight I released WP-Members version 2.6.3.  This is an incremental code improvement release.

The primary minor code improvements:

  • reCAPTCHA noscript
  • fixed stripslashes for front end error messages
  • localization for “Clear Form” and “Submit” translation
  • removed unused globals from the registration forms

There are two larger pieces in this release.  The first is pagination for the bulk user management page.  When displaying all users, the group of users will paginate into 10 users listed per page.  When displaying all users not activated or exported, all users matching the criteria will be displayed.

The second larger feature is a little more complicated and won’t apply to everyone.  I’ve had a lot of requests for dropdown support (the form <select> tag).  At this point, a dropdown must be added programmatically (at install – see this post for instructions on how to do this).  An example of the needed array parameters is included in the install file.  Essentially, you need to add the following to include a dropdown select list:

  • Order to display
  • The label that will display next to the dropdown
  • The option name that this will be stored in the database as (no spaces)
  • The field type (in this case “select”)
  • Display parameter (generally, this will be “y”)
  • Required parameter (“y” for yes, “n” for no)
  • Native parameter (this will always be “n”)
  • An array of the dropdown values

The array of dropdown values will be the value displayed to the user, a pipe separator (“|”), and the value that will be stored in the database. This is as follows:

  • “Choice One|choice1” would display “Choice One” to the user and if selected, put “choice1” in the database.
  • “<–select–>|” would display “<–select–>” to the user and leave a blank value.
  • “|” would display a blank line (useful for separating into groups).

Putting it altogether, this is an example of the array that need to be added to include a dropdown:

array( 19, 'dropdown select', 'dropdown_select', 'select', 'y', 'n', 'n',
	array( '<---- Select One ---->|', 'Choice One|choice1', 'Choice Two|choice_two', '|', 'Example After Spacer|after_spacer' )
)

If all of that seems too complicated, just be patient.  The next release will include the admin side of this feature so you can just add dropdowns via the admin panel.

Enjoyed this article?

Don't miss a single post. Subscribe to our RSS feed!

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print
  • More
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Pinterest (Opens in new window) Pinterest

Filed Under: WP-Members Tagged With: plugins, WP-Members

About Chad Butler

Chad Butler is a freelance writer and web developer. He has developed several popular WordPress plugins and has written for forbes.com, sfomag.com, and investopedia.com. He also runs a small organic farm in east Georgia.

Join Us!

I will never share your information. No spam. No junk. No kidding. Unsubscribe anytime.

Recent Posts:

  • The High Price of Free Plugins
  • YouTube Success: Key Tips for Enhancing Video Optimization and Visibility
  • Mobile App vs. Mobile Website Ideal Choice for your Business
  • Top Strategies to Boost Your Brand’s Visibility and Impact
  • Advanced Blogging Strategies: Using Analytics, A/B Testing, and Conversion Optimization Techniques to Grow Your Audience
  • Unlock Real-Time Process Insights to Save Time and Money
  • How Writers Can Attract More Audience Attention
  • Dress for Success – Even at Home
  • Mastering the Art of Crafting SMART Marketing Goals
  • Rediscover Your Brand Story: 7 Tips for Refreshing Your Company Identity

Archives

  • About
  • Blog
  • Archive
  • Contact

Site powered by WordPress, running on the Genesis Framework from StudioPress.

Unless otherwise noted, content on this site is © 2006-2025 ButlerBlog and may not be reproduced without express written permission from the author.

Some content may include affiliate links for which this site receives a small commission.