Ravatars 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 is easy to customize the avatars so that they match your site’s topic or theme. It also makes comment threads easier to follow when people have memorable “faces.”
This plugin is based on Shamus Young’s Wavatars plugin.
And a shout out to Gregory Weir for bugfixes. Thanks!
Features:
You can customize the avatars your site will display to match your theme. Just upload source images to the
wp-content/plugins/ravatars/parts directory. Ravatars will create your custom avatars by choosing a random image and then cropping a random
part of the image
The icons are generated on-the-fly. You can adjust the desired size of the icons.
Easily integrates with avatar enabled themes
For easy deployment in WordPress pre 2.5, icons will automatically precede 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.
The same email will result in the same Ravatar every time, assuming that the source images don’t change the same. If you want avatars that are unique to your site, all you need to do is change the source images.
This plugin also supports Gravatars. If you like, it can show the Gravatar for a given user
(if available) and fall back on their Ravatar 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 Ravatar. It’s a system that lets people personalize if
they want, yet still provide a decent icon for the lazy or apathetic.
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:
This would cause the Ravatar to be 160×160 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.
Copy it onto your website in the wordpress `/plugins` folder. Then enable the plugin. That’s it. Ravatars 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…
To change the source images, replace the files within wp-content/plugins/ravatars/parts with your own images. Supported image types are .jpg and .png. Its hard to say how many images you should upload. The minimum for a good set of ravatars is probably around 40, but you will want more if you have a lot of people posting and you want avatars to be unique for everybody. Try to get images with a lot of distinctive elements in them.
If you are using WordPress 2.5+ you need to have an avatar enabled theme, and ravatars will automatically show up.
If you are using WordPress pre 2.5, read on for tips on how to position ravatars on your site.
The administration panel is under Options » Ravatars. You can adjust the size of the Ravatars, and assign HTML to come before and
after each image to help nudge it into place. Each image is also set with the CSS “ravatars” class, so you can fine-tune the avatar position in your CSS file.
If that still doesn’t give you enough control over ravatar placement and you don’t mind editing your theme, just turn off automatic
placement and add the line ravatar_show($comment->comment_author_email); to your comment loop wherever you want the image to appear.
Your mileage may vary. How it will look depends largely on your current theme.
Note that the plugin requires that your install of PHP support the GD library. If it doesn’t, the Ravatars won’t show up and you’ll get
a warning in the Ravatar admin panel. You can still use this plugin to display Gravatars, even if the GD library isn’t available.
Ravatars
توسط grokcode
گزارش خرابی
اگر با مشکلی مواجه شدهاید،
لطفاً آن را با جزئیات برای ما ارسال کنید.
🔒 برای ثبت گزارش خرابی باید وارد سایت شوید.
ورود / ثبت نام به سایت
Ravatars 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 is easy to customize the avatars so that they match your site’s topic or theme. It also makes comment threads easier to follow when people have memorable “faces.”
This plugin is based on Shamus Young’s Wavatars plugin.
And a shout out to Gregory Weir for bugfixes. Thanks!
Features:
wp-content/plugins/ravatars/parts directory. Ravatars will create your custom avatars by choosing a random image and then cropping a random
part of the image
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.
(if available) and fall back on their Ravatar 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 Ravatar. It’s a system that lets people personalize if
they want, yet still provide a decent icon for the lazy or apathetic.
Revision History
Version 1.0.1
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:
This would cause the Ravatar to be 160×160 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:
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:
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.
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…
To change the source images, replace the files within wp-content/plugins/ravatars/parts with your own images. Supported image types are .jpg and .png. Its hard to say how many images you should upload. The minimum for a good set of ravatars is probably around 40, but you will want more if you have a lot of people posting and you want avatars to be unique for everybody. Try to get images with a lot of distinctive elements in them.
If you are using WordPress 2.5+ you need to have an avatar enabled theme, and ravatars will automatically show up.
If you are using WordPress pre 2.5, read on for tips on how to position ravatars on your site.
The administration panel is under Options » Ravatars. You can adjust the size of the Ravatars, and assign HTML to come before and
after each image to help nudge it into place. Each image is also set with the CSS “ravatars” class, so you can fine-tune the avatar position in your CSS file.
If that still doesn’t give you enough control over ravatar placement and you don’t mind editing your theme, just turn off automatic
placement and add the line
ravatar_show($comment->comment_author_email);to your comment loop wherever you want the image to appear.Your mileage may vary. How it will look depends largely on your current theme.
Note that the plugin requires that your install of PHP support the GD library. If it doesn’t, the Ravatars won’t show up and you’ll get
a warning in the Ravatar admin panel. You can still use this plugin to display Gravatars, even if the GD library isn’t available.
سوالات متداول
قیمت:
رایگان
نگارش
آخرین انتشار
31 اردیبهشت 1405
آخرین بروزرسانی
1 ماه پیش
نصب های فعال
10+
نگارش وردپرس
وردپرس 2.0.2+
تست شده از نسخه
وردپرس 2.7
نگارش PHP
-
تگ ها
avatars comments gravtars icons posts
نسخه ها
0 نسخه
نیاز به پشتیبانی دارید ؟
کارشناسان ما آماده پاسخگویی هستند
افزونه های مرتبط
Cache by Folium
★★★★☆ 84.0/۱۰۰
(10 امتیاز)
Fast, easy to use cache for WordPress with option for up-to 3 separate CDN’s – for js, css & images from 3 providers. Added
Dienstplan
Dienstplan is a self-hosted shift and duty roster planner for WordPress. It is built for organisations that run on volunteers — fire departments, emergency
Cashu For WooCommerce
A secure Cashu payment gateway for your WooCommerce store. This plugin adds a checkout that accepts Lightning or Cashu ecash, paying out to your
Quote & Cut
Quote & Cut connects WooCommerce to the Quote & Cut cloud service for laser-cutting and sheet-optimization workflows. With this plugin you can: Accept DXF
Simple Stopwatch Easy to Use
Simple Stopwatch Easy to Use lets you embed a fully functional stopwatch anywhere on your WordPress site using a simple shortcode. Features: Start, Stop,
RoidNet URL Shortener and Link Tracker
A lightweight, secure, and self-hosted solution to shorten URLs, track link clicks, and generate WhatsApp chat links. RoidNet URL Shortener and Link Tracker is