Likoma's Latest
Comments
- Chat on Leslie Hom
- WordPress Tutorial: Creating a simple post (2.6.1) on WordPress Tutorial: Creating a simple post (2.6.1)
- WordPress Tutorial: Image Captions and Text Alignment | Likoma on WordPress Tutorial: Uploading images and adding captions (2.6.1)
- Lynn Stofle on Synchronized Swimming Marin
- WordPress Tutorial: Uploading images and adding captions (2.6.1) | Likoma on WordPress Tutorial: Image Captions and Text Alignment
Recently
- WordPress Tutorial: Creating a simple post (2.6.1)
- WordPress Tutorial: Uploading images and adding captions (2.6.1)
- Body Solution
- Stop Loss Alliance
- Things to Consider when Choosing WordPress as a CMS
- WordPress 2.6 Launched
- NextGen Gallery: upload_max_filesize
- WordPress Tutorial: Image Captions and Text Alignment
- Tudla
- New Heights Company
Extended Profile
By Bradley Charbonneau | Filed under Plugins, Tutorials, Help, 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:





February 15th, 2007 at 3:18 pm
[…] Extended Profile Help Video Explore posts in the same categories: Help […]
May 17th, 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.
June 26th, 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.
June 27th, 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.
June 27th, 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.
June 27th, 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.
June 27th, 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
June 27th, 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.
June 27th, 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…
July 13th, 2007 at 2:18 pm
What plug-in are you using to get the “Subscribers-Only” checkbox in the Page Status?
Thanks,
–
Tim
July 16th, 2007 at 5:12 pm
Tim: I’m using the Edwards Subscribers Only plugin.
September 13th, 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 !!!
September 13th, 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.
November 30th, 2007 at 1:19 pm
[…] 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 […]
December 28th, 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.
January 2nd, 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.
January 7th, 2008 at 6:15 am
Hi,
This looks great, is it tested on an MU install ?
January 15th, 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.
January 23rd, 2008 at 8:49 am
Is there a way to sort the list by company instead of user_nicename?
January 23rd, 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.
April 27th, 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!
May 26th, 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?