WordPress Plugin: Wavatars

By Shamus
on Dec 17, 2007
Filed under:
Projects

520 comments

wavatars.jpg

Overview:

Wavatars is a plugin that will generate and assign icons to the visitors leaving comments at your site. The icons are based on email, so a given visitor will get the same icon each time they comment. It livens up comment threads and gives people memorable “faces” to aid in following conversation threads. It’s also fun.

Features:

  1. Wavatars can generate 956,384 different shapes in 57,600 different color combinations for a total of 55,087,718,400 (55 billion) unique Wavatars. Yeah, you should have plenty. You’ll run out of human beings (or hard drive space) long before you run out of Wavatars.
  2. The icons are generated on-the-fly. You can adjust the desired size of the icons.
  3. For easy deployment, icons will automatically preceed the commenter’s name. You can set HTML to come directly before and after the icon (to put it inside of a <DIV> tag, for example) or you can control the placement of the icons manually if you don’t mind adding a single line of PHP to your theme.
  4. Wavatars are based entirely on email and are thus very portable. The same email will result in the same Wavatar, even on different sites, so users will have the same icon on all Wavatar-enabled sites. (Assuming, or course, that there are other Wavatar-enabled sites. I don’t know if anyone will want this plugin or not.)
  5. This plugin also supports Gravatars. If you like, it can show the Gravatar for a given user (if available) and fall back on their Wavatar only if they don’t have a Gravatar set up. This means users can choose to set up a unique icon for themselves, and if they don’t, they will be assigned a unique Wavatar. This is a great system that lets people personalize if they want, yet still provide a decent icon for the lazy or apathetic.

Installation

  1. Download the plugin.
  2. Copy it onto your website in the wordpress /plugins folder. Then enable the plugin. That’s it. Wavatars will instantly appear for all posts (even old ones) on your blog. If you don’t like how the image looks within your theme, read on…

The administration panel is under Options » Wavatars. You can adjust the size of the Wavatars, and assign HTML to come before and after each image to help nudge it into place. Each image is also set with the CSS “wavatars” class. On this site, I don’t have any HTML prefix or suffix, and instead just added these lines to my CSS:


.wavatar {
float: left;
padding: 3px;
background: #fff;
margin-top: -25px;
margin-left: -25px;
margin-right: 5px;
}

If that still doesn’t give you enough control over wavatar placement and you don’t mind editing your theme, just turn off automatic placement and add the line wavatar_show($comment_author_email); to your comment loop wherever you want the image to appear.

Your mileagle may vary. It all depends on your installed theme.

Note that the plugin requires that your install of PHP support the GD library. If it doesn’t, the Wavatars won’t show up and you’ll get a warning in the Wavatar admin panel. You can still use this plugin to display Gravatars, even if the GD library isn’t available.

This is the first release. You could even go so far as to call it “beta” if you want to be formal about it. It’s only been tested on one server (this one) so far. Please leave bug reports and questions in the comments below.

Download Wavatars v1.0.0

Enjoyed this post? Please share!

FIVE HUNDRED!20520. There are now n+1 comments, where n is a ridiculous number.

From the archives:

