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.

Ravatars

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

Revision History

Version 1.0.1

  • Initial release.

Advanced Tricks

If you get a memory error

Image manipulation functions are very memory intensive. If you get a memory error, try reducing the size of your source images by lowering the resolution or cropping them into smaller parts. You can also increase PHP's memory_limit.

Using ravatar_show ()

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

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

This would cause the Ravatar 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 ravatar_get ()

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

ravatar_get(email, size);

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

Random Ravatar Field

Put this code in your theme:

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

It will generate a field of 100 random ravatars, which is cool. This is how I generated the ravatar screenshot. It's also a great way to quickly test your source images.

Requires: 2.0.2 or higher
Compatible up to: 2.7
Last Updated: 2008-5-20
Downloads: 4,873

Ratings

4 stars
4.8 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.

100,1,1
100,1,1
100,2,2
100,1,1