WordPress user registration template and custom user profile fields

UPDATE

This tutorial, while providing a good introduction to the concept, hasn’t been updated since it was written. The code from this tutorial has been removed due to bad formatting, however the download link still works and contains all code inside functions.php and the template files.

To this end we’ve written a free plugin that let’s you add all these front-end forms through the easy use of shortcodes: Profile Builder

I’ve been playing a lot lately with the user registration template (I’ve used it as a great starting point) from Justin Tadlock’s ThemeHybrid and extended it to support custom user profiles.

Unfortunately, user management in WordPress isn’t the sharpest tool in the shed. You have a lot of functionality for the users in the backend, but if you want to do extend that functionality to the front-end you’re in for a rough time.

There are some really nice tutorials that can help you add custom user profile fields in the backend, but if you try to do it to the frontend through a custom page template you’ll find your self validating a lot of fields and there’s even a twist to the entire process that makes things interesting.

previewDownload Thematic Frontend Profile Version 1.0

Yet Another Thematic Childtheme

For the purpose of this tutorial will create a new Thematic child theme. Most of the code will go into the functions.php file and the individual template pages. If you’re new to this just use the child theme that comes with Thematic.

So let us have a look at what we’re building.

WordPress Extra Profile Fields

First of all, we want some extra profile fields in the back-end. We do this by simply adding input fields to the following two hooks: show_user_profile and edit_user_profile. We need both hooks because we want the users to be able to edit their own extra profile fields and we also want the admin to be able to edit other user’s extra profile fields.

// comming soon. The formating was really bad and we had to remove it. Until it's updated, code won't be available.

In addition to this, we also need to save our data. This is done by hooking to personal_options_update and edit_user_profile_update. Both hooks are needed for the same reason two hooks were needed when adding the extra input fields.

// comming soon. The formating was really bad and we had to remove it. Until it's updated, code won't be available.

The templates

Edit Profile Template

All right. With this out of the way, we can start working on our awesome templates. Let’s start with the Edit Profile Template. First of all, we need a form with all the input fields (both the default ones and our extra fields).

// comming soon. The formating was really bad and we had to remove it. Until it's updated, code won't be available.

Then, we need to update the user meta-data accordingly when needed. All can be summed up to the following snippet:

// comming soon. The formating was really bad and we had to remove it. Until it's updated, code won't be available.

Notice that loading the registration file found in wp-includes is an absolute must.

Here is the entire edit profile page template for your Thematic Child Theme.

// comming soon. The formating was really bad and we had to remove it. Until it's updated, code won't be available.

What more? Check out Profile Builder PRO

Profile Builder Pro brings to the table requested features like:

  • Create Extra User Fields (Heading, Input, Checkbox, Agree To Terms Checkbox, Radio Buttons, Selects, Country Selects, Timezone Selects, DatePicker, Textareas, Upload Fields, Avatar Upload )
  • Add avatar upload for users
  • Fully Customizable User-Listing (via the addons feature)

Find out more about Profile Builder Pro (Pictures and Video preview included).

User Registration Page Template

Next, let’s take a look at the Register Template. Similar to the Edit Profile Template, we need a form with all our input fields.

// comming soon. The formating was really bad and we had to remove it. Until it's updated, code won't be available.

Then, when a registration actually occurs, we need to:

  • create a user with all the default fields of meta-data;
  • separately add the extra meta-data fields;
  • mail the password to the new user.

Reduced to a bare minimum, this is how the code looks like:

// comming soon. The formating was really bad and we had to remove it. Until it's updated, code won't be available.

Notice the included error reporting features.

Another thing that we should mention is the update_usermeta function. We need to call it because wp_insert_user function doesn’t take into account extra fields.

Here is the entire registration page template for your Thematic Child Theme.

// comming soon. The formating was really bad and we had to remove it. Until it's updated, code won't be available.

User Log-In Page Template

The third and last template is the Log-In Template. Much of it was inspired by Justin Tadlock’s work and it basically consists of the form with the username and password fields and the wp_signon() function at the top that actually does all the dirty work.

// comming soon. The formating was really bad and we had to remove it. Until it's updated, code won't be available.

Conclusions

WordPress dose allow you to add any kind of fields to your user profile. It’s not very developer friendly and there’s a lot of validations that we need to do but it is possible and that’s all that matters if you ask me.

