Simple Local Avatars

描述

Adds an avatar upload field to user profiles if the current user has media permissions. Generates requested sizes on demand just like Gravatar! Simple and lightweight.

Just edit a user profile, and scroll down to the new “Avatar” field. The plug-in will take care of cropping and sizing!

  1. Stores avatars in the “uploads” folder where all of your other media is kept.
  2. Has a simple, native interface.
  3. Fully supports Gravatar and default avatars if no local avatar is set for the user – but also allows you turn off Gravatar.
  4. Generates the requested avatar size on demand (and stores the new size for efficiency), so it looks great, just like Gravatar!
  5. Lets you decide whether lower privilege users (subscribers, contributors) can upload their own avatar.
  6. Enables rating of local avatars, just like Gravatar.

屏幕截图

  • Avatar upload field on a user profile page

安装

  1. Install easily with the WordPress plugin control panel or manually download the plugin and upload the extracted folder to the /wp-content/plugins/ directory
  2. 通过WordPress的“插件”菜单激活插件
  3. If you only want users with file upload capabilities to upload avatars, check the applicable option under Settings > Discussion
  4. Start uploading avatars by editing user profiles!

Use avatars in your theme using WordPress’ built in get_avatar() function: https://codex.wordpress.org/Function_Reference/get_avatar

You can also use get_simple_local_avatar() (with the same arguments) to retreive local avatars a bit faster, but this will make your theme dependent on this plug-in.

常见问题

Does Simple Local Avatars collect personal data of website visitors?

No. Simple Local Avatars neither collects, stores, nor sends any PII data of visitors or avatar users on the host site or to 10up or other services.

评价

2023年8月29日 1 回复
When I activate this plugin, I can't add an image anymore in Elementor Pro which is a big problem. I get some errors on the console log related to the "media-audiovideo.min.js". The errors seem to indicate that there's an issue with trying to access the 'id' property of an object that is undefined. It usually happens when there are conflicts with other JavaScript codes.
2023年8月20日 1 回复
This should be in core! Such a simple action that this plugin does superbly!
2023年6月17日 1 回复
Ever try explaining Gravatars to a non-technical client? Good luck with that. This plugin gives us an easy way to add user profile avatars for our clients without them ever having to know a gravatar from a platypus.
2023年3月3日 1 回复
The support of the WordPress REST API is a lifesaver for me. Simple Local Avatars is the only avatar plugin I know of that supports the REST API.I used it in my React with WordPress Tutorial. Without it, the whole Tutorial wouldn't have worked.
阅读所有75条评价

贡献者及开发者

“Simple Local Avatars” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Simple Local Avatars”插件已被翻译至20种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Simple Local Avatars”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

2.7.6 – 2023-11-30

2.7.5 – 2023-05-15

2.7.4 – 2023-02-23

2.7.3 – 2023-01-16

2.7.2 – 2023-01-13

2.7.1 – 2022-12-08

  • Added: Added missing files from the last release and changed the readme file to fix the bullet points and added fullstops.

2.7.0 – 2022-12-08

2.6.0 – 2022-09-13

Note that this release bumps the minimum required version of WordPress from 4.6 to 5.7 and PHP from 5.6 to 7.4.

2.5.0 – 2022-06-24

2.4.0 – 2022-05-10

2.3.0 – 2022-04-25

2.2.0 – 2020-10-27

2.1.1 – 2019-05-07

  • Fixed: Do not delete avatars just because they don’t exist on the local filesystem. This was occasionally dumping avatars when WordPress uploads were stored elsewhere, e.g. a cloud service.

2.1 – 2018-10-24

  • New: All avatar uploads now go into the media library. Don’t worry – users without the ability to upload files cannot otherwise see the contents of your media library. This allows local avatars to respect other functionality your site may have around uploaded images, such as external hosting.
  • New: REST API support for getting and updating.
  • New: Use .org language packs rather than bundling translations.
  • Fixed: Avoid an ArgumentCountError.
  • Fixed: A couple of internationalization issues.

2.0 – 2013-06-02

  • Choose or upload an avatar from the media library (for users with appropriate capabilities)!
  • Local avatars are rated for appropriateness, just like Gravatar
  • A new setting under Discussion enables administrators to turn off Gravatar (only use local avatars)
  • Delete the local avatar with a single button click (like everywhere else in WordPress)
  • Uploaded avatar file names are appended with the timestamp, addressing browser image caching issues
  • New developer filter for preventing automatic rescaling: simple_local_avatars_dynamic_resize
  • New developer filter for limiting upload size: simple_local_avatars_upload_limit
  • Upgraded functions deprecated since WordPress 3.5
  • Fixed translations not working on front end (although translations are now a bit out of date…)
  • Hungarian translation added (needs further updating again with new version)
  • Assorted refactoring / improvements under the hood

1.3.1 – 2011-12-29

  • Brazilian Portuguese and Belarusian translations
  • Bug fixes (most notably correct naming of image files based on user display name)
  • Optimization for WordPress 3.2 / 3.3 (substitutes deprecated function)

1.3 – 2011-09-22

  • Avatar file name saved as “user-display-name_avatar” (or other image extension)
  • Russian localization added
  • Assorted minor code optimizations

1.2.4 – 2011-07-02

  • Support for front end avatar uploads (e.g. Theme My Profile)

1.2.3 – 2011-04-04

  • Russian localization

1.2.2 – 2011-03-25

  • Fix for avatars uploaded pre-1.2.1 having a broken path after upgrade

1.2.1 – 2011-01-26

  • French localization
  • Simplify uninstall code

1.2 – 2011-01-26

  • Fix path issues on some IIS servers (resulting in missing avatar images)
  • Fix rare uninstall issues related to deleted avatars
  • Spanish localization
  • Other minor under the hood optimizations

1.1.3 – 2011-01-20

  • Properly deletes old avatars upon changing avatar
  • Fixes “foreach” warning in debug mode when updating avatar image

1.1.2 – 2011-01-18

  • Norwegian localization

1.1.1 – 2011-01-18

  • Italian localization

1.1 – 2011-01-18

  • All users (regardless of capabilities) can upload avatars by default. To limit avatar uploading to users with upload files capabilities (Authors and above), check the applicable option under Settings > Discussion. This was the default behavior in 1.0.
  • Localization support; German included

1.0 – 2011-01-18

  • Initial release.