Home Subscribe to this site with an RSS reader Search this site Contact Likoma Uh, a little help here, please?

Extended Profile

By Bradley Charbonneau | Filed under Help, Plugins, Tutorials, WordPress

For months, I’ve been wanting to use the Extended Profile data (from the userextra plugin, comments) to show a list of members on a post/page. I wanted more than just Firstname Lastname, Email, ICQ, etc. I wanted Address, City, Favorite Vegetable, whatever. After finding this code and then this bit of PHP to pull the data, I got it! This will be a huge help for member sites to show the members and some of their info (can hide this page to non-members, of course). Also, the email listed is encoded, so at least some spammers won’t get it. Now, onto formatting …

Update: I’ve combined a few plugins (Author Profile, UserExtra) so that a user site can have a Roster page (a list of members (e.g. Editors, Subscribers, etc.). Here’s a video showing the user how they can update their information.

Here’s the “members-1.php” file I’m using to show the fields. I use a page template so the PHP doesn’t get messed up with WYSIWYG editors. It’s zipped:


40 Responses to “Extended Profile”

  1. BNI Embarcadero » » Your Extended Profile Says:

    [...] Extended Profile Help Video   Explore posts in the same categories: Help [...]

  2. depp4u Says:

    I have been reviewing your extended profile video tutorials, and will be to implement them for a members only website.

    Can this information in the extended profile be used for mailing lists and such? If so, can you briefly describe how and/or where I can find additional information.

  3. fred Says:

    does this work with WP 2.2? I installed those userextra plugin’s but i’m not getting the userextra links in my profile.

  4. Bradley Charbonneau Says:

    depp4u: I don’t know if they can be used for a mailing list. Maybe if it was a WP mailing list (e.g. ShiftThis) where you could call certain fields from table entries (SQL), but I don’t know from experience.

    fred: I haven’t tried it with 2.2, but also, the userextra links don’t show up directly in the profile, but as another sub-tab while in your profile and/or under Manage. I hope that helps.

  5. fred Says:

    thanks. I’ve been scouring for days trying to figure this thing out and find a one stop solution. Yours seems to be the only one out there. It’s taking me forever to get to each step. So far…

    1) installed and ran userextra & usermeta plugins. Got them to work and added extra fields. http://log.squish.net/2006/02/05/userextra-goes-wp20/

    2) Installed the “get author” plugin. http://guff.szub.net/source/get-author-profile.php

    3) Uploaded “author.php” to my themes directory. http://guff.szub.net/source/page-authors-2.0.php
    (renamed to author.php)

    4) Now I can create a page with the author.php template (leaving the entry blank). And it lists my users.

    5)… I cannot display the custom fields I created with userextra. I’ve watched your tutorial.
    I’ve tried to copy and paste the contents of author.php directly into the entry field but the php does not execute correctly. I did not use the wysiwyg editor.

    am i missing a step? I’ve tried to do this piecing together everything I’ve found on this topic.

  6. Bradley Charbonneau Says:

    fred: I uploaded the “members-1.php” file (zipped) and it’s now attached to the post above.

    I’m using that as a page template so that I don’t have to put PHP into a WP post/page. Maybe it works, maybe not, but this way, the PHP is “safe” (not messed up) on the file/template. I’m not a programmer, so I may not be making this clear or using the right language, but I think you may just be missing this one last piece of the puzzle.

    And it IS a puzzle!

    Let me know how it goes.

  7. Arvin Says:

    Hi Bradley,

    I’ve seen your posts on WP regarding user fields and how to get lists of members and user fields.

    Could you please help me on something? I’m trying to work it so that the user extra fields come up when the user is registering for the first time. More info here.

    I’d really appreciate any advice, I’m a total newb and this should be easy enough but I can’t figure it out.

    Thanks,

    Arvin

  8. Bradley Charbonneau Says:

    Arvin: I haven’t gotten that far as to get these fields into the actual WP login screen. That’d be nice and if you figure it out, I’d love to hear how you did it. Thanks for the WP forums link.

  9. Kahil Says:

    I watched your tutorial and read up on your post both here and at wordpress support… I have the author profile plugin active and I cannot get this to work. I cannot find a member list plugin neither…

  10. Tim Says:

    What plug-in are you using to get the “Subscribers-Only” checkbox in the Page Status?

    Thanks,

    Tim

  11. Bradley Charbonneau Says:

    Tim: I’m using the Edwards Subscribers Only plugin.

  12. MasterBip Says:

    Great Plugin, hard to implement, a lot of PHP edition.

    one thing: How can i create a IMAGE UPLOAD FIELD so the user can upload their own image profile??

    http://clubtakasaki.masterbip.cl/?page_id=2

    Thanks.

    BANZAIII !!!

  13. Bradley Charbonneau Says:

    MasterBlip: I don’t know. There are a few other plugins that might combine with this one, but I haven’t figured it out yet. If you figure it out, please post it here as I’d love to know.

  14. Setting up a member/user directory in WordPress | Likoma Says:

    [...] I put together the member/user directories on a few sites (e.g. BNI Embarcadero). I recently did another tutorial (more links to code on that page) showing how to use the UserExtra forms from the user’s [...]

  15. Ron Says:

    Ok, figured out what you need to display User Photos in the directory.

    Get the Add User Photo plugin at http://www.andrewferguson.net/2006/09/20/adding-user-photo-to-wordpress-user-profile/

    Configure it as defined at the URL above, and then modify the members-1.php file submitted here on line 157 to the right image path:

    $image_dir = ‘wp-content/images’;

    And then modify header-1 to match your UserExtra fields, etc.

  16. Bradley Charbonneau Says:

    Ron:Thank you! I just used Andrew Ferguson’s plugin and voila! With a bit of tweaking, I’m now using it on the BNI site. I changed “user_login” to “user_nicename” so it wouldn’t have spaces in the file name and changed the directory where the images live, but that’s about it.

    Thanks again so much for posting your comment here, it’s very much appreciated.

  17. Mattz Says:

    Hi,

    This looks great, is it tested on an MU install ?

  18. Bradley Charbonneau Says:

    Mattz: I haven’t tested it on an MU install, but I’d love to hear if it does work.

  19. Zach O Says:

    Is there a way to sort the list by company instead of user_nicename?

  20. Bradley Charbonneau Says:

    Zach: I see on line 57 of authors.php (my file, anyway) this code:

    $order = ‘user_nicename’; // set order for users table query

    But of course, that’s a standard WP table entry, not like “Company” (which would be from user extra/meta. Hmm.

    Maybe this post, which helped me get it sorted by last name, could help. Please let me know if you get it working, but that link there would be my first guess (I also just don’t have the time to test that out right now). Thanks for writing.

  21. rocky Says:

    I like how you have combined these. It is something that I am wanting to do myself, however I guess I am not following how you did it and so forth. Looks like I have some studying to do!

    Thanks for sharing!

  22. Daggo Says:

    I can’t seem to get the membership code (PHP) to work in a post using exec-php. I’m wondering if I’m correctly referencing my database. Any hints? That is, how do enter the correct header information?

  23. Mean Business » Blog Archive » links for 2008-09-10 Says:

    [...] Extended Profile | Likoma (tags: wordpress identity) [...]

  24. warhammer Says:

    thats indeed a nice plugin and should’ve had it installed earlier imo.

  25. Wholesale Electronics Says:

    How can i create a IMAGE UPLOAD FIELD so the user can upload their own image profile??

  26. Bradley Charbonneau Says:

    Wholesale Electronics: I haven’t figured it out yet to let the user do it themselves. Or at least, not an EASY way that the average non-techie user could do it. I’m revamping a site I manage soon that has some fancy member/user features, so I’ll post back here if I learn something! Thanks for writing.

  27. GeekLife » Blog Archive » 100+ Guide video per Wordpress [video tutorials] Says:

    [...] user in WordPress and adding Extra User Data ›. · Insert an image in PHP List ›(Advanced). · Your Extended Profile (more info than Name, Email, etc.) ›. · Random Quotes › (Advanced). · Using CSS and Blockquotes ›(Advanced). · Simple Page Edit [...]

  28. GeekLife » Blog Archive » 100+ Guide video per Wordpress [video tutorials] Says:

    [...] adding Extra User Data ›. · Insert an image in PHP List ›(Advanced). · Your Extended Profile (more info than Name, Email, etc.) ›. · Random Quotes › (Advanced). · Using CSS and Blockquotes ›(Advanced). [...]

  29. cellphone Says:

    Also, the email listed is encoded, so at least some CellPhone spammers won’t get it. Now, onto formatting …

  30. 100 Tutorial Video Per WordPress Says:

    [...] Your Extended Profile (more info than Name, Email, etc.) ›. [...]

  31. 100+ Wordpress Video Tutorials, from Basic to Advanced : Speckyboy - Web Design, Web Development and Graphic Design Resources Says:

    [...] and adding Extra User Data ›. · Insert an image in PHP List ›(Advanced). · Your Extended Profile (more info than Name, Email, etc.) ›. · Random Quotes › (Advanced). · Using CSS and Blockquotes ›(Advanced). [...]

  32. David Gonzalez Says:

    great! I managed to create the list of members with pic also, but just wondered how to split in pages all the output, because I have over 50 members. Is there a way to show around 25 members per page with something like Page 1, Page 2..etc

    thank for this great tutorial!

  33. 100+ Wordpress Video Tutorials, from Basic to Advanced | Rich Magazine Says:

    [...] user in WordPress and adding Extra User Data ›. · Insert an image in PHP List ›(Advanced). · Your Extended Profile (more info than Name, Email, etc.) ›. · Random Quotes › (Advanced). · Using CSS and Blockquotes ›(Advanced). · Simple Page Edit [...]

  34. 110+ Massive Wordpress Video Tutorial Collection | 1stwebdesigner - Love In Design Says:

    [...] Extended Profile [...]

  35. Design-Tut+ » 110+ Massive Wordpress Video Tutorial Collection Says:

    [...] Extended Profile [...]

  36. discount electronics Says:

    You’are right, but i don’t understand

  37. Descarga Directa - 101 videotutoriales de WordPress Says:

    [...] Ampliación del perfil de los usuarios [...]

  38. Jerry Helms Says:

    I ran across your post today while searching to see how to do this for a BNI chapter in Raleigh, NC. I have played around with Buddypress a little. My concern is that it might be too overwhelming for the “regular” guy.

    Any particular reason why you did not go with Wordpress MU? Maybe it was for the same reason that I am hesitant about Buddypress. Most BNI members might not want to be troubled with creating a blog.

    Do your BNI members contribute any fees to help support the web developer and associated hosting?

  39. 110 wordpress video al??t?rmas? | Faydal?Web | Internetin Faydal? Yüzü Says:

    [...] Extended Profile [...]

  40. chinacellphone Says:

    thank for this great tutorial!

Leave a Comment