A plugin to assign profile picture of user with their name initials.
Image via [https://ui-avatars.com]
This plugin requires Craft CMS 4.0.0 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require bhashkar007/user-initials-photo
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for User Initials Photo.
This plugins automatically assign a user photo with their initials, when they are registered. The image is generated from UI Avatars. The initials generated in the photo are in following priority:
- Firstname Lastname
- Firstname
- Lastname
- Username
Whichever found first will be used as the initials.
To use the plugin make sure a volume is assigned in User Photo Location
in your User Settings.
By default the plugin assings Photos to new user only. To assign photos to old users too, uncheck Assign Images to New User Only
in Plugin Setting page.
To assign photos to all Users at once, Go to plugin section page and click Assign
.
NOTE: If you are updating plugin from v1.1.0
to v2.0.0
or above you must have to do a composer remove hashtagerrors/user-initials-photo
and then composer require bhashkar007/user-initials-photo
to get plugin setting and section page.
While there is not a lot to do in this plugin, but new ideas are always welcome. You can post your idea or request here
Brought to you by 360Adaptive Technologies