WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Wavatars

Wavatars will generate and assign icons to the visitors leaving comments at your site. It can optionally show Gravatars as well.

Revision History

Version 1.1.3

  • Fixed bad encoding which would prevent wavatars from appearing if the rating was NOT blank. If the admin does not specify a rating, the rating field is omitted.
  • Fixed a typo on the admin panel.
  • The wavatar url is now URL encoded.
  • The image tag no longer uses the pointless "border tag, and it is now properly closed.
  • Removed extra (pointless, harmless) repeated calls to strtolower ().

Thanks to Gavin Lambert for many of these changes.

Version 1.1.2

  • Made several small changes to comply with the changes at gravatars.com. Appended .jpg to the $md5 hash, switched to using the new (shorter) field names.
  • Fixed bug where the plugin was inserting wavatars in places it shouldn't, such as RSS comment feeds and in sidebar wigits. The auto-placement will now ONLY place icons when viewing a single post or a page.
  • When placing icons manually within their theme, users should use wavatar_show($comment->comment_author_email) as opposed to wavatar_show($comment_author_email), as the eariler versions directed. The latter will work in some situations but fail in others, and so the former is more correct. The readme and the admin panel have been updated to reflect this.
  • The admin panel will now list how many wavatars are in the cache.

Version 1.1.0

  • Fixed bug where setting AVATAR_SIZE to an odd number would cause PHP to pass floating-point values to imagefill (), which is not a good idea.
  • Fixed bug where gravatars were always requested at 60x60, instead of the size defined in the admin panel.
  • Added the function wavatar_get (email, size), which will return the url of the requested avatar instead of displaying it. This can be useful if you want to use the image in other ways, such as making it the background of an HTML element. You could also use this if you need to display the image in a rectangular area instead of a square.
  • Added option for controlling the rating of gravatars. (G, PG, R, X)
  • Added options for how to handle users who leave the email field blank. You can choose to give them a wavatar anyway, to give them a blank image, or show no image at all.
  • The link back to the wavatars homepage in the footer is now actually a link and not just text.

Version 1.0.1

  • Initial release.

Advanced Tricks

Using wavatar_show ()

If you place Wavatars by calling wavatar_show () manually, note that you can also specify an optional "size" argument to override the default. For example:

wavatar_show($comment->comment_author_email, '160');

This would cause the Wavatar to be 160x160 pixels, even if the default was set to some other value. You could do this to make admin icons larger, for example.

Using wavatar_get ()

If wavatar_show () STILL doesn't give you enough control, you can call:

wavatar_get(email, size);

And it will return the URL to the created image without writing anything to the page.

Random Wavatar Field

Put this code in your theme:

for ($i = 0; $i < 100; $i++)
    wavatar_show ($i);

It will generate a field of 100 random wavatars, which is amusing. This is how I generated the wavatar screenshot. It's also a great way to quickly test you source images if you're editing the composite parts to make new wavatar types.

Requires: 2.0.2 or higher
Compatible up to: 2.3.1
Last Updated: 2008-3-25
Downloads: 7,166

Ratings

4 stars
4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

67,3,2
50,2,1