1 2 3 4 5 6 8

  1. […] 和 Wavatars plugin,如果留言者没有注册 Gravatar […]

  2. Yax says:

    I love wavatars. I can’t tell you how happy I am when I see my fanged/sunglasses-wearing wavatar. Thanks.

  3. PetMono says:

    ok, testing…

  4. PetMono says:

    i was testing to see if my gravatar was working and disappointed it did because i want a wavatar!

  5. PetMono says:

    it is working on my site and looks great! thanks shamus. two questions…

    1) the directories created (cache, wavatar) are world writer (757) and i suppose that if i change back to 755 = no more gravatars added. right?

    2) in my recent comments, all the gravatars are the same for everyone. i am using wp v2.5.1

  6. Lex says:

    Mah wavvy

  7. Just want to see what my wavatar would look like

  8. helena says:

    what does mine look like?!?!

  9. helena says:

    hm i’ll try another one

  10. helena says:

    how about this?

  11. xxfish says:

    what does my wavvie look like

  12. […] Theme edits no longer necessary (doesn’t hurt if you already did edit it) (This and the previous thanks to Shamus’s nice Wavatar plugin) […]

  13. Starla says:

    Must find out my Wavatar!

    ….wait a minute…. I have a Gravatar…. poop.

  14. Starla says:

    Just another test. This email address definatly doesn’t have a Gravatar!

  15. Cherta says:

    Hah! I like it.

  16. testing says:

    1, 2, 3

  17. Joey says:

    Sorry, nevermind…

  18. qwer says:

    testing my wavatar

  19. qwer2 says:

    another test here

  20. Tim says:

    this is a test to see how this works!

  21. […] ahora Gravatar ha implementado una nueva función inspirado en 3 grandes plugins; Identicon, Wavatar y Monsterid. En la cual, usando el servicio de Gravatar podras crear un avatar a partir de la […]

  22. JaceMan says:

    Installed today, wavatars worked, gravatars did not. I applied Miral’s patch and then wavatars no longer worked either. Where there had been an image, only the text ‘wavatar’ now remains.

  23. Cynthia says:

    Hi,

    I am getting the following errors:

    Warning: Invalid argument supplied for foreach() in /hsphere/local/home/dropnby/sunflowerexpress.com/blog/wp-admin/includes/plugin.php on line 244

    It cleared up once I de-activatd the plug-in.

    Please let me know what I can do to fix this. Thanks.

  24. sg says:

    Will I like it..?

    Hey, not bad! It kind of looks like me.

  25. StefanC says:

    I hope I am not so angry as my wavatar.

  26. Chris says:

    Let’s see, if gravatar plays in now, I hope you have disabled it so I can check what my wavvy looks like.
    Thanks for your work, it looks nice combined with gravatar on my wp-blog.

  27. Chris says:

    Too bad it took my gravatar first, I’ll try now with my alternative email…

  28. smily says:

    Hehe perhaps you should set up a test form so people can see what their wavatars look like without clogging up your comment system. And now that I’ve said that i wonder what mine will look like…

    edit: nooo why is mine blue? not girly enough!
    p.s. i like this edit comment thingy

  29. Smelly says:

    Hmm…. wonder what mine is..
    EDIT: Cool…I look tired!

  30. Sullyaaa says:

    LOl. whats mine…
    EDIT: Lol its KEWL

  31. […] quelli che non avessero ancora il proprio gravatar, il sistema è così sofisticato da costruire un wavatar, ovvero un mostriciattolo generato con un algoritmo a partire dalla vostra mail. Quindi, miei […]

  32. SimonSays says:

    I get the following error on my site when the plugin is installed and it goes away when I deactivate.

    Warning: Invalid argument supplied for foreach() in some private url stuff here plugin.php on line 244

  33. Lionel says:

    hi !
    First af all, Thank you for this plugin, I love it !

    I use wavatar on my wordpress blog but I have one question.
    There is one visitor who posted a comment when he didn’t have yet a Gravatar image.
    And now, he has one but it still displays the default image when he post again a comment. I want that it diplays its wavatar now.

    Can you help me please ?
    Tank you very much.

  34. […] blurry eyedness.  Sorry.  But please comment.  If only to see what cool little avatar the Wavatars plugin makes […]

  35. SDPFLSD says:

    OSDFOPSKDFPOSDKF

  36. […] One of the Geeknews articles recently topped 80+ comments and I figured it would be interesting to turn on Gravatars to see what popped up beside the names. However, most of the posts didn’t have Gravatars associated with their e-mail, so I’d either just turn it back off or end up having to add yet another a plug-in to enable autogenerating an avatar for those folks. I was leaning toward’s Shamus’ Wavatars. […]

  37. jason says:

    me too !

  38. peter says:

    I WONDER…….
    great idea

  39. Dude! says:

    Wowza!

  40. Sketchee says:

    Love Wavatars. I link back to this post in my comments to thank you and decided hey why not post here and see my wavatar =)

  41. Jake says:

    Testing

  42. Sheta says:

    I can’t access the Wavatars.php admin page. I get “Nothing found” and the title for Wavatars Options is showing as “optionspagename” in the Settings menu.

    Also, is there a way to set an image for a user, for example if I wanted to upload an image to represent a particular email address, in place of the Wavatar?

    Thanks. The Wavatars are adorable. :)

  43. Sheta says:

    I figured it out. Advice: In your installation instructions, specify to upload the folder contents “loose” into the plugins folder, NOT into the wavatars/plugins/ folder. That made all the difference. When I used a Wavatars folder, it broke all other plugin admin pages.

  44. […] heb besloten om voorlopig eens te testen met wavatar. Andere opties zijn WP_Identicon en […]

  45. opaopa says:

    testing

  46. Tomb says:

    Hi. I am using your plugin on my site. Along with a “recent comments” widget. Any suggestions how to remove the wavatars from the recent comment widget? And only make them display in the comment section? Please email me with an answer.. Example seen here: http://www.verklighetskrig.com/blogg/?p=66

  47. Me says:

    well, dammit. I do not have an “Options Wavatar” page showing, so I cannot use this.

    Dammit.

  48. Tim says:

    Great stuff!!

  49. Tim says:

    Another try

  50. ragman says:

    testin’

  51. Aughadan says:

    test

  52. hippie says:

    testing

  53. […] avatar separately on each site.  If you don’t want to use a Gravatar, you can select the Wavatar, Identicon or MonsterID options.  These are cool ways to convert an email or Internet address into […]

