ButlerBlog

chad butler's weblog

  • About
  • Blog
  • WordPress Plugins
  • Contact

Protecting Pages

By Chad Butler

When WP-Members was first offered, the primary use of the plugin was to protect content in posts.  WordPress itself was primarily used as a blogging platform where most content was actually in posts as well.  With the continued development of the WP platform and the widespread use of it as a lightweight CMS, that has evolved to situations where users are using it more as a CMS and managing pages more than posts.  (If you don’t really understand the difference, there is an overview at WordPress.com.)

WP-Members has provided blocking for both posts and pages since the very early versions.  But it seems lately I have been receiving a lot of support questions regarding the blocking of pages.

The default installation for the plugin is to use post excerpts above the ‘more’ tag if the user is not logged in.  This is true of both posts and pages.  You can turn this feature off in the plugin’s settings by unchecking “show excerpts.”  Turning this off will not effect the use of the ‘more’ tag for post summary pages.  It only serves to turn off excerpts on the actual post or page if the user is not logged in.  If the user is not logged in, they will be provided with a message indicating that the content is restricted, the login form, and the registration form.  If excerpts are turned on, then all content before the ‘more’ tag will be presented before this.

Some important things to consider:

  • First, if excerpts are turned on (“show excerpts” in the plugin admin panel), you MUST use the ‘more’ tag on any protected pages.  If you don’t, all of your page content will be visible before the login form. If you don’t want your pages to function this way, you need to turn off “show excerpts.”
  • If you use the ‘more’ tag on a page, you cannot have any use of the word “more” in the excerpt.  If you use the “more” in your excerpt, the parser will truncate your excerpt there rather than at the actual ‘more’ tag.
  • You cannot have any shortcodes in the excerpt.  I am working on this for future upgrades, but at this point, if you use a shortcode in the excerpt (including WP-Members own new shortcodes), they will not be parsed and executed.

The default install for the plugin is to not block pages by default.  If you leave this setting, you can block any individual page by using a custom field “block” and setting the value to “true”.  Important: this is case sensitive!  Do not put this in as “Block” or it will not work.

If you have changed the default setting to block pages by default, you can unblock pages by using a custom field of “unblock” with a value of “true”.  (Note: also case sensitive.)

If you are using either of the above two custom fields and you have left the plugin’s setting to show excerpts, you MUST use the ‘more’ tag on the blocked pages.  If you don’t want to do that, turn off the show excerpts setting.

Troubleshooting

If you have just installed the plugin and find that your protected pages are showing content before the login that should not be there, check to see if you have the default setting of “show excerpts” in the plugin’s admin panel.  If you do, you either need to turn this off, or use a ‘more’ tag where you want the excerpt.

If you are using a custom field to block or unblock a page and you are not getting the expected behavior, double check that you have not inadvertently capitalized the custom field (i.e. “Block” or “Unblock”).  If you have, you are going to need to remove this from the database manually.

  • 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, WordPress, WP-Members

WP-Members new feature release update

By Chad Butler 15 Comments

1.1.11 Update: WP-Members 2.4.0 beta release 4 has been released and is available here. Be sure to read the release notes before using. Also – there is a .pot file for translators.  If you are working on a translation, be sure to let me know.

Well, I think I have reached a point where I am going to close the development version of WP-Members to new features for this cycle.  I’ve got a few things that I am still working on that I will put off to a future upgrade – they’re not that big a deal for now.  In the meantime, I think we’ve got a pretty good release package that I need to start testing.  Also, I need to get it out to the potential translators as we will be adding localization this time around.

I haven’t made a final decision, but I think this release will be 3.0.  There are enough changes this time around to launch us to a completely new version (at least, I think so).  This version will support a series of add-on modules that I am working on, the first of which is a time based trial/subscription cycle.  Also, this version will be easier to customize once complete.  There are some kinks to work out on that end yet, but once that’s worked out, you’ll be able to manage a customization file rather than hacking the plugin.  This should make upgrading easier for those that work in customizations.  I know there are quite a few developers that use this for clients and thus put in little customizations here and there (mostly with display/look-and-feel).  This should make your life easier and encourage upgrading to the latest version.

