May 142020
 

How Visitors Register Using SMP tutorial shows you how visitors register using Simple membership plugin and more.

Last Updated: May 22, 2020

Latest News: Updated the documentation.

How Visitors Register Using SMP

Simple membership plugin works with WP Users. Each time a new member is added to your site they will also have a corresponding WP User account created. Which means that when they log into your sites members area, they will also get logged in as a WP user automatically.

So if they are logged in as a member and they post a comment, that comment is also posted as a WP User (because they are also logged into their WP user account).

To learn more about the expected behavior of the plugin read the following note. (Added by The Assurer in  the forum.)

This is the expected behavior.

  • The Membership Level “Role” designations only serve to populate the initial WP User table entries, whenever a new Member profile is first created.
  • The scope of operation for SWPM is “content access.”
  • The scope of operation for WordPress User Roles is “to give the site owner the ability to control what users can and cannot do within the site.”
    https://codex.wordpress.org/Roles_and_Capabilities
  • Role escalation & de-escalation is beyond the scope of operation for SWPM.

Note: If someone signs up as a WP User they will not be added to your members area unless you enable the following feature Enable Auto Create Member Accounts. This is located under Advanced Settings. Alternative, you can use the following addon simple-membership-wp-user-import.

====================================

Step 1 ) The following image shows you the registration form visitors need to fill out to become a member of your site. These are the default fields available in the plugin when you install and activate Simple Membership plugin in your site. The order of these fields cannot be changed and you cannot add more fields. Only the Form Builder addon allows you to manage the order of the fields and also add extra fields to your registration form. Check the following documentation wp-simple-membership-form-builder-plugin to learn more.

SMP Default Registration Fields:

  • Username = This is a required field
  • Email = This is a required field
  • Password = This is a required field
  • Repeat Password = This is a required field
  • First Name
  • Last Name
  • Membership Level

wordpress-simple-membership-registration-form

Step 2 ) The following image shows you the error messages displayed if the following fields Username and Email are not completed.

These error message strings can be edited using Poedit or Loco Translate plugin.

wordpress-simple-membership-registration-form-field-error-messages

Step 2-a ) The following image shows you the error message displayed if the following field Password is not completed.

Note: If the Repeat Password field is not completed the error message will be Password mismatch. These error message strings can be edited using Poedit or Loco Translate plugin.

wordpress-simple-membership-registration-form-password-fields-error-message

Note: Remember, if you want extra fields and also manage the order of the fields you need to purchase the form builder addon.

Other Important Information

You might also like to check the following URL registration process overview to learn more. In this link the following part is different between free and paid membership.

(Note: You can now make the free members click on a link in order to activate the account. But you need to enable Email Activation in WP Membership -> Membership Levels -> Add Level)

Interesting Tutorials

FAQ

Q1 When someone registers they need to fill in the form but if they use a username that already exist they get an error message. I want to avoid this check using mobile devices. How can I achieve this? 

Answer: Usernames have to be unique per site. So this check has to be there for our plugin. Otherwise it won’t work. You can check the following link forum post.

=============================

That is how simple it is for visitors to register in your site using Simple Membership plugin.

If you have any questions please let me know. I will be updating this tutorial from time to time.

Enjoy.

Simple Membership Plugin Tutorial List:

I have been working in IT since 1999 and I enjoy the challenges it brings me. I love developing websites with WordPress. I spend a lot of time helping out in wordpress.org forums. I have been writing tutorials since 2011. Now I am learning how to manage my own VPS "Virtual Private Server.

  6 Responses to “How Visitors Register Using SMP”

  1. Hi,

    Thanks for the walk-through, it helps understand what goes on.

    Something I can’t quite figure out: I see that when someone registers, it creates an entry in “WP Membership > Members” (referring to the WordPress admin menu here), and it seems to also create one under “Users > All users”.

    However, there are users that exist in “WP Membership > Members” and for whom I can’t find a corresponding entry in “Users > All users”.

    Can you explain why that would be the case? Are the users doing something differently? If so, what?

    (Perhaps relevant: I don’t use the “Force WP User Synchronization”, as I’m not quite sure what it does, and I had a weird event once where my admin user account was overridden with another user’s email address, which was quite scary)

    Thanks in advance for your help!
    Pierre

    • Hi Pierre, how are you?

      Did you add these members manually? Or are these members that their account expired? Or did you delete the WP Users accounts for these members?

      Regards

      • Doing good thanks, hope you’re well, too!

        I have done none of the above, I think. I use accounts that don’t expire (free membership) and the only accounts that were deleted were deleted through the admin screen, although I don’t know if that’s what you’d call manual?

        • Hi Pierre,

          Lets carry out a test. Add a new member to your site manually and one via the registration form. Make sure they are different members. Check to see if it has also created a corresponding WP User account? Let me know how you go.

          Thank you

          • Sorry for the slow response, I needed a window to carry out the test carefully.

            – When I add the user manually (here I assume you mean via the “add member” tab in the WP Membership admin panel), a user account appears in the Users panel as well.
            – When I add the user via the Simple Membership form that is publicly accessible on the site, there is also a user account that appears in the Users panel (and in the WP Membership panel, for that matter).

            In other words, both action seem to have identical results.

            I have conducted yet another test, which is to register via the WordPress default login screen (wp-login.php?action=register). Though it’s not linked to anywhere on the site, it’s still a valid path for registration. Here again, accounts are correctly created in both lists.

            IMO, this suggests inconsistent behavior from the plugin, depending on some unknown parameter. This would be consistent with what I see when I look at the accounts, and with the test we just ran.

            Do you know how the plugin runs? Does it insert a user in Simple Membership and then in Users? If so, is it possible that the second insertion fails, and not the first one?

          • The first test is correct. That is how the plugin works. The second test, do you have the following feature Enable Auto Create Member Accounts enabled under Advanced Settings tab? If you do, then that explains why the account created via WordPress registration is also added Members in SMP.

            Thank you

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Reject
Privacy Policy