Custom WordPress Registration Pages (v 0.1.2)

Updated 7-19-2010: I’ve released a new version of the Custom Registration Forms plugin and added this page accordingly.

Simplr Registration Form Plugin

Installation Instructions:

Download and unzip the package. Upload the simplr_reg_page folder into your wp-content/plugins directory. Go to your plugins dashboard and click “Activate”.

Usage Instructions:

To use this plugin simply employ the shortcode [Register] on any WordPress post or page. The default role is “subscriber”. To apply another role to the registration simply use the the role parameter, for instance: [Register role="editor"]. If you have created custom roles you may use them as well.

You can also use shortcode so specify a custom confirmation message for each form:

[Register role="teacher" message="Thank you for registering for my site. If you would like to encourage your students to register, please direct them to http://www.domain.com/students"]

Finally, you can specify emails to be notified when a new user is registered. By default site admins will receive notice but to notify others simply use the notify parameter:

[Register role="teacher" message="Thank you for registering for my site. If you would like to encourage your students to register, please direct them to http://www.domain.com/students" notify="email1@email.com,email2@email.com"]

Plugin Options:

Please feel free to suggest future options for this plugin in the comments. The current options are:

  • Admin Email: Specify the FROM email you would like to use for the registration confirmation message.
  • Confirmation Message: Customize the message you would like to appear in the confimation email.
  • Style: Overrides the default stylesheet included with the plugin.

About Mike Van Winkle

Have an old computer that needs upgrading? Have a small business that needs a web site? Need help getting your wedding pictures online? Don't know where to start? What you need is honest advice and support. I offer free estimates, affordable on and off site support and a promise that if I can't help you, I'll help you find someone who can.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

