Ravatars will generate and assign random icons to the visitors leaving comments at your site. It can optionally show Gravatars as well.
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.
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:
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.
If ravatar_show () STILL doesn't give you enough control, you can call:
And it will return the URL to the created image without writing anything to the page.
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: 8 years ago
Active Installs: 50+
Got something to say? Need help?