Custom WordPress Registration Pages (v 0.1.7)

Registrations have been disabledRegistrations have been disabledRegistrations have been disabledRegistrations have been disabled

Key Links:

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 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: . 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:

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:

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.

Comments

  1. Miguel Netto says:

    Hi Mike,

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

  2. Dave 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. Fred 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 Vitan 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.

    • mikevanwinkle says:

      @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. Ashley Cooper says:

    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 Vitan 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. Zephyr 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. Zephyr 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. DrLightman 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 Dawson 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. sammy says:

    pretty nice plugin

  16. Simon says:

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

    Great plugin!
    Simon

  17. Simon 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.

      • Simon 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. David 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. Andy 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

    • mikevanwinkle says:

      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. Manuel 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…

    • mikevanwinkle says:

      The php code is <?php sreg_basic($atts); ?> where the $atts is an array of variables conforming to the parameters available in the short code … i.e. "role","from", "message","notify". Will add more documentation in the next version.

  22. Manuel says:

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

  23. Dan Åkerlund says:

    Hi,
    I think this plugin is great, but …
    1: I use multisite installation for four schools. I have installed the plugin globally and I then activated it on one /test site. The problem is that all new users turns up in the root site, not in the /test site … any suggestions?
    2: When you put this call to [Register] on a page, the form always comes on the top of the page. That makes it difficult to add instructions e.g. if you have, as you suggested, different forms for teachers, students and parents. (I have tried to put it in a table – but it doesn’t work …) … any suggestions?
    Regards
    /dan

    • mikevanwinkle says:

      Hi Dan, multi site support will be coming in the next version. The Reason the form shows at the top is probably due to the default style sheet. Try overriding and see what happens.

      • mikevanwinkle says:

        Nevermind, just checked and you're right for some reason the plugin isn't contextually inserting the short code. Will look into it. Thanks for the heads up.

        Mike

  24. mikevanwinkle says:

    Dan, the Beta version posted above fixes both these issues.

  25. mikevanwinkle says:

    Bill, actually, I had RECAPTCHA included in my first version of this plugin. But I removed it in favor of the randomly generated password for security. Eventually I'll be adding user "activation". I didn't want to get bogged down in supporting ReCaptcha issues. Version 0.2 of the will include hooks that allow developers to add fields and captchas to their hearts desire. Stay tuned. Hopefully 0.1.5 will be posted this week and 0.2.0 will be done by late October.

  26. mobile2 says:

    The version above posted as beta shows 0.1.2 version still..

  27. mobile2 says:

    Also getting this error when submitting the registration form:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /var/www/m/htdocs/wp-includes/formatting.php on line 2772

  28. Kirk Ward says:

    Hi,

    I have installed the plugin in a single site environment under WP 3.0.1 and it works as needed with one exception. I need a notify email sent when a new user registers. When tested, the plugin does not seem to be notifying me. I believe I have the shortcode formatted as shown on the plugin configuration page.

    Any suggestions?

    • mikevanwinkle says:

      Kirk, there was a big when using two address in the notify parameter. i've updated the plugin. Let me know if you're still haveing trouble.

  29. Rene says:

    Hello thanks for that easy good working and nice plugin.
    I am actually looking for exactly the same as a Login / Register Plugin,
    So I will be able to have different pages for each function.

    Its it complicated to use the basic custom wp registration page plugin,
    and tweak this also for Login and Register?

    Cheers + best to all, /Rene

  30. Adam R says:

    I've installed the plugin from the wordpress.org site. It says version 0.1.5
    I put the code [register] into a page and the form appears just fine.
    Completing the form and submitting it is resulting in a 500 error page BUT
    the registration is being completed, emails sent out, and the user created in the database.

    I'm not sure how to diagnose this. In the form (viewing source code for page) the action=""

    Does anyone have any thoughts?

    Thanks

    • Adam R says:

      More info: Seems to be a conflict of some sort with Mingle forum. I installed the plugin on a clean WP 3.01 install and it works fine. After installing Mingle Forum as the only other plugin, I can duplicate the message:
      ________
      Internal Server Error
      The server encountered an internal error or misconfiguration and was unable to complete your request.

      Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

      More information about this error may be available in the server error log.
      ___________

      That's all I know for now.

    • mikevanwinkle says:

      Adam, can you send me a link to your page? I'm happy to take a look.

  31. Ibby says:

    Heyya,

    can anyone help me with this.

    I’m trying to create another field in the form for password. I noticed in your code you had $random_password = wp_generated(12, false). I tried to change that to the data value of the input box for the password field, and made sure the variable is in the user data array. However, the email is still sending me a random password instead of what I type in the box. Any ideas?

  32. Quick Facts says:

    Maybe you should make changes to the page name title

    Custom WordPress Registration Pages (v 0.1.5) | Mike Van Winkle to something more better for your webpage you create. I liked the post yet.

  33. Nicole says:

    Hi

    How can I use custom regsitration fields with your plugin e.g. Cimy User Extra Fields, Regsiter Plus, etc.

    Thanks

  34. Anurag says:

    Really great post

  35. Rick says:

    Great plugin! It’s working for me, but after a user successfully fills out the form and submits, the error “No recipient addresses found in header” appears above the “registration successful” message.

    Everything works: the user is created and emails with passwords go out, but the error remains.

    Thanks for the plugin! It made creating that page so easy!

    - using version 0.1.5 of plugin on WP 3.0.3

  36. sj says:

    doesnt work with wp 3.0.3

  37. Navin Poeran says:

    Hi there Mike,

    I’ve been fighting this forever, and I’m really hoping you can help me out with this.

    I’m currently developing a website, where a user can register as a candidate, or as a boss.

    The user should have the option to select what he wants to register as and it should update the role.

    See this screenshot:
    http://twitpic.com/32vad3

    i’ve tried doing this with your plugin, but it’s not working :(

    Can you help me on this one?

  38. Peter says:

    Hi, so far i really like the plugin. And I like that you comment the php file, hate when people don’t do that. anyways, i have a problem, I would like the option to save some of the extra fields I add, in my own tables in the database. I’ve done .asp, .jsp, and know my way around databases, but i havent used php much. i have allready created the table i need to insert to. I only see one sql statement in the php file, and that is to the “user-table”? is it possible in php, and at this stage to get the values of my custom fields, and do another insert query into my own database tables? so the user does not have to create a user, then do my fields afterwords. (need this info in my own table’s, because i need to be able to export my tables to .xls in a decent manner.

  39. Mike says:

    I have the code in place and everything looks to be working but when a user registers they never receive an e-mail with password nor do I revive my “new user registered” e-mail.

    What is causing this?

  40. Joshua says:

    Hey, awesome plugin. I was trying to alter it to create a duplicate email field that would be checked to make sure the emails match. Here’s what I did, I added:

    if($data['email'] != $data['email2']) { $errors = “Your emails do not match”; }

    To the errors function. Then I added:

    $email2 = $_POST['email2'];

    In the assigning post variables portion. I also duplicated the form entry for the email, bust changed the data to email2. However, it seems to be giving me the error everytime, even with matching emails. Did I mess something up? My php is a little rusty.

    Thanks!

    • @joshua, you don’t need to add anything to the post variables portion … after all, the second email field is only there for validation and does not need to be added to the database. So your problem must be in the validation portion. My question is how did you add the additional email field into the form? Did you alter the plugin directly? or use the action hook. Assuming that you are properly sending the data for $_POST['email2'] upon form submission, your code should work. Though, you’ll want to use:

      $errors .= "Your emails do not match.";

      The . concatenates previous errors and the email error instead of reassigning it.

      I’m working on a new version that should be available in a couple days. I’m adding the email confirmation to it. Thanks for the idea!

  41. Joshua says:

    Mike,

    Great! Yea, I’ve just been altering the plugin directly. I’ll wait for the new version for the email confirmation.

    Any thoughts on adding CAPTCHA to the form? I’ve been using the WP-reCAPTCHA plugin for my wordpress log-in page, but it would be nice to add it to this form as well. So far I haven’t had any luck.

    Thanks!
    Joshua

    • Yeah, enough people have asked about this that it’s probably worth adding. At the very least I’ll do a tutorial on how to add it yourself. It’s one of those things where, I understand the appeal, but I am not big on CAPTCHA. I’d rather do an account “activation” process which I think is more secure and more user-friendly. I wish someone had some numbers on CAPTCHA. I’m always suspicious that people struggle to fill them out and sometimes will abandon the registration process because of it.

  42. Joshua says:

    Mike,

    Definitely a reasonable argument. The only reason I’m interested in it is to avoid getting an overflow of spam accounts – even if they go unverified. Perhaps this is a minor risk that I can deal with.

    I look forward to the new version, thanks for all the help!

    Joshua

  43. Amanda says:

    Hi I just installed the 0.1.7 version and i dont see where you can add user set password in the registration form. Am i just missing it or is that functionality not available yet?

    • Hi Amanda, you can add it by adding password="yes" to the shortcode or by clicking the registration icon on the tinyMCE editor on the page on which you would like to insert the registration form.

  44. Emery says:

    The registration icon on the tinyMCE editor popsup but is blank. I am using firefox 3.6.13 and wordpress 3.0.5. Any ideas?

  45. Emery says:

    Error 500 when using WordPress HTTPS solution. Even though it is not enabled for the registration page, there is a conflict with that pluggin. Can you take a look?

  46. Masrule says:

    Hi Mike,

    Thanks for your great plugin. How I can put the registration form from other website?

    I have a landing page that doing well in search engine. This landing page are from other website. I want to put the registration form at this landing page.

    • I’m not sure I understand your problem masrule? Is the other site a wordpress site? can’t you just install the plugin on that site … or are you saying you want registration from one site added to the database of another. I’m not sure this a good idea from a security point of view. I’m sure it could be done with javascript some how, but I’m not a JS expert.

  47. Dana says:

    Hi Mike,

    Thanks for making this plugin, it’s awesome. I just had one question. I would love to let admin/editors add other users using this form. But when I click on it when logged in it says I am already registered, is there a way to make that happen?

    Thanks!

    Dana

  48. Mauricio says:

    Hi Mike,

    Thanks for your reply. I was wondering if the confirmation message feature is already working in the last version. I’ve set up the fields for registration form settings but seems is not working… All I get is the message from the php file that I modified.
    Did I wrong?

  49. Thomas says:

    Hello Mike,

    Thank you for an awesome plug-in installed very easy it is up and working great. I am having a problem when the auto responder sends the confirmation e-mail and it informs them to change there password. I am getting a message saying that the user does not have that permission. Can you point me in the direction on how to give subcribers and contributors those permissions. Also how may I change the default e-mail message.

    Thank you in advance for any advice you have.

    Thomas

    New Yawk

  50. Dmitriy says:

    Hi Mike,

    I like your script, it’s very easy and convinient. But one thing i’d glad to see is captcha. Please can you tell me how i can add it? I really need it.
    Thanks.

Trackbacks

  1. [...] time and skill to apply what I share, you will be able to paint your kitchen cabinets like a pro.Mike van Winkle The Traditional Painter site is built around WordPress blogging software. If you want a web [...]

Speak Your Mind

*

Notify me of followup comments via e-mail. You can also subscribe without commenting.