Faces of Users – WordPress Plugin

Download Faces of Users at WordPress.org

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 ]

[facesofusers]

Larger with Monster IDs for missing Gravatars and names displayed [ facesofusers size=120 default=monsterid name=true ]

[facesofusers size=120 default=monsterid name=true]

Small with links [ facesofusers size=35 link=posts ]

[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

  1. Install plugin
  2. Add shortcode to content [ facesofusers ]
  3. 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

29 Responses to Faces of Users – WordPress Plugin

  1. May 13, 2010 Nicolas TAFFOREAU

    Hey ! This is a cool “gadget”. I’mg oing to test it on my blog. Thank you !

  2. May 15, 2010 Daniel

    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.

    • May 15, 2010 Matt McInvale

      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?

  3. May 15, 2010 Daniel

    Also the usernames below each person!!

    • May 15, 2010 Matt McInvale

      just added the name option for this.

  4. May 15, 2010 Daniel

    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.

  5. May 15, 2010 Daniel

    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.

  6. May 17, 2010 Uche Nwaobi

    I really like this plugin. It’s good job you did here.

  7. May 17, 2010 Uncle Che

    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 :)

    • May 18, 2010 Matt McInvale

      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

  8. May 18, 2010 vanessa

    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

    • May 19, 2010 Matt McInvale

      you can call the function directly in your template, do something like this in your footer.php file:

      < ?php echo facesof_users(); ?>

  9. May 18, 2010 Daniel

    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.

  10. May 19, 2010 Daniel

    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 :).

    • May 19, 2010 Matt McInvale

      change the default variable to wavatar.

  11. May 20, 2010 Matthews

    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

    • May 24, 2010 Matt McInvale

      do you have an example of where you’re using it? along with the shortcode you’re using?

  12. May 24, 2010 wcten

    How do I put this at sidebar, and just generate randomly like 20 avatars at a time.

    • May 24, 2010 Matt McInvale

      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.

    • January 29, 2012 Leroy

      +1

  13. May 24, 2010 Jaffasoft

    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.

  14. December 2, 2010 Daniel

    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.

    • December 2, 2010 Matt McInvale

      Have you tested to see if it works in its current form?

      • December 2, 2010 Daniel

        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.

  15. July 14, 2011 drew

    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!

    • July 14, 2011 Matt McInvale

      You’d have to modify the plugin to work with any other source of image.

  16. February 1, 2012 Leroy

    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?

    • February 1, 2012 Matt McInvale

      Currently there is not. If there’s enough interest, I’ll set aside some time and add that functionality.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.