Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/10up/simple-local-avatars
Adds an avatar upload field to user profiles. Generates requested sizes on demand just like Gravatar!
https://github.com/10up/simple-local-avatars
avatars local-avatars wordpress
Last synced: 27 days ago
JSON representation
Adds an avatar upload field to user profiles. Generates requested sizes on demand just like Gravatar!
- Host: GitHub
- URL: https://github.com/10up/simple-local-avatars
- Owner: 10up
- License: gpl-2.0
- Created: 2016-02-02T01:05:26.000Z (almost 9 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-22T11:21:04.000Z (7 months ago)
- Last Synced: 2024-05-22T12:31:03.258Z (7 months ago)
- Topics: avatars, local-avatars, wordpress
- Language: PHP
- Homepage: https://wordpress.org/plugins/simple-local-avatars/
- Size: 3.85 MB
- Stars: 201
- Watchers: 57
- Forks: 39
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- php-awesome - Simple Local Avatars - 给 Wordpress 增加 Avatar 功能,就像 Gravatar 一样 (类库 / 未归类)
README
# Simple Local Avatars
![Simple Local Avatars](https://github.com/10up/simple-local-avatars/blob/develop/.wordpress-org/banner-1544x500.jpg)
[![Support Level](https://img.shields.io/badge/support-stable-blue.svg)](#support-level) ![Required PHP Version](https://img.shields.io/wordpress/plugin/required-php/simple-local-avatars?label=Requires%20PHP) ![Required WP Version](https://img.shields.io/wordpress/plugin/wp-version/simple-local-avatars?label=Requires%20WordPress) ![WordPress tested up to version](https://img.shields.io/wordpress/plugin/tested/simple-local-avatars?label=WordPress) [![GPLv2 License](https://img.shields.io/github/license/10up/simple-local-avatars.svg)](https://github.com/10up/simple-local-avatars/blob/develop/LICENSE.md) [![Dependency Review](https://github.com/10up/simple-local-avatars/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/dependency-review.yml) [![E2E Tests](https://github.com/10up/simple-local-avatars/actions/workflows/cypress.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/cypress.yml) [![Linting](https://github.com/10up/simple-local-avatars/actions/workflows/lint.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/lint.yml) ![PHPCompatibility](https://github.com/10up/simple-local-avatars/actions/workflows/php-compatibility.yml/badge.svg) [![PHPUnit](https://github.com/10up/simple-local-avatars/actions/workflows/test.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/test.yml) [![CodeQL](https://github.com/10up/simple-local-avatars/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/github-code-scanning/codeql) [![WordPress Playground Demo](https://img.shields.io/wordpress/plugin/v/simple-local-avatars?logo=wordpress&logoColor=FFFFFF&label=Playground%20Demo&labelColor=3858E9&color=3858E9)](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/10up/simple-local-avatars/trunk/.wordpress-org/blueprints/blueprint.json)
> Adds an avatar upload field to user profiles. Generates requested sizes on demand just like Gravatar!
## Features
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](.wordpress-org/screenshot-1.png "Screenshot of Simple Local Avatars section within a User Profile")
## Installation
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. Activate the plugin through the 'Plugins' menu in 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: [http://codex.wordpress.org/Function_Reference/get_avatar](http://codex.wordpress.org/Function_Reference/get_avatar "get_avatar function")
You can also use `get_simple_local_avatar()` (with the same arguments) to retrieve local avatars a bit faster, but this will make your theme dependent on this plug-in.
## Frequently Asked Questions
### 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.
## Support Level
**Stable:** 10up is not planning to develop any new features for this, but will still respond to bug reports and security concerns. We welcome PRs, but any that include new features should be small and easy to integrate and should not include breaking changes. We otherwise intend to keep this tested up to the most recent version of WordPress.
## Contributing
Please read [CODE_OF_CONDUCT.md](https://github.com/10up/simple-local-avatars/blob/develop/CODE_OF_CONDUCT.md) for details on our code of conduct and [CONTRIBUTING.md](https://github.com/10up/simple-local-avatars/blob/develop/CONTRIBUTING.md) for details on the process for submitting pull requests to us.
## Like what you see?