Leira Letter Avatar

描述

Letters Avatar allows you to automatically generate user avatar based on their initial letters.

Fully customizable from the admin area. You will be able to edit avatar settings like shape, background color, etc.

Compatibility

This plugin is compatible with any properly coded theme. However, some plugins may cause conflicts with this one. If you find an issue with your theme, please create a post in the community forum.
So far this plugin is compatible with:
* BuddyPress
* Ultimate Member
* wpDiscuz
* BuddyPress Profile Completion
* YITH WooCommerce Advanced Reviews
* Flyzoo Chat
* BuddyBoss

Contributors

This plugins has been possible thanks to:
* Jose Luis Chavez – Icons, banners and designs
* ivankuraev – Support for russian characters

Development

You can contribute to this plugin development on Github

屏幕截图

  • You will find a new menu item “Letter Avatar” under “Settings” menu.
  • A new option “Letter” will be available for “Default Avatar.”
  • Comments list with generated user letter avatar.
  • Users list with generated user letter avatar.
  • Comments in Dashboard with letter avatar.
  • Comments in frontend with letter avatar.

安装

  1. Upload the plugin files to the /wp-content/plugins/leira-letter-avatar directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Letter Avatar screen to configure the plugin
  4. Happy coding 🙂

常见问题

What is the format of the generated avatars?

You can select from .svg (Recommended), .png and .jpg.
To use .png and .jpg you will need the GD image library installed to work.

Which format should I use?

The recommended format(.svg) is the best option. This option generates the images with the best quality and the resource required to generate it is very low.
However, there are some cases where you will need to user .png or .jpg, for example, if you’re sending avatar images in your emails.
There is a know issue that email clients like gmail use a proxy to show the images and at this point don’t support .svg format.

How are avatars generated?

The plugin generates the avatar automatically using defined config.
Avatars are generated only once, so your site performance won’t get affected

How are avatars stored?

Avatars are stored in your uploads folder.

Will I be able to select my own letters?

No. The plugin automatically generates the image with the initial letters of your First name and Last name.

Can I use gravatar if the user has one?

Yes. There is an option in plugin settings that allows you to show user gravatar if available instead of letter avatar.

I see a black background in the avatars

Probably you’re using .jpg format to generate a round avatar. This format doesn’t support image transparency.
Use .png format instead.

评价

2024 年 9 月 18 日 3 回复
The plugin works great. You just need to keep track of the number of avatars created. When you delete a user, the avatars remain. Those who have many registrations need to know this. Perhaps the author will solve this issue in the future.
2023 年 2 月 2 日
Why this is not a feature in wordpress? Much other nonsense has been added in recent years…. This plugin is must have! Thanks to the options for the settings of colors and number of letters, I can “unfortunately” do not see a reason for feature requests. 😉 Phenomenal!
2022 年 2 月 28 日
Makes all of your comments a bit easier to identify, this should be built into WordPress it’s so good!

Wow

2021 年 7 月 25 日
Fantastic
2021 年 7 月 6 日
That’s a great plugin, thank you! PROS + integrates flawlessly with gravatar + ability to add custom color list + auto adjusts text color based on background color maintaining contrast + option to make letters bold + svg support CONS – no option for letter font size – no option for letter font family – missing predefined color palettes: pastel colors/black-and-white/ vibrant etc… Thanks!
阅读所有23条评价

贡献者及开发者

“Leira Letter Avatar” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Leira Letter Avatar」插件已被翻译至 5 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Leira Letter Avatar”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.3.9

  • WordPress 6.6 compatibility check
  • Improve text escape
  • Use wp_rand over php built-in rand function
  • Improve file handling using related wp functions

1.3.8

  • Use gravatar https url

1.3.7

  • Fix bug with php8 and $size variable (intval)

1.3.6

  • WordPress 5.7 compatibility check
  • Fix BuddyPress deprecated filter bp_core_avatar_default
  • Improve Gravatar image check method

1.3.5

  • Fix wpDiscuz issue with social avatars

1.3.4

  • WordPress 5.7 compatibility check
  • New filter leira_letter_avatar_image_content

1.3.3

  • Fix variable typo
  • Replace screenshot 4

1.3.2

  • Support for WP 4.9

1.3.1

  • Change deprecated method get_user_by_email in favor of get_user_by
  • Bug fix. Upon deactivation set avatar_default option back to mystery

1.3.0

  • Adding support for .png and .jpg image formats
  • Fix https avatar url issue

1.2.6

  • WordPress 5.6 compatibility check
  • Handle other plugins incorrect usage of um_user_avatar_url_filter filter

1.2.5

  • Fix random background color generation issue

1.2.4

  • Match plugin version with readme.txt version

1.2.3

  • Adding Github Actions automatic deploy
  • Adding Github Actions automatic update assets and readme file

1.2.2

  • Adding support for letters color
  • YITH WooCommerce Advanced Reviews compatibility

1.2.1

  • Bug fix incorrect avatar size
  • BuddyPress compatibility improved

1.2.0

  • Ultimate Member compatibility
  • wpDiscuz compatibility
  • Support for russian characters
  • New option to use gravatar if available
  • Rate us link in admin area footer
  • Some code refactored
  • Bug fixes

1.1.0

  • BuddyPress integration
  • CSS fix in admin area
  • Support link updated
  • Source code refactored
  • Screenshots description updated

1.0.0

  • The first plugin release