Simple Local Avatars

説明

現在のユーザーがメディア権限を持っている場合、アバターアップロードフィールドをユーザープロフィールへ追加します。Gravatar のように、要求されたサイズをオンデマンドで生成します ! シンプルで軽量です。

ユーザープロフィールを編集で、新しい「アバター」フィールドまで下にスクロールするだけです。プラグインはトリミングとサイズ変更を処理します !

  1. 他のすべてのメディアが保持される「アップロード」フォルダーにアバターを保存します。
  2. シンプルなネイティブインターフェイスを備えています。
  3. ユーザーにローカルアバターが設定されていない場合は、Gravatar とデフォルトのアバターを完全にサポートしますが、Gravatar をオフにすることもできます。
  4. 必要に応じて要求されたアバターサイズを生成します (そして、効率のために新しいサイズを保存します)。
  5. 権限の低いユーザー (購読者、寄稿者) が自分のアバターをアップロードできるかどうかを決定できます。
  6. Gravatar と同様に、ローカルアバターの評価を有効にします。

スクリーンショット

  • ユーザープロフィールページのアバターアップロードフィールド

インストール

  1. WordPress プラグインコントロールパネルを使用して簡単にインストールするか、プラグインを手動でダウンロードして、抽出したフォルダーを /wp-content/plugins/ ディレクトリにアップロードします。
  2. WordPress の「プラグイン」メニューからプラグインを有効化してください
  3. ファイルアップロード機能を持つユーザーのみがアバターをアップロードできるようにする場合は、「設定」 > 「ディスカッション」で該当するオプションをオンにします。
  4. ユーザープロフィールを編集して、アバターのアップロードを開始しましょう !

WordPress に組み込まれている get_avatar() 関数を使用して、テーマでアバターを使用します: https://developer.wordpress.org/reference/functions/get_avatar/

get_simple_local_avatar() (同じ引数を使用) を使用して、ローカル アバターを少し高速に取得することもできますが、これにより、テーマがこのプラグインに依存するようになります。

FAQ

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年12月16日
I like that it allows gravatar to continue to be used. If you set the local only option however all your existing avatars will be reset to the same avatar. People get used to their own avatars and these shouldn't change, they should be copied locally from gravatar when the option is set if local copies don't already exist. Croping also fails. Looks like I need to look for another plugin as this is no longer under development.
2023年8月29日 1 reply
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 reply
This should be in core! Such a simple action that this plugin does superbly!
77件のレビューをすべて表示

貢献者と開発者

Simple Local Avatars はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Simple Local Avatars” は20ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Simple Local Avatars” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

2.7.7 – 2023-12-13

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.