平台开发中,欢迎参与测试。你可以在 QQ群:1046115671 中与我们交流,或是直接在社区发帖

简易本地头像

帮助改进此插件的 简体中文 翻译~ 同时,你可以通过安装 WP-China-Yes 插件,并切换应用市场为“LitePress 应用市场”来接收翻译推送。

如果当前用户具有媒体权限,则将头像上传字段添加到用户配置文件。 像 Gravatar 一样根据要求生成所需的尺寸! 简单轻巧。

只需编辑用户个人资料,然后向下滚动到新的 “头像” 字段即可。 该插件将负责裁剪和调整大小!

  1. Stores avatars in the “uploads” folder where all of your other media is kept
  2. 具有简单的本机界面
  3. 如果未为用户设置本地头像,则完全支持 Gravatar 和默认头像-但还可以关闭 Gravatar
  4. 根据需要生成请求的头像大小(并存储新的大小以提高效率),因此看起来很像 Gravatar!
  5. 让我们决定低权限用户(订阅者,贡献者)是否可以上传自己的头像
  6. 像 Gravatar 一样对本地头像进行评级

屏幕截图

  1. 使用 WordPress 插件控制面板轻松安装,或手动下载插件并将提取的文件夹上传到 /wp-content/plugins/ 目录
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. 如果只希望具有文件上传权限的用户上传头像,检查设置 > 讨论下的适用选项
  4. 通过编辑用户个人资料开始上传头像!

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

您还可以使用 get_simple_local_avatar () (具有相同的参数)来更快地检索本地化身,但这将使您的主题依赖于此插件。

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.

评价

目前还没有评价

成为第一个“简易本地头像” 的评价者