32 Responses to Custom WordPress Registration Pages (v 0.1.2)

  1. Miguel NettoNo Gravatar says:

    Hi Mike,

    \\how to call this registration page or where to put to rum. Sorry, I dont understand. :)

  2. DaveNo Gravatar says:

    How to implement?

    Can you supply some more information please?

  3. Sorry guys, I was assuming the reader of this post would have a basic knowledge of PHP and HTML forms. I’ll revise to make it a more complete tutorial.

  4. We hope! :)

    Unfortunatly you don’t have a check for subscription to this post :( … I hope to remeber to come here sometimes…

  5. FredNo Gravatar says:

    Not sure I understand the use. Register, for what? A WordPress site or, say, an event. Thank you, and congratulations on your plug-in.

  6. Donna VitanNo Gravatar says:

    Awesome, simple and clean plugin for creating a custom WordPress registration page.

    Is there a code I can include in a template page instead of adding the shortcode in a page? I have the shortcode at the bottom of the content but it shows up above the content – not the way I want it.

    Thanks again for the plugin. Any help would be greatly appreciated.

    • @donna, the function that actually creates the form is sreg_basic($role). So you should just echo it wherever you need to show the form. For example:
      <?php echo sreg_basic('editor'); ?>

  7. This seems like an awesome plugin but its not working for me. Will this work with WP 2.9.2?
    I have spent some time looking over every thing and all seems to be good. Plugin is uploaded to correct place, it has been activated and I am putting the [register] short code into the posts under the html tab but nothing is showing up.

    Any one else have problems or know what I am doing wrong?

    Thanks.

  8. Donna VitanNo Gravatar says:

    I love the simplicity of this plugin. There are only 3 options in the settings page (1) FROM address for notification email, (2) Confirmation Message and (3) Stylesheet Override – which is fine.

    Wish list (perhaps?)
    Ability to edit the notification email as another option in the settings page. I was able to change this manually by editing the "simplr_reg_page.php" file.

    Problem:
    Even though I set a different email for the "FROM address for notification email", it doesn't seem to change it in the notification emails. I still get emails from "WordPress <wordpress@my-domain.com>"

    Otherwise, it's a sweet, compact plugin for what I needed it to do. Works well if you don't need any further customization. Thanks.

  9. ZephyrNo Gravatar says:

    Hi Mike,
    I have been trying out your plugin. Thank you very much for writing it.
    I am however, having problems getting the ' Register role="ROLE"] ' short code to work. I substituted ROLE with Editor (tried it in all capitals as well) which is a default role but it doesn't work. I get a message saying 'You do not have sufficient permissions to access this page.' When I go and view the role of the newly registered user in WP admin control panel, I see that the role for the user has not been defined. The {Register] short code works fine and registers the user with the role of a Subscriber.
    Many thanks again for your time and effort,
    Zephyr

  10. thanks!! really great

  11. ZephyrNo Gravatar says:

    Hi Mike,
    I discovered the error of my ways. I was omitting the double quotes which are necessary to handle white space in [Register role="subscriber"]. So to be clear "[Register role="subscriber"]" with the double quotes outside the square brackets works fine when inserted in a page. Donna, thank you for your help.
    This is a really great plugin, Mike. Thanks very much!
    Best regards,
    Zephyr

  12. DrLightmanNo Gravatar says:

    This plugin is ingenious, long awaited indeed.

    The only thing I don't like is the "Stylesheet Override", it puts the html tag within the body tag instead of in head, it works but it's not the preferred way. You should hook with something like:

    add_action('wp_head', 'sreg_head');

    and sreg_head being:

    function sreg_head() {
    echo sreg_styles()."n";
    }

  13. Gary DawsonNo Gravatar says:

    I got it working perfectly on Friday and it worked GREAT in all browsers. Unfortunately, when I updated several WordPress plugins on Monday it stopped displaying properly. Now it works OK in IE v8, shows nothing but a blank screen in Firefox 3.6.3 and has messed up CSS in other browsers like Safari and Opera. Can you help me figure out what happened to fix this problem?

  14. Hey guys, thanks for all the bug reports. I'm going to release a new version next week that will hopefully address most of these concerns as well as add a few more features!

  15. sammyNo Gravatar says:

    pretty nice plugin

  16. SimonNo Gravatar says:

    very nice plugin! thanks for sharing!
    how about a custom field with checkbox (or radio button) (for privacy agreement)?

    Great plugin!
    Simon

  17. SimonNo Gravatar says:

    Hi mike! Could someone try to’ hack the form and register as an admin or with a different role from the one specified by the webmaster? Should it be’ possible to’ specify a “roles blacklist” to’ exclude some roles and prevent malicious registrations?

    I was just thinking about that… I don’t even know if wp or your plugin already prevent that…

    Congrats and keep on developing!!

    • Hi Simon, great question! I have explicitly written the code to not allow "administrator" as a valid role so this could never happen. Even if an admin user tried to put this into the "role" parameter of the shortcode, the function will not work. You should never try and use this plugin to register admin users. Instead, register for a lesser role and then upgrade the user.

      • SimonNo Gravatar says:

        Hi Mike! thanks for your reply!
        In fact i chose your plugin just because i could regisster as a customized role. But i was a bit worried about possible hacks. Your reply was the right one i'd like to hear :D

        Simon

  18. DavidNo Gravatar says:

    Hi there. A little weird this one … The form appears in the body correctly but a second copy is being added inside the head tags by the wp_head() command! Any ideas?

  19. I want people to be able to signup for sites via the registration form. So far i cant find any plugins that allow for site registration. most only allow user registration.

  20. AndyNo Gravatar says:

    hi, great concept and it seems to be working for everyone else! not sure where i am going wrong. I want to do a public registration form and a trade form, which seems to be the model for using the plugin.

    Plugin installed OK.
    Use subscriber role as default for the Public registration form. I created custom user role tradesubscriber

    Completed the fields: default From me email address, and a confirmation message relevant for the public

    Saved

    I created a page and used shortcode [Register]. Published it, the form displays OK on page. Did same for tradesubscriber role. Displays fine on page

    Submitted it. Now it gets peculiar!

    A – It sends an email to the person who registers saying, change password asap
    Username: freddy
    Password: xyz
    Login: http://traditionalpainter.com

    but none of the fancy confirmation message I wrote up

    B – Admin gets an email as expected saying a new user has subscribed, and the new user appears as expected in the Users list with the correct role. (I get the same expected result for the tradesubscriber role / form too.)

    But i also get another message from my mail server:

    A message that you sent contained no recipient addresses, and therefore no
    delivery could be attempted.

    —— This is a copy of your message, including all the headers. ——

    To:
    Subject: New User Registered
    X-PHP-Script: traditionalpainter.com/index.php…
    Message-Id: <xyz@echo.supportedns.com>
    From: myname@echo.supportedns.com
    Date: Tue, 10 Aug 2010 05:12:53 -0400

    A new user has registered for hand-painted kitchens &amp; furniture Cheshire expert painting and decorating.
    Username: freddy
    Email: freddy@tvvv.com

    So I guess I would like to know
    a) how do I get the confirmation message to show, because it basically tells Public subscribers they do not need to login to continue using the site (in fact I dont want them to login once registered)

    b) any idea why I get the failed to deliver email as well as the email to admin confirming that it has been delivered!

    c) can the Login at URL in the confirmation email be altered to the actual login page at my site rather than the homepage.

    sorry about the length of message. cheers

    • Andy, thanks for reporting these bugs. I'll take a look. (a) It should be showing up, I'll run some tests. If you're comfortable letting me login to your system to look around email me at mike@mikevanwinkle.com. (b) Are you sure the email you entered was valid? and (c) I'll add this as an option in the next version.

      Cheers,

      Mike

  21. ManuelNo Gravatar says:

    How can I use this plugin but within the page it self, for example <?php the_code_here(); ?> rather than [Register], it's just for styling purposes and to put the code wherever I want… let me know please…

  22. ManuelNo Gravatar says:

    And also, any ideas to create the edit panel to change the password?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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=""> <strike> <strong>