119 Comments

  1. Posted June 11, 2010 at 5:56 pm | Permalink

    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?

    • Posted June 12, 2010 at 11:04 pm | Permalink

      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/

      • David
        Posted October 5, 2010 at 3:45 pm | Permalink

        thanks for sharing this link

  2. Brian
    Posted June 16, 2010 at 6:47 pm | Permalink

    Hey question: How safe is this?

    • Posted June 16, 2010 at 9:58 pm | Permalink

      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?

  3. Hans
    Posted June 17, 2010 at 12:02 am | Permalink

    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?

    • Posted June 17, 2010 at 9:47 am | Permalink

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

  4. Søren Iversholt
    Posted June 23, 2010 at 5:19 pm | Permalink

    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?

  5. Posted July 4, 2010 at 11:21 pm | Permalink

    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

    • Posted July 5, 2010 at 11:56 am | Permalink

      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.

  6. Posted July 24, 2010 at 12:59 am | Permalink

    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?

  7. Bundler
    Posted August 6, 2010 at 5:23 am | Permalink

    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!

    • Posted August 6, 2010 at 5:48 am | Permalink

      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.

  8. Posted August 13, 2010 at 1:47 pm | Permalink

    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.

    • Posted August 13, 2010 at 1:54 pm | Permalink

      This could be an issue with WordPress it self. Have you tried to put Hebrew letters in the backend in the user name?

      • Posted August 13, 2010 at 2:04 pm | Permalink

        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.

        • Posted August 14, 2010 at 9:47 pm | Permalink

          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…

        • Posted August 16, 2010 at 11:12 am | Permalink

          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.

  9. Vin Carrillo
    Posted August 16, 2010 at 10:19 pm | Permalink

    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!

    • John Doe
      Posted August 17, 2010 at 3:47 am | Permalink

      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.

  10. zack
    Posted August 19, 2010 at 3:47 am | Permalink

    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?

    • Posted August 19, 2010 at 8:09 am | Permalink

      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.

  11. Posted August 19, 2010 at 9:43 am | Permalink

    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.

  12. victor
    Posted August 20, 2010 at 6:29 pm | Permalink

    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 . '';
    }?>

    • victor
      Posted August 20, 2010 at 6:31 pm | Permalink

      Sorry, this should be fine
      select
      ‘Please select a country’,
      ‘–’ => ‘None’,
      ….,’ZW’ => ‘Zimbabwe’ );
      foreach($countries as $code => $name) {
      $selected = ($country == $code) ? ‘selected=”selected”‘ : ”;
      echo ” . $name . ”;
      }?>

      select

    • Posted August 23, 2010 at 8:46 am | Permalink

      The country select should be similar to the year select that’s already implemented. You can duplicate that functionality and instead of years have countries.
      http://cozmoslabs.com/project/thematic-frontend-profile/register/

  13. Posted August 22, 2010 at 4:01 pm | Permalink

    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.

    • Posted August 23, 2010 at 8:48 am | Permalink

      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.

      • Mark
        Posted August 25, 2010 at 6:33 am | Permalink

        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.

  14. Posted August 25, 2010 at 5:27 am | Permalink

    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…

    • Posted August 25, 2010 at 10:42 am | Permalink

      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!!

  15. Posted August 25, 2010 at 3:26 pm | Permalink

    If i activate the theme is still gives the default forms, how can i fix that?

    THNX !

    • Posted August 25, 2010 at 3:32 pm | Permalink

      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.

  16. Posted August 25, 2010 at 7:01 pm | Permalink

    oh oke :)

    and how do you do that, i’m new to wordpress
    just add a new page with that code in it?

    thnx !

  17. Posted August 26, 2010 at 9:14 am | Permalink

    thnx cristian !!

  18. Chris
    Posted August 28, 2010 at 11:27 pm | Permalink

    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.

  19. WebFusion
    Posted August 29, 2010 at 1:15 pm | Permalink

    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!

    • Posted September 15, 2010 at 8:17 am | Permalink

      Thank you for the contribution. I’ll try and find some free time and update this tutorial.

    • Michael Tran
      Posted January 20, 2011 at 10:48 am | Permalink

      To Web Fusion,

      The wp_nonce_field() in form is suppose to deal with that, but cristian code of it in form is incomplete.

  20. Angel
    Posted September 6, 2010 at 8:23 pm | Permalink

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

    Thanks a lot!

    • Posted September 15, 2010 at 8:20 am | Permalink

      The way it’s functioning right now is auto-generating a password. After the signin the user can edit that one from the edit template.

  21. zac
    Posted September 15, 2010 at 6:46 am | Permalink

    To loop back to the first comment.. has anyone figured out a solution to add an upload field to this? Ideally I could get this working with something like the user-photo plugin which I threw on Pastie if anyone has any ideas…

    http://pastie.org/1159894

    • Posted September 15, 2010 at 8:21 am | Permalink

      It can’t be that hard to do… just that I don’t have the time to do it… will try and update this sometime in the future with upload fields.

  22. Matt Strange
    Posted September 24, 2010 at 5:42 am | Permalink

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

  23. Matt Strange
    Posted September 24, 2010 at 5:43 am | Permalink

    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.

    • Posted September 24, 2010 at 6:06 am | Permalink

      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.

      • Matt Strange
        Posted September 24, 2010 at 6:27 am | Permalink

        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

        • Posted September 25, 2010 at 7:40 am | Permalink

          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.

        • Matt Strange
          Posted September 25, 2010 at 7:46 am | Permalink

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

  24. keitai
    Posted September 24, 2010 at 1:37 pm | Permalink

    Hi,

    Enjoying your post, but where can i find the frontendprofile.po file to translate ??

    regards

  25. keitai
    Posted September 24, 2010 at 1:48 pm | Permalink

    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

  26. Jan
    Posted September 28, 2010 at 5:11 pm | Permalink

    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?

  27. Posted October 1, 2010 at 3:59 pm | Permalink

    Thanks! I have just recently been messing with my templates php coding. This helps!

  28. danielem
    Posted October 12, 2010 at 12:35 am | Permalink

    That code is great…
    i’ve tryed your demo at http://cozmoslabs.com/project/thematic-frontend-profile/
    but any kind of username i try to use it still say me “This username is invalid because it uses illegal characters. Please enter a valid username. ”
    I tryed to use “danielelikesthatcode” also… but it wan’t works…
    Where i wrong? tnx

  29. Posted October 13, 2010 at 12:40 pm | Permalink

    This is so valuable. Using this code in conjunction with Justin’s member shortcode function here has allowed me to create an effective and simple user registration/registration-protected content solution.

    Thanks :)

  30. Robert
    Posted October 23, 2010 at 10:03 am | Permalink

    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

    • Posted October 25, 2010 at 10:31 am | Permalink

      Do you have Thematic installed. If yes, try and reupload it.

      • Posted November 3, 2010 at 6:30 am | Permalink

        I’ve tried registereing with several usernames, but keep getting this error:
        “This username is invalid because it uses illegal characters. Please enter a valid username.”

        • dougal bichan
          Posted December 3, 2010 at 12:17 am | Permalink

          Me too same error. Is there a fix for it?

  31. Posted October 25, 2010 at 4:13 pm | Permalink

    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?

    • Posted November 3, 2010 at 7:03 am | Permalink

      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.

  32. Andrea
    Posted November 17, 2010 at 11:37 pm | Permalink

    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

    • zac
      Posted December 3, 2010 at 4:17 am | Permalink

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

  33. Philip
    Posted November 18, 2010 at 11:27 am | Permalink

    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!

    • zac
      Posted November 19, 2010 at 8:52 am | Permalink

      I have been trying to get profile images on the front forever! If anyone finds a solution please post the code here.

      • zac
        Posted November 19, 2010 at 9:04 am | Permalink

        oh man.. i need to sleep more or something. i forgot i already found a way to make this work, i posted a comment a couple of months ago on this thread :P here is the pastie http://pastie.org/1160039

        • Philip
          Posted November 22, 2010 at 3:29 pm | Permalink

          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

  34. AARONDAS
    Posted December 13, 2010 at 8:47 pm | Permalink

    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

  35. Philip
    Posted December 19, 2010 at 11:23 am | Permalink

    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

    • Posted December 20, 2010 at 3:36 pm | Permalink

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

  36. Joanna
    Posted December 22, 2010 at 11:54 pm | Permalink

    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

  37. michael
    Posted January 6, 2011 at 9:37 am | Permalink

    Hi All,

    I downloaded theme from link below:
    http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=11

    Put in themes folder, and activated theme, but i don’t see what i see in the demo. What am i doing wrong? I have never used templatic themes before. Help is much appreciated.

  38. david Shoe
    Posted January 15, 2011 at 7:34 am | Permalink

    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

  39. Posted February 1, 2011 at 8:30 pm | Permalink

    Russia

  40. Rinni
    Posted February 12, 2011 at 12:21 am | Permalink

    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

    • Posted February 14, 2011 at 10:00 am | Permalink

      I think the best way to do this is to style the WordPress “forgot password ” so it’s integrated with your logo and design.

      • Posted March 8, 2011 at 4:09 am | Permalink

        also i have a intent to change the forgot password template … but seem to be nothing in my head

  41. Posted March 8, 2011 at 4:08 am | Permalink

    jusst say thanks you ! but i have to have a small change to your code to suite my theme …

  42. Posted March 15, 2011 at 12:08 pm | Permalink

    This is great, but how easy is it to implement into a WP site that isn’t using a Thematic Child Theme?

    • Posted March 15, 2011 at 12:43 pm | Permalink

      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.

  43. Posted March 29, 2011 at 10:38 pm | Permalink

    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

  44. Posted April 2, 2011 at 4:14 pm | Permalink

    I´m I tried to register myself using flaviowd as an username, but an error appears, informing that “flaviowd” is using a invalid characters. What is wrong?

    • Posted April 4, 2011 at 9:31 am | Permalink

      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.

  45. Posted April 6, 2011 at 3:21 am | Permalink

    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

    • Posted April 6, 2011 at 9:16 am | Permalink

      I don’t see any problem with doing that. However you’ll have to code that your self.

  46. Juan Llamosas
    Posted April 7, 2011 at 3:48 pm | Permalink

    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.

  47. Posted April 12, 2011 at 2:58 pm | Permalink
  48. Posted April 16, 2011 at 9:27 pm | Permalink

    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.

  49. kathir
    Posted May 31, 2011 at 1:38 pm | Permalink

    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.

  50. Filmore Ha
    Posted June 20, 2011 at 9:36 am | Permalink

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

  51. Fask
    Posted June 24, 2011 at 3:51 pm | Permalink

    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!

  52. Fask
    Posted June 24, 2011 at 3:51 pm | Permalink

    sorry “Update Success”

  53. Posted September 6, 2011 at 11:19 pm | Permalink

    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

    • Gabriel Barina
      Posted September 7, 2011 at 3:38 pm | Permalink

      Hello Robin,
      not sure what you want to achieve exactly, but this may be what you were looking for:

      register_form
      Runs just before the end of the new user registration form.

      http://codex.wordpress.org/Plugin_API/Action_Reference/register_form

      OR this (depending on the timeline when you want your function to trigger):

      register_post
      Runs before a new user registration request is processed.

      http://codex.wordpress.org/Plugin_API/Action_Reference/register_post

      • Posted September 7, 2011 at 3:43 pm | Permalink

        That for register form. But I want to add custom fields from admin panel while creating new user. “register_form” hook can be used for use registration for non-admin people.

        I hope you understand.

        Thanks

        • Gabriel Barina
          Posted September 8, 2011 at 9:06 am | Permalink

          This tutorial is just a start-off for what you want. So basically the premium version of Profile Builder does all what you need, but from the front-end: add custom fields during registration.

          Gabriel

  54. Posted September 15, 2011 at 6:57 am | Permalink

    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

  55. David
    Posted September 26, 2011 at 1:43 pm | Permalink

    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.

    • Posted September 26, 2011 at 2:59 pm | Permalink

      That should work just fine, however you should know there’s a page template in bbPress 2.0 that has login/registration/edit-profile. Maybe you should look into that before you install a plugin when the functionality already exists.

      Cheers

      • David
        Posted September 26, 2011 at 3:07 pm | Permalink

        Thanks Cristian,

        Much appreciated. I’ll have a look!

  56. Ba1drick
    Posted October 31, 2011 at 6:42 am | Permalink

    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!

    • Gabriel Barina
      Posted October 31, 2011 at 4:38 pm | Permalink

      Hello Ba1drick,
      your info is really ambiguous. Please either send me either ftp credentials (if it is online) or the file itself (if it is on your localhost) with some more details to gabriel@cozmoslabs.com and I will debug it.

      Gabriel

  57. mylife
    Posted November 11, 2011 at 7:10 am | Permalink

    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

    • Gabriel Barina
      Posted November 14, 2011 at 10:44 am | Permalink

      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

  58. raynbow
    Posted November 12, 2011 at 5:39 am | Permalink

    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

    • Gabriel Barina
      Posted November 14, 2011 at 10:58 am | Permalink

      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

  59. raynbow
    Posted November 23, 2011 at 3:28 am | Permalink

    Hi Gabriel,

    Thanks for your reply. I will try it this week and let you know how it turns out.

    Regards,
    Raynbow

  60. Roni
    Posted December 10, 2011 at 7:31 am | Permalink

    Jus started now. Nice article Cristian. ‘ll be back with feed back in two days. :)

  61. Posted December 16, 2011 at 9:33 pm | Permalink

    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.

    • Gabriel Barina
      Posted December 16, 2011 at 10:16 pm | Permalink

      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

  62. Posted January 23, 2012 at 12:08 am | Permalink

    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.

  63. Vishal Lakhani
    Posted January 25, 2012 at 11:37 am | Permalink

    Hello you are genius!! Thanx you save a lots of my time..

    again thanks… :)

  64. Posted January 29, 2012 at 8:01 pm | Permalink

    Thanks a lot,

    I was stock in a hell of the problem, just need to user profile extra fields to be repeated multiple times.

    Your tutorial help me a lot.

  65. Posted February 11, 2012 at 2:27 am | Permalink

    Very Interesting. Thanks!