I know I’ve mentioned some of the other features for this release before, but it doesn’t hurt to repeat in case I missed something.  The new version includes:

  • reCAPTCHA for initial registration
  • Agree to Terms of Service (TOS) field (This will have it’s own link of a popup of the TOS text you define. Also, I’ve added it in such a way that if you already have users, if you add the TOS to the registration, any existing users will need to agree to the TOS before updating their registration info.  Currently, this does not include an option to force existing users to agree before logging in again, just before updating their registration info.)
  • Shortcode to create the “Members Area” and “Registration” pages.  (This will still support the legacy <!–members-area–> and <!–reg-area–> as well, but I may eventually deprecate those.  Development of the shortcode will progress in new versions to give greater flexibility with these pages.)
  • Contextual help in the admin pages – any admin pages that have settings or features for WP-Members will now have contextual help in the WP admin help pull-down (that nifty little pull-down at the upper right of the WP admin, for those of you who haven’t noticed it before).
  • Custom user management under the “Users” menu in the admin – this allows for the bulk management of users as well as the addition of a user export feature (exports any selected users as a CSV file).
  • The email process now includes a backlink to the page the user registered on (as well as the original link to the site).  This should be helpful for those that use moderated registration so the user can find their way back to the content that got them to register in the first place.
  • The IP of the user is now captured at registration.  Some plugin users have requested this as they keep a “ban” list.  It may also help in the future for user data management.
  • Improvement of the activation process for moderated registrations has been added to avoid the admin from activating themselves and thus resetting their password and locking them out.  I have to admit no one asked for this feature so I must be the only one that has accidentally done this 😉 (or at least I’m the only one admitting to it)
  • Added a code toggle in the install file to force a clean install of all settings.  While you should use caution when doing this, it should make custom installs a bit easier.
  • Improved the uninstall process to make sure we clean up all options.
  • Added the stripslashes bug fix
  • Fixed the sidebar bug from 2.3.x
  • Changed the registration process to not add usermeta for unused custom fields (although WP does do this with its own fields).

All of this in the 2.4.0 beta release 4 which will be uploaded sometime tonight.  It will be available for public use on 1.1.11 (I wanted to work that date in somewhere) by going to http://wordpress.org/extend/plugins/wp-members/download/ and selecting 2.4.0. Double check the main file header or the plugin admin page to make sure you have public beta version 4.

While I only try to release stable versions into the wild, remember this is beta software.  If you use it in a production environment, you do so at your own peril.  I will have a notes.txt file included that will outline the use of any new features.  While priority support is for translators and financial supporters of the plugin, if you notice a bug please let me know.

  • 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, WordPress, WP-Members

Update on WP-Members New Feature Release

By Chad Butler 3 Comments

I have been working feverishly on some new features for the WP-Members plugin.  (Read my initial announcement.)

I am getting close to having a true release candidate ready, but will probably allow for some additional beta testing.  This release is going to (HOPEFULLY) be a launchpad for a verion 3.0 release which will take the plugin to the next level.  But until then, here are some of the new features that are completed and will included in the upcoming feature release:

New Features:

  • reCAPTCHA option for registration
  • Shortcode for members area and register pages
  • Contextual help in WP admin panels
  • Custom admin panel for bulk user management: user export, activation, etc.

Code Improvement:

  • Cleaned email process to include link back to the page a user registered on
  • Capture user’s IP at registration

Bug Fixes:

  • added stripslashes to dialogs
  • Fixed sidebar bug
  • changed registration, update, and admin update to not write unused custom fields to the DB (WP actually does do this with its own fields)

I have also safemdonline.com completed the framework for an add-on module that will allow for time-based user expiration (both trials and subscription periods).  The support framework will be included in the new release so that the add-on can be plugged in later.  I have not decided if this will be released as a premium add-on or not… Honestly, I am leading towards making it a premium product.  If I do go that direction, I will make allowances for those that have financially supported this project to receive this free of charge.

Other things in the pipeline include adding an agree to Terms of Service checkbox option for the registration, easier field customization, ability to tag notes to user data, and a few other things.  As always, feel free to make suggestions.  Most of the current list of upgrades was the result of suggestions from users.  You never know, your suggestion may make it in to the next release.

  • 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, WordPress, WP-Members

  • « Previous Page
  • 1
  • …
  • 23
  • 24
  • 25
  • 26
  • 27
  • …
  • 51
  • Next Page »

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.