We need an UI in the core of WordPress for this, but probably we won’t have anything like this for quite a while.

The funny thing is that BuddyPress has a plugin that let’s you create extra user fields and displays them in the front end, but not in the backend. And we also have a plugin that is called Cimy User Extra Fields that creates the extra fields for the backend but it’s still more a developer’s tool and not that easy to use for the standard user. But there isn’t any real integration so that’s the bad thing.

The way this should work in an ideal word would be for us to have an UI in the backend and page templates that come with the default WordPress theme so developers can build on top of that (similar to the comments form).

Extra Struff

You can follow the tutorial to create your Extra User Fields or you can just preview / download the child theme directly and then make it fit your needs.

Credits

http://dquinn.net
http://blog.ftwr.co.uk
http://rubenwoudsma.nl
http://justintadlock.com

About Cristian Antohe

Cristian Antohe is the co-founder Cozmoslabs. He's a WordPress developer, web designer and Open Source fanatic. He's part of the team that developed Profile Builder and WordPress Creation Kit and also helps curate wpMail.me.

Find me on: Google + | Twitter

144 thoughts on “WordPress user registration template and custom user profile fields

  1. Thanks for this Cristian! I was wondering if you knew a way to incorporate a file uploader to the front and backend of this as well?

    • I haven’t tried this yet, but incorporating a normal upload button would do the trick. Of course you’ll need proper server-side programing for this to work but it shouldn’t be an issue. After the file gets uploaded to the server just save in the database it’s url or server path (so you can delete it if needed on the edit page) like you would save the Twitter extra information field.

      Have a look at this tutorial that let’s users upload a header image for Thematic. You can use part of that code (the uploading part) and this tutorial to get it working: http://www.cozmoslabs.com/2009/05/28/add-a-header-image-to-thematic-the-easy-way/

    • I’d say quite safe. I’ve used the same process and functions WordPress uses to register users, escaped everything that goes to the database.

      I can’t guarantee it’s 100% safe but then again what is?

  2. Can this work in any wordpress theme? I also noticed in the functions.php file, the php tag is left open, is there a reason for this?

    • This code can be adapted for any WordPress theme without a lot of work.

      Also the php tag is left open so we don’t get the “Headers Already Sent” error when we have spaces after the last ending tag. You can add it if you like. :)

  3. Hello Christian,

    Thanks for this great article. I am not the best coder in this world, and i cant find out how to implement this to my own theme. Can you help me?

  4. This article was a great help building a profile page. It took me a while to get it going on my end.

    Is there any way to echo a message after someone updated their member profile? Additional it would be great to send an email to admin and the user to inform them of the changed profile.

    Thomas

    • Sure. It should be a piece of cake.

      Just look for the line that says if(!$error){

      Then remove the following two lines, and instead of them add your wp_mail() function and perhaps set a variable that you will later echo someplace in your template.

  5. This is excellent, just what I was looking for! I would love WordPress to have these templates available by default but C’est la vie.

    This is fully compatible with WordPress 3.0, correct?

        • this works for 3.4.2. with the update_user_meta. I just added it to my custom_theme/functions.php

          adds custom field to default registration page.
          add_action(‘register_form’,’show_extra_reg_fields’);

          function show_extra_reg_fields(){

          ?>

          Location
          <input id="user_email" class="input" type="text" tabindex="20" size="25" value="” name=”location”/>

          <?php
          }

          function register_extra_fields($user_id, $password="", $meta=array()) {

          this gets the post data and saves it to an array
          $usermeta = array();
          $usermeta['location'] = $_POST['location'];

          this adds the custom field to the db
          update_user_meta($user_id, 'reason',$usermeta['reason']);
          }
          This adds your custom fields to the default user profile page.

          function my_user_contactmethods($user_contactmethods) {

          $user_contactmethods['comment'] = __('User Comment');

          // etc for each field you want to appear
          return $user_contactmethods;

          }
          add_filter( 'user_contactmethods', 'my_user_contactmethods');

  6. hello, how do I include this feature in my blog? I have another issue, would have to use shortcode pages? these codes would go where? please help me!

    • I don’t think he offers support like that, you’ll have to search for your own implementation.

      I am tinkering with the code myself now to get a front-end registration and user profile management system up and running on my site.

  7. that’s a fine work!
    it really opened my eyes about what wordpress can do in the area of community content sites. it is not trivial.

    but i have a bug, though.
    it’s in your preview also.
    I’ve tried to give flash details to check the stability of the over-all-registration function.
    when i used Hebrew letters in the user-name field (an issue that could accrue again on my website cause it’s in Hebrew :) ) i got:
    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/cozmosla/public_html/project/wp-includes/formatting.php on line 2772

    do you have a clue how to work around it?
    if i can help, tell me how…

    Cheers, Asaf.

      • yes.
        then i got a message that tells me that my username is not valid, instead of the php “fatal error” that i’ve got on the stand-alone registration form in the preview.

        asaf.

        • so, what do you say?
          what is the right way to the solution? can you make an educated guess about it? i’ll try to look for it, and if i’ll find a solution, it will be posted here, of course…

        • I think you need to open up profile.php file inside wp-admin and see where it verifies the username and use that function in the front end template.

          At this point I don’t have the time to look into it. If I’ll find out something I’ll post an update on the post.

  8. I appreciate your contributions, but as a complete programing noob I had no idea how to follow your methods – some of your notes do not even mention what file you are modifying. For instance the first step, “First of all, we want some extra profile fields in the back-end.” What file is this?

    I am desperately trying to learn. I used WP-Member plugin for a while but now I have someone asking for custom fields, alas I stumbled on your Web site. Help!

    • If you had bothered to read the actual post, it says

      For the purpose of this tutorial will create a new Thematic child theme. Most of the code will go into the functions.php file and the individual template pages. If you’re new to this just use the child theme that comes with Thematic.

  9. Hi,

    Thanks for the tutorial. I have added my own custom fields using this and have everything setup pretty much the way I wanted but is there a way to make the other fields required besides just user name and password?

    • Of course, but you have to validate them your self. In the registration area where you setup the $error variable that’s where you can validate your fields so they aren’t empty. If they are echo out to your user that they should complete them.

  10. Thank you, thank you, thank you. I’ve had the most difficult time trying to find an article that explains so well how to customize user profile fields and options. This is precisely what I’ve been looking for!

    Thanks for taking the time to write this out and share this information.

  11. Can somebody help me with a country select?
    I’m stuck here:


    'Please select a country',
    ....,'ZW' => 'Zimbabwe' );
    foreach($countries as $code => $name) {
    $selected = ($country == $code) ? 'selected="selected"' : '';
    echo '' . $name . '';
    }?>

  12. Hi, Thanks for posting this, it has been really helpful. My only problem is that text fields entered by the user are not saved when I click “Update Profile”. Radio boxes and drop downs are fine. Any idea why they wouldn’t be stored?

    Thanks.

    • Did you use the Childtheme download of the just copy pasted from the tutorial. I’m asking because you could have forgotten to add some code. The demo is working fine and the code there is in the download.

      • I am using an original theme, so I downloaded the zip file and copied it into the folder of the theme I am using. It seems to be functional except for the one issue. I am not using the code as a child theme but implementing it in the Tradoc manner. I had the same problem with his method.

  13. Thank you very much for this plugin, it’s very helpful! – I have noticed something (I’ve copy-pasted your code for edit-user) when I click on ‘Update’ this reload the page but doesn’t show anything (a page without forms…) can you review your code… maybe it’s something related with the update action but I’m not sure…

    • Actually I have fixed this, I just removed the ‘!’ from the conditional if ( !$error ) and now it reads if ( $error ), this is after the text that reads /* Redirect so the page will show updated info. */, also, I don’t know if the wp_redirect() function is returning any problem… but it works now! Thanks!!

    • We’re not changing the default registration fields, instead we’re creating our on on the front page. Just set up your register, edit profile and login pages with the corresponding page templates.

  14. How can one port this to work in a different theme other than Thematic theme?

    I’m getting a reference call error to the thematic function.

  15. Great job Cristian!
    I have just a little security issue i want you to note.
    In the “User Registration Page Template”, to the line:


    else{
    $new_user = wp_insert_user( $userdata );
    wp_new_user_notification($new_user, $user_pass);

    i would make this change:


    elseif($_SERVER['HTTP_REFERER'] == the_permalink()){
    $new_user = wp_insert_user( $userdata );
    wp_new_user_notification($new_user, $user_pass);

    or someone could create thousands of users in your db with automatics external post requests…i dont know if “$_SERVER['HTTP_REFERER'] == the_permalink()” is the right control (i had this idea very quickly…), but of course a controlo here is necessary.

    Anyway thanks, you are a master!

  16. Hello, is there a way to add the password fields in the Registration page? To permit users create their own password.

    Thanks a lot!

  17. Hello,

    This is some nice code, however i am trying to include the login form on the sidebar and keep getting this error:

    Any ideas on how to implement the login form to the sidebar?

    Thanks :)

  18. Warning: Cannot modify header information – headers already sent by (output started at /Users/johnhodgson/Sites/virofinal/wp-content/themes/viroshop/single.php:3) in /Users/johnhodgson/Sites/virofinal/wp-includes/pluggable.php on line 690

    This is the warning.

    • Hi Matt. Make sure the first part between the php tags is at the very top of your page header.. and make sure you are not calling the header twice.

      • Hey, thanks for the response :)

        I have tried your solution but still get the same error :( what happens is when i login it redirects me to a post with the errors on that page.

        I believe it has something to do with this part of the code that redirects me:

        <form action="” method=”post” class=”sign-in”>

        The code works smoothly with its own page template. I’m trying to include the script on all pages within the sidebar.php.

        Any ideas?

        Cheers

        • Are thought you were talking about the profile page.. your action should be directed to your wp-login.php. If you cant get it to work you could do what I ended up doing.. put it in a modal window and have the pages called through AJAX. If you need it displayed in the sidebar at least a temporary solution would be to iframe it as a work around.

        • Yer, i did think about the iframe method but something i’d rather stay away from.

          I found an a plugin called sidebar-login, i managed to use a piece of code from there and everything is all good.

          Thanks for your help though :)

  19. hmm,

    i think i found a simple solution to translate i have put the files in a sub theme folder and with poedit i can now translate. Only need to find a way get the templates to work in a subfolder

    regards

  20. Great post, thank you, it was very helpful for current theme creation task. One issue that I found is that wp_signon returns an error object but this is empty no matter what. I even went step-by-step according to the codex:

    $creds = array();
    $creds['user_login'] = $_POST['user-name'];
    $creds['user_password'] = $_POST['password'];
    $creds['remember'] = $_POST['remember-me'];
    $login = wp_signon($creds, false);
    if(is_wp_error($login)) {
    print_r($login);
    }

    Given wrong credentials it returns empty:
    WP_Error Object ( [errors] => Array ( ) [error_data] => Array ( ) )

    Anybody else with that problem?

  21. Hi, i get this error :
    Fatal error: Call to undefined function thematic_abovecontainer() in /home/*****/public_html/wp-content/themes/thematic-frontend-profile/tpl_register.php on line 59

    please help me, thx

  22. Awesome post – can’t thank you enough. I’m developing a plugin that needs to store extra user information and this post gives me exactly the information I need. My plan is to use custom shortcodes instead of templates to display the edit profile, user registration and login information on the front end. I’ll have to let you know how it goes!

    PS – I was hoping to use the Register Plus plugin to do this but it needs an overhaul and doesn’t address the front end display. Hmmmm – maybe there is a need for a new plugin?

    • If you figure it out or can update the original plugin, let me know, I’ve been looking for a clean and easily updateable solution with no luck, I’m surprise one hasn’t been made yet, a front-end membership solution I mean.

  23. i’m getting this error when i’m logging:
    Warning: Cannot modify header information – headers already sent by (output started at /home/oystertr/public_html/site/wp-content/themes/ne/header.php:2) in /home/oystertr/public_html/site/wp-includes/pluggable.php on line 690
    Warning: Cannot modify header information – headers already sent by (output started at /home/oystertr/public_html/site/wp-content/themes/ne/header.php:2) in /home/oystertr/public_html/site/wp-includes/pluggable.php on line 691
    Warning: Cannot modify header information – headers already sent by (output started at /home/oystertr/public_html/site/wp-content/themes/ne/header.php:2) in /home/oystertr/public_html/site/wp-includes/pluggable.php on line 692
    You have successfully logged in as admin.

    My header.php looks like:

    <html xmlns="http://www.w3.org/1999/xhtml&quot; >

    <meta http-equiv="Content-Type" content="; charset=” />

    You know why?
    Thanks

    • I am getting the same error now. It seems to be a conflict with one of my plugins (Photosmash). I will let you know if I figure anything out..

  24. thanks a lot Cristian,

    this is the most needed functionality in a multi user site/blog but also missing from wordpress core,
    thank you very much for this, i think the only thing is missing is a profile image upload,

    i have try to include User Photo and Cimy User Extra Fields plugins, but with no luck,

    does anyone have found a working solution?

    thanks a lot!

        • thanks for your reply Zac,

          i checking your code at pastie but i think is based on an another tutorial that doesn’t use the show_user_profile and edit_user_profile to store/edit the user data.

          i try to add cimy-fields plugin (image upload form) but i can’t make it upload and save the image.

          anyone can help with this?

          thanks a lot,
          Philip

  25. Hello,

    I have this almost working, but it isn’t fitting into my template. I have the 2010-weaver template, and I am copying the code that you supplied and pasting into the page through the admin area of wordpress. I have it so that I can edit it, but the content is being pushed down below the sidebar. If I edit the css, it will change the layout of my entire site.

    Do you know how to set this up for 2010-weaver

    Thanks,

    Aaron

  26. Cristian i just seen that in the login template you make use of the “wp_login” that have been deprecated and now is “wp_signon”, but if you replace it you get errors

    any plans to release an update?

    thanks a lot,
    Philip

    • Hi Philip,

      I don’t have plans to update this tutorial, however I do have plans for a User Profile Plugin that can do everything in this tutorial from a GUI. I don’t have a timeframe for it but I’ve already started work on it. :)

  27. thanks for this information Cristian,

    one simple question that no one have ask or talk about,
    how you get the “Hobbies” and the “Agree” selections in an Author template?
    for the “Birth” i use echo $curauth->birth; and it returns the year selected,

    for the Agree i try:
    $eg = $curauth->agree;
    if ($eg==”Yes”)
    echo ‘Yes WordPress is the best';

    for the Hobbies i have no idea…

    what i have to do to get this info? can you help a bit, or someone here knows how to do this?

    thanks a lot for sharing this tutorial!
    Joanna

  28. Cristain,

    In general, why are you using error checks in your input value attrributes? I noticed the log on templare does have error checks.

    David Shoe

  29. It’s a pitty the “forgot pasword” link still points to the back-end login page of wordpress
    How can I also make this work trough the front-end

    many thanks!
    Rinni

    • This was done using Thematic out of convenience. You should be able to modify it to work with your own theme if needed… just make sure to test everything. There are a lot of variables and it’s easy to miss something.

  30. Hello @Cristian hi i have one question about how to display selected hobbies of individual authors on author.php because when i try this code ID );
    ?>
    it show the text Array. I want to display selected hobbies by author. Please help me out from here. Thanks in advance

    • There is a problem with that particular demo. Unfortunately I don’t have time to test it properly.

      Also I’ve started work on a plugin that will allow you to add front-end profiles a lot easier and without writing any code. The initial version will be out in a week or so and will allow you to make use of the existing WP fields to create your front end registration and user profiles. You can subscribe to this blog to know when it’s released.

  31. Hi there,

    Great article, many thanks! Would you know how it would be possible to incorporate a CAPTCHA or human test question to weed out spam bots filling out bogus information? Thanks.

    Jon

  32. Im looking for some developer who can optimize this template. Is a good basement, but it has some issues to enhance. Find me in google.

  33. Brilliant article / tutorial. Just implemented, adjusted for my own custom profile fields, and viola, works. Little bit of DOM / CSS adjustment and it’ll look great.

    I believe I’m on WP 3.0.4, running multisite. Did a lot of looking at plugins and other tutorials that tried to use add_action(‘register_form’ … ) and they all failed for multisite. Sweet thing about your approach is the content admins can edit the content that appears above the form right in WP-Admin Page edit, and not bork the form in the process. Nice.

    Thanks for your contribution, Cristian.

  34. Pingback: Robert iangdon | Sibehgroup

  35. Hi there,

    Great article, many thanks! Would you know how it would be possible to incorporate a CAPTCHA or human test question to weed out spam bots filling out bogus information? Thanks.

  36. I’ve yet to try this, but I’m curious what you think would happen if WP core implemented the same functionality?

  37. Hi Cristian,

    great tutorial. I would not use the plugin, how do I add a message “Update Post” .can you help?

    Any help is appreciated, thanks!

  38. Pingback: Show reCaptcha on Custom Frontend Login & Register Form | SeekPHP.com

  39. what is the hook to add custom fields while creating new user from admin panel. I can see only:
    add_action( ‘show_user_profile’, ‘my_show_extra_profile_fields’ );
    add_action( ‘edit_user_profile’, ‘my_show_extra_profile_fields’ );

    but what for add_action(‘??’,’my_show_extra_profile_fields’) for http://**/wp-admin/user-new.php ??

    Is there any hook for that? Am I clear to my requirement?

    Thanks

  40. Hey guys
    I was wondering if anyone can please help me with something really small on my website that i cant seem to figure out.
    I want to add in an extra “Custom Field” in my models profiles to say “Location” but i cant seem to get it into the frontend of wordpress to show up on the website?

    Any ideas?

    Thanks so much

  41. Hi there,

    I have a WordPress site & need to offer users a simple login/registration option so they can post topics on a bbpress forum (Im using the bbpress plugin).

    Your plugin looks great & wonder if it would suit my basic needs?

    thanks.

  42. Pingback: Área de Clientes – Front-End – Formulário de Registro « Snippets WordPress

  43. Howdy!

    I created custom profile field, called “agenttitle” and it displays without a problem on a page showing single user info:

    However I am not able to make it happen on the page that lists all users. That page is calling one function which works fine for displaying the picture and the name of user, but no way in hell can I add the custom field.

    It’s something like (bottom part of it):
    $agent = ''.$displayname.'';
    echo $agent;

    And above part works fine. How do I add the custom field?

    Thanks!

  44. Hi all,

    I have a profile page and I need to make a comment system on it. The comments system should work exactly the same way as standard WordPress comment system, but instead of posts it should work with users. For better understanding, I have 1 page which acts as a profile for every user (user_login is in the URL) and at the bottom of that page users can leave comments about ‘profile’ user. and

    Any ideas how to achieve this? What should be changed? Is there any wordpress plugin for this of can you send me any PHP function for this.

    waiting….

    Thanks

    • Hello mylife,
      you can add a textarea and a submit button with the class/id the wp uses for that same styling. Then you can just save the submitted data in the user_meta table.
      I am not aware of (personally) of any plugin that would do this.

      Gabriel

  45. Hi,

    I am looking if this functionality will work on my project and am new to wordpress. I did notice that registration.php is required in the tpl_register.php template ->require_once( ABSPATH . WPINC . ‘/registration.php’ );)

    The problem is that the registration.php file is deprecated in wordpress version 3.2.1!

    Also, will this work with Multisite?

    Thanks for a great tutorial. I know it takes time to do and it is much appreciated by this community.

    Regards,
    Raynbow

    • Hello raynbow,

      regarding the inclusion of the registration.php file: it’s only a warning that wp emits when including this file, so you should be fine. Also, seems the new versions of WP already include the basic functions this file contains, so including it shouldn’t be necessary.

      Regarding the multisite: it should work, but it hasn’t been tested yet.

      Gabriel

  46. Pingback: Show reCaptcha on Custom Frontend Login & Register Form | web technical support

  47. Pingback: why is wp_new_user_notification not working? Coupon Codes

  48. Pingback: why is wp_new_user_notification not working? | Q&A System

  49. I have a custom PHP based user system with database, users are managing their stuff in it. I simply want that all system should remain as it. Only want to integrate WP Users system with my system. Basically I want to run my current system with wp users/profiles.

    Is that possible?

    If yes can you recommend me any person who can do it perfectly. And how much cost I should pay for it.

    Please reply as I really want like that.

    • Hello,

      our plugin only works with WordPress sites…so no plugin designed for it will work as it is with a php site. We can however redo your site on the WP framework, should you decide for such a project.

      Gabriel

  50. Some time ago, I needed to buy a good house for my business but I did not have enough cash and could not buy anything. Thank heaven my brother proposed to try to take the business loans from trustworthy bank. So, I did so and was happy with my short term loan.

  51. Hi, i’m in serious problems…can anyone help me please??
    I’m doing a very important website, i’m using that plugin but i don’t know where to put it..
    Can anyone help me? Pleaseeeeeeeee!

  52. Thanks very much! This will be my starting point on customizing wordpress login and registration. Hope I can finish it through this tutorial.

  53. Great, this works really well. One small issue in the registration template

    In this bit of code $_POST['user-name'] should be $_POST['user_name']
    <?php
    if ( current_user_can( 'create_users' ) )
    printf( __('A user account for %1$s has been created.', 'frontendprofile'), $_POST['user-name'] );
    else
    printf( __('Thank you for registering, %1$s.', 'frontendprofile'), $_POST['user-name'] );
    printf( __('Please check your email address. That\’s where you\’ll recieve your login password. (It might go into your spam folder)’, ‘frontendprofile’) );
    ?>

  54. Hey! Do you use Twitter? I’d like to follow you if that would be ok. I’m definitely enjoying your
    blog and look forward to new posts.

  55. so if i want to use this all i have to do is
    instal the theme & the child theme activated then ? what i have to do
    ? to display links like the demo

    Register
    Log In
    Edit Profile
    About
    thanks for help

  56. Error ?

    Warning: Missing argument 1 for thematic_post_class(), called in F:\wamp\www\42\wp-content\themes\thematic\thematicsamplechildtheme\tpl_register.php on line 75 and defined in F:\wamp\www\42\wp-content\themes\thematic\library\extensions\dynamic-classes.php on line 426 Call Stack #TimeMemoryFunctionLocation 10.0008367048{main}( )..\index.php:0 20.0017370720require( ‘F:\wamp\www\42\wp-blog-header.php’ )..\index.php:17 30.861925785256require_once( ‘F:\wamp\www\42\wp-includes\template-loader.php’ )..\wp-blog-header.php:16 40.867725901944include( ‘F:\wamp\www\42\wp-content\themes\thematic\thematicsamplechildtheme\tpl_register.php’ )..\template-loader.php:43 50.925125949320thematic_post_class( )..\tpl_register.php:75 “>

  57. Christian, thanks so much for taking the time to put up these tutorials!

    So, since you are an expert, let me ask a question that no one else in the WP developer community can answer!

    All Commercial Frameworks are using basically the same method to allow Registered Users to Submit their own Posts. Frameworks are wrapping their own styling and js around Forms to hide the Ugly WordPress UI.

    But, there are Plugins written, such as for individualized calendars that enable booking and rental availability calendars modifiable by Users.

    These plugins when installed by the site admin give a special options view and links to settings for Registered members who have Author roles.

    In other words, in the default WP install a logged in User will find their own posts views and screens in the Wp UI, and if a plugin has been installed for a booking calendar that is intended for each Member to modify for their own needs then the Plugin name and menu links show up in a view similar to the Admin logged in view.

    However, because all Frameworks simply give a Form to these logged in Users then the existence of activated, installed Plugins for a logged in Post Author to use will never show up.

    Is there a way to write a Custom Form or Template inside a Framework that will ALSO detect and pass along the same menu links and options settings into a Custom Add or Modify Post form?

    Instead of, for instance, the Plugin Menu link that will show up in the lefthand navigation column in the default logged-in Author Admin view, this could be extended into a Custom Framework template?

    The Framework “stripped down” Form inputs method never pulls in the same Plugin and its options.

    Further, some of these plugins create extra selectors in the toolbar above the text content editor in the default WP Admin view. If a user creates and saves a Calendar with a range of dates then the name of that Calendar will be in the Content toolbar selector. Choosing that Calendar then creates shortcode into the Content area. On the End User side the Calendar appears with the text content.

    But, Frameworks also do not pass along these options in the Submit Post Forms.

    Is there a way to have a custom user registration template inside a custom framework that opens up these functionalities to logged in Members just as they would see and have available in the default WP UI?

    Thank you for your reply!

  58. Very nice an lot helpful! Unfortunately I worked a lot on these templates until i discovered these errors! This because the registration form will not shows and says that I’m logged in even though I’m logged out.
    Please please help, anyhow to fix them? many thanks

    Notice: registration.php is deprecated from version 3.1

    Notice: Undefined variable: new_user in /Applications/MAMP/htdocs/mytheme/wp-content/themes/mytheme/template-registration-form.php on line 87

  59. Hey I know this is off topic but I was wondering if you knew of any widgets I
    could add to my blog that automatically tweet my newest twitter updates.

    I’ve been looking for a plug-in like this for quite some time and was hoping maybe you
    would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  60. Removing the code wasn’t ideal.

    It turned a good tutorial into something that makes it hard to reference.

    Might be an idea to replace it.

    Does the plugin map onto buddypress x-profile?

Leave a Reply

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


− 1 = zero

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>