9 Trackbacks

  1. By Robert iangdon | Sibehgroup on May 30, 2011 at 12:44 am

    [...] To Web Fusion, The wp_nonce_field() in form is supposeIan Gordon iangordon.us. Posted July 24, 2010 at 12:59 am | Permalink ….. Robert. Posted October 23, 2010 at 10:03 am | Permalink … [...]

  2. [...] Referência: Cozmos Labs. [...]

  3. [...] dont like to use a plugin so i made use of user registration custom signup page and its not sending any emails:( at first everything is working then i added [...]

  4. [...] dont like to use a plugin so i made use of user registration custom signup page and its not sending any emails:( at first everything is working then i added [...]

  5. By Resveratrol NZ on February 8, 2012 at 9:26 pm

    Resveratrol…

    [...]Resveratrol supplement is actually a poly – phenolic compound found in many meals for example grapes[...]…

  6. By Scholarships For Minorities Glen Rock on February 9, 2012 at 2:59 pm

    Scholarships For Women…

    [...]these are a handful of references to online websites which we link to for the fact we think they really are well worth visiting[...]…

  7. By Scholarships For Minorities Glasser on February 10, 2012 at 12:27 am

    Bill Gates Scholarship…

    [...]the following are a couple of web page links to internet websites that we connect to since we believe they will be worth browsing[...]…

Post a Comment

Your email is never published nor shared. 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>

Subscribe without commenting