Extended Profile

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:

email

, , ,

47 Responses to Extended Profile

  1. depp4u May 17, 2007 at 8:49 am #

    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.

  2. fred June 26, 2007 at 10:38 pm #

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

  3. Bradley Charbonneau June 27, 2007 at 11:31 am #

    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.

  4. fred June 27, 2007 at 1:39 pm #

    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.

  5. Bradley Charbonneau June 27, 2007 at 10:17 pm #

    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.

  6. Arvin June 27, 2007 at 10:37 pm #

    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

  7. Bradley Charbonneau June 27, 2007 at 10:40 pm #

    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.

  8. Kahil June 27, 2007 at 10:42 pm #

    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…

  9. Tim July 13, 2007 at 2:18 pm #

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

    Thanks,

    Tim

  10. Bradley Charbonneau July 16, 2007 at 5:12 pm #

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

  11. MasterBip September 13, 2007 at 11:20 am #

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

  12. Bradley Charbonneau September 13, 2007 at 11:49 am #

    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.

  13. Ron December 28, 2007 at 12:53 pm #

    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.

  14. Bradley Charbonneau January 2, 2008 at 3:47 pm #

    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.

  15. Mattz January 7, 2008 at 6:15 am #

    Hi,

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

  16. Bradley Charbonneau January 15, 2008 at 11:02 am #

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

  17. Zach O January 23, 2008 at 8:49 am #

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

  18. Bradley Charbonneau January 23, 2008 at 1:51 pm #

    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.

  19. rocky April 27, 2008 at 10:19 am #

    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!

  20. Daggo May 26, 2008 at 2:07 pm #

    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?

  21. warhammer October 26, 2008 at 12:42 pm #

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

  22. Wholesale Electronics October 31, 2008 at 7:18 am #

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

  23. Bradley Charbonneau October 31, 2008 at 12:47 pm #

    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.

  24. cellphone December 19, 2008 at 7:09 pm #

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

  25. David Gonzalez March 29, 2009 at 1:31 pm #

    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!

  26. discount electronics August 20, 2009 at 1:38 am #

    You’are right, but i don’t understand

  27. Jerry Helms October 23, 2009 at 10:16 am #

    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?

  28. chinacellphone December 21, 2009 at 10:58 pm #

    thank for this great tutorial!

  29. Chen May 13, 2010 at 1:38 am #

    “This looks great, is it tested on an MU install ?” I have tested, unfortunately it doesn’t work.

  30. justin April 21, 2011 at 7:33 pm #

    how can i correct this Fatal error: Call to undefined function is_user_logged_in() in /home/afrolove/public_html/bloggy/wp-content/plugins/bp-translate/includes/bp-translate-user.php on line 103
    it happend when i try to add in bp tranlate plugin,
    can any one help

  31. justin April 21, 2011 at 7:37 pm #

    how can i correct this Fatal error: Call to undefined function is_user_logged_in() in /home/afrolove/public_html/bloggy/wp-content/plugins/bp-translate/includes/bp-translate-user.php on line 103
    it happend when i try to add in bp tranlate plugin,
    can any one help

  32. wholesale cell phone June 9, 2011 at 8:35 pm #

    This looks great, is it tested on an MU install ?” I have tested, unfortunately it doesn’t work.

Trackbacks/Pingbacks

  1. BNI Embarcadero » » Your Extended Profile - February 15, 2007

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

  2. Setting up a member/user directory in WordPress | Likoma - November 30, 2007

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

  3. Mean Business » Blog Archive » links for 2008-09-10 - September 10, 2008

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

  4. GeekLife » Blog Archive » 100+ Guide video per Wordpress [video tutorials] - December 12, 2008

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

  5. GeekLife » Blog Archive » 100+ Guide video per Wordpress [video tutorials] - December 12, 2008

    [...] 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). [...]

  6. 100 Tutorial Video Per WordPress - January 22, 2009

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

  7. 100+ Wordpress Video Tutorials, from Basic to Advanced : Speckyboy - Web Design, Web Development and Graphic Design Resources - January 24, 2009

    [...] 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). [...]

  8. 100+ Wordpress Video Tutorials, from Basic to Advanced | Rich Magazine - April 8, 2009

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

  9. 110+ Massive Wordpress Video Tutorial Collection | 1stwebdesigner - Love In Design - May 6, 2009

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

  10. Design-Tut+ » 110+ Massive Wordpress Video Tutorial Collection - June 4, 2009

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

  11. Descarga Directa - 101 videotutoriales de WordPress - October 7, 2009

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

  12. 110 wordpress video al??t?rmas? | Faydal?Web | Internetin Faydal? Yüzü - November 23, 2009

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

  13. buy SYD ty - October 21, 2011

    [...] fifty one electronic cigarette the shining oyster festival conjugated linoleic acid chris cooley best electronic cigarette review zanesville ohio adderall Reply With Quote   + Reply to Thread « Previous [...]

  14. | Kerugma Designs - October 27, 2011

    [...] · Your Extended Profile (more info than Name, Email, etc.) ›. · Random Quotes › (Advanced). · Using CSS and Blockquotes ›(Advanced). · Simple Page Edit in WordPress ›(Advanced). · Lost Password, Update User Info ›(Advanced). · Explanation of Categories, Posts, and Pages ›. Contact Us Contact us to discuss your needs! [...]

  15. 111 Helpful WordPress Tutorial Videos - January 24, 2012

    [...] 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). [...]

Leave a Reply


+ six = 7

CommentLuv badge

Design by Likoma with WOO on WP

css.php