Faces of Users – WordPress Plugin
Based upon the post Faces of CPAN and inspired by Jeffro’s request, I created a very small plugin that displays your registered users Gravatars. Using a shortcode, you can display all users anywhere on your site. The default output will display only users with a Gravatar at 80×80 pixels. You can change this with a couple of options.
Default Display [ facesofusers ]
Larger with Monster IDs for missing Gravatars and names displayed [ facesofusers size=120 default=monsterid name=true ]
Chris Daley
Foo Bar
Matt McInvale
Small with links [ facesofusers size=35 link=posts ]
The plugin will cache all data for 72 hours (or until a user profile is added/edited/deleted), this should help negate any performance issues with checking against Gravatar.
Usage
- Install plugin
- Add shortcode to content [ facesofusers ]
- Done!
Options
- size : integer; default is 80 pixels
- name : boolean; default is false
- default : string; default is none
change to display a default Gravatar for users without one
identicon, monsterid and wavatar currently supported
- link : string; default is none
change to display a link to the user’s website or posts page
posts or site currently supported
Change Log
- 5-24-10: Added link option
- 5-15-10: Added size, name & default options
- 5-12-10: Published plugin to WordPress.org
Hey ! This is a cool “gadget”. I’mg oing to test it on my blog. Thank you !
Good that someone has made one of these, i’ve been looking for one for ages. Most of my users do not have a gravatar is there a way that you could include also Wavatar if ppl not having gravatar. I hope so. Almost every person out of my 500+ members and they do not have a Gravatar.
check wordpress.org for the updated plugin, should do everything you need now. how are things working with 500 users? can you send me a link?
Also the usernames below each person!!
just added the name option for this.
Woow over you got onto that quick. The link is on my name in this comment post. I’ve had about 70 users sign up and the other ones i brought there usernames and email across from another subscription page i had. They don’t “use” the site much as such because know one has been able to login. I want to make a cummunity page with your new plugin. Right now wordpress is not showing me new plugins i upload to the plugins folder in the manage plugins in the dashboard. If you want to take a look i welcome u to login my site as admin and i will make a page specially for your plugin. Just email and i will give you the details.
Hey if your really active at adding functions to this plugin a selection to put a ‘profile’ link below their name could be good as well. Thanks for doing the Wavatar thing. I look forward to seeing it in action.
I really like this plugin. It’s good job you did here.
This plugin made me happier than I can ever explain. I have been searching for this for a very long time. Just one more step (I will pay for if you want me to) and you get a 100% rating.
Looking at the codes, I can see that you have skipped people who don’t have a gravatar. If there no better option?
This (http://wordpress.org/extend/plugins/user-photo/) is a popular user photo plugin for wordpress. I will very much be delighted if your plugin can provide some support for it. Let’s say instead of skipping people without a gravatar, it should use userphoto_the_author_thumbnail() to fetch their uploaded photo.
To go further, you can even set a callback for wordpress’s default avatar system and include it in the options page. Some users may want to show a “cartoon” rather than nothing
new options allow for default gravatar icons if the email address isn’t registered. i want to keep the plugin working with only core wordpress/gravatar functionality.
if you’d like a custom implementation, shoot me an email and we can discuss that: mcinvale@binarym.com
Hi! i’ve been looking for a plugin like this one and i’m so happy i found this, but i want to display the avatars in the footer area.. is it possible?
Thank you.
Vanessa
you can call the function directly in your template, do something like this in your footer.php file:
< ?php echo facesof_users(); ?>I got mine installed and on a community page. It show seven of my total 546 users registered. Not sure why but since 0.0.2 i can no longer see a settings in WP for faces. No usernames or profile link below the user. Which kind of would make it useful as ppl view these type of thing with want to know information about ppl they are viewing. I set as default for my users to have a Wavatar as i said most my users not web savvy and have no Gravatar, avarta images at all. This plugin is a good start and can be a verg good one as it grows. Thanks so much for making it.
My sillyness! I put the short code in. And oh my i have 546 users monsters on one page. I prefer Wavatars but we are getting somewhere
.
change the default variable to wavatar.
That was dumb of me. Thanks…
Hi there.
Can someone help me with this plug-in, I have installed it but the problem is one, it does not show the uploaded image. I have reduced the size to the required dimensions, i.e. 80 X 80 pixels.
Your help will be appreciated
do you have an example of where you’re using it? along with the shortcode you’re using?
How do I put this at sidebar, and just generate randomly like 20 avatars at a time.
This is actually two requests, neither of which are setup yet.
I will add them both to the request list and add them to the plugin is there are enough requests for them.
+1
this is so cool. I second the pull 20 or so or something similar into a sidebar.
My links show in image and link name though it goes to the author for example http://www.example.com/blog/author/username/.
If it goes to the users profile it would be very good though in essence my users will probably want to go to the Simple:Press Forum Plugin profile as a member because I’m going to allow member photos from facebook in there and other details for the members to fill and share info with but that is probably not something most users of your plugin might want so little unusual request. But SPF is very popular and getting very good. It also has Buddypress profile as well.
Thanks for update.
Now that Multi Site is being used i have found that i have created a new site and would like to pull the faces of only the people set as contributor for that site. I guess this would bring all the roles into it the plugin.
I request that this could be an upgrade idea if you’d like to implement it.
Have you tested to see if it works in its current form?
Hi, Thanks for a quick comment.
Yes, i tried the shortcode as below and it brings in my entire users from across the Network.
[facesofusers size=120 default=wavatar name=true link=posts]
Most my current users are set as subscribers.
Hey this is a sweet plugin, but I have a question… I’m using facebook connect to create new users, and it automatically creates an avatar using their facebook pic. any way to use that image as their display pic? otherwise it just looks like this: http://ceoteam.us/ceo-team-members/
Thanks!
You’d have to modify the plugin to work with any other source of image.
Hi I like the idea of a plugin but is there any code to add for it to work as a widget or inside a text widget?
Currently there is not. If there’s enough interest, I’ll set aside some time and add that functionality.