1 2 3 4 5 6 8

10 Trackbacks

  1. By Identicons,MonsterID 和 Wavatars on May 4, 2008 at 9:06 am

    […] 和 Wavatars plugin,如果留言者没有注册 Gravatar […]

  2. By WP_MonsterID :: Dammit Jim! on May 17, 2008 at 1:56 pm

    […] Theme edits no longer necessary (doesn’t hurt if you already did edit it) (This and the previous thanks to Shamus’s nice Wavatar plugin) […]

  3. […] Wavatar (Generated) […]

  4. […] ahora Gravatar ha implementado una nueva función inspirado en 3 grandes plugins; Identicon, Wavatar y Monsterid. En la cual, usando el servicio de Gravatar podras crear un avatar a partir de la […]

  5. […] quelli che non avessero ancora il proprio gravatar, il sistema è così sofisticato da costruire un wavatar, ovvero un mostriciattolo generato con un algoritmo a partire dalla vostra mail. Quindi, miei […]

  6. By One glove down… | Knit With Cat Hair on June 29, 2008 at 6:23 pm

    […] blurry eyedness.  Sorry.  But please comment.  If only to see what cool little avatar the Wavatars plugin makes […]

  7. […] One of the Geeknews articles recently topped 80+ comments and I figured it would be interesting to turn on Gravatars to see what popped up beside the names. However, most of the posts didn’t have Gravatars associated with their e-mail, so I’d either just turn it back off or end up having to add yet another a plug-in to enable autogenerating an avatar for those folks. I was leaning toward’s Shamus’ Wavatars. […]

  8. By Zomaar… » Gravatar (2) on July 21, 2008 at 5:48 am

    […] heb besloten om voorlopig eens te testen met wavatar. Andere opties zijn WP_Identicon en […]

  9. […] Visit […]

  10. […] avatar separately on each site.  If you don’t want to use a Gravatar, you can select the Wavatar, Identicon or MonsterID options.  These are cool ways to convert an email or Internet address into […]






This blog is powered by Wordpress and uses the High Roller theme by Shamus Young.