I’ve recently been experimenting with community on WordPress, and I wanted to enable user registration on a WordPress site. This was easy enough, but once a user has registered there is no easy way for them to interact with the site, other than the way they normally would.
With WordPress, you can display authors in your sidebar, but there is not really a way to display profiles for registered users. So I ended up writing another plugin to handle this. The WordPress Users plugin creates a directory of user profiles on any page you specify on your site. Each user gets their own profile page that displays the date they joined and recent comments. It has support for Gravatars and permalinks. User links are nofollowed. You can also tell search engines to noindex, follow the directory pages. Also, there are plenty of hooks to style it yourself with your theme CSS file.
The WordPress Users page is here, and you can download the WordPress Users plugin here. I hope you find it useful. Let me know of any problems or questions.
very goooood
thanks
I have a big question!
How do I make it not show the Editors in the users page?
thank You!
I’m not sure what you are referring to.
Oh, if you are referring to the ‘edit’ link, you can get rid of it. You should know it only displays to the admin though.
To get rid of the ‘edit’ link, you can use conditional tags in your page template to exclude it from that page or take it out of your page template all together.
No, I meant for the WordPress Editors to not show in the Users page and only Subscribers come out in the users page for example : http://doman.com/users
I see. I would like to add controls for that, but until then you can modify it yourself if you want.
To modify it yourself, open up wp-users.php and go to line 73. Modify it to read like this.
if($curauth->user_level == 0) {
That will only show subscribers, which are user level 0. That’s the easiest way. Anything else will be more complicated naturally. I hope that helps.
Otherwise you can wait for an upgrade, and keep in mind when you do upgrade, it will wipe out any changes you make yourself.
Yea man, Thanks!
and I do hope to see an update soon because many people are starting to use this plugin!
Is it possible to use a profile photo from the plugin ‘user photo’ in place of a gravitar? I am completely new to WordPress and I am having trouble figuring out how to do this.
Thanks for your help!
Yea Christian I wanted to know that too man!
It’s not possible at this time, but I will consider adding it to a future version.
Thanks Jonathan,
If I were to attempt this myself, do you know where I would begin?
Looking forward to future versions, and thanks for your help
yea where would we begin?
I would recommend waiting for the upgrade.
Hi Jonathan,
I’ve noticed two odd things about this plugin.
One is that every new user gets indented, which seems like it will inevitably lead to page display problems. Seems like each entry should be on a separate line.
The other is that any text that is put on the page appears below the users (which isn’t the end of the world but it would be nice to be able to put text on top of the page), and if the last user does not enter a description, there is no line break between the user’s entry and that text. You can see what I’m talking about here:
http://growurself.com/news/?page_id=378
Also, I had added a tag before the avatar for each entry because I thought it looked better to have a bit of space between them. Of course because of the upgrade that’s gone. Easy enough to put back, but hopefully if you could fix he indenting thing you could also put just a bit of space between entries.
Thanks!
If anything is displaying incorrectly, it’s probably because of the way your current CSS is set up. You can add the space yourself through your CSS. If you’re not sure how, there are lots of resources out there on how to use CSS.
Thanks Jonathan,
I did notice right away that there is no wpu-user (or wpu- anything else) class in the site’s css. I guess I have to add that. I’m sure I’ll figure it out if that’s all it is.
John
Alex and Christian, I just added support for “User Photo” profile images. Check it out and let me know what you think.
This is now 0.9. The 1.0 release will have options for which users are displayed although it’s more complicated than I originally thought so it may take a while.
Alex, I just updated the plugin again and added support to display users by role. I hope that works for you.
Yes it worked!
OMG you’re a genius!
Don’t know how to thank you!
I will Donate once I get my PayPal back
AWESOME! Thanks a ton Jonathan, that is EXACTLY what I was looking for. This plugin is fantastic, thanks for the update!!!
Hi
could there be an option to split the subscriber..or authors atc into sub groups. eg cat owner/dog owner or business/customer etc
Just a bit more flexibility. Awesome by the way
Plus, is there a plugin where individuals within the directory can be rated by other registered subscribers?
Hello, I am very pleased to find your plugin. I would, however, like to include more of the profile statement. Also, I am using the Cimy User Extra Field to extend my user profiles. Is there any way that I can add these extra fields? I am very new to this type of coding.
I am working on the options for the user profile. I’m not planning on including any compatibility with Cimy User Extra Field. I’m glad you find it useful.
I am currently using your plugin and I think it is great! I am using “Extended Profile” plugin by DiSo: http://diso-project.org and would like to be able to have those other fields show also.
But you said you would not be supporting Cimy User Extra Field, would it be the same for Extended Profile plugin too?
Again very cool plugin!
I have no plans to support any other plugins at this time. Thanks for using my plugin. I’m glad you like it!
Ok, fair comment… sorry I missed this. Can you post a sample ‘Members page’ that shows all members, then a link from each member to their own profile page showing all fields. Thanks, Jonathan.
I’m not sure what you mean. That’s exactly what the plugin does.
Cimy EF provides a means to input user data, but I’m trying tro spit it out again on a page. I’m thinking of a members page that lists all members with an avatar. Clicking on each member shows a new page with all the extra fields data for that member. I have studied the readme file that clearly shows how tro ‘build’ this, but as a poor programmer, it’s not so easy. I guess i need a profile template already built, or at least a framework to start on. Thanks for any advice.
Is the Users plugin meant to complement the functionality of UserExtra? I got all the userextra fields setup when I want but no idea how to create a page that displays a directory listing.
It does not support the UserExtra plugin. All you do is create a new page in WordPress and enter the ID of the page in the settings for WordPress Users.
Im not sure I follow what you mean by “it does not support”. I tried to make a new page called “Members” but how do I incorporate the php code that this tutorial suggests
http://www.likoma.com/setting-up-a-memberuser-directory-in-wordpress/
I am aware the above tutorial is for WordPress 1.x so that is why Im so confused. Oh, and I am still unsure where to find usermeta or if i even need it.
As far as I can tell that tutorial has nothing to do with my plugin.
Ah, okay. It seems google poured me into here while I was searching for my solution since cimy is mentioned. Sorry.
Hi, I would like to have the users listed horizontally & then wrap to a new line once the theme width has been reached, how would I go about this?
Tim
For those of you using this great plugin AND Cimy User Extra Fields, this is the way for display the Cimy Extra Fields:
1. Go to /plugins/wordpress-users/wp-users.php
2. Add these lines in bold:
$html .= “ID) . $concat . “uid=$curauth->ID\” title=\”$curauth->display_name\”>$curauth->display_name“;
$value = get_cimyFieldValue($curauth->ID,’YOUR-CIMY-FIELD’);
$html .=cimy_uef_sanitize_content($value);
$html .=”\n”;
3. Enjoy it
Hi Jon,
First off, great plugin! I’m really glad you were able to implement this idea so well. Anyway, I’d like to show the user profiles in a nicer view. Is it possible to add CSS to accomplish this? Are you planning on building in support for this soon?
Thanks,
Daniel
@Daniel, the answer is yes. If you read the source code of the page you will see that the plugin calls in two CSS classes that are not assigned in your theme’s stylesheet. Just add them with whatever properties you want to assign to the class (IIRC one is wpu-user).
HTH,
John Nasta
Great plug-in, exactly what I was looking for. I want to make some modifications though. If you could point me in the right direction, I would appreciate it.
In the member list I want to display the member’s first name, last name and some other fields. What do I need to modify in the wp-users.php source code to do this?
Can you update the wonderful pugin so that a member can be listed by location. I have a regional blog and want members to find other members in the country.
Is this possible?