Skip to content

Installing Custom User Avatars

Upload

  1. Unpack the download.
  2. Copy the UserAvatars folder into extensions/Others/ of your Paymenter installation, so that this file exists:

    extensions/Others/UserAvatars/UserAvatars.php
    

Instead of copying the folder yourself, you can upload the zip file in the admin area: open Extensions, then Available Extensions, switch to the Ready to Install / Upload tab and click Upload Extension. Paymenter accepts zip files up to 10 MB there and places the extension in extensions/Others/UserAvatars/.

Enable

  1. In the admin area, open Extensions, then Available Extensions.
  2. Switch to the Ready to Install / Upload tab.
  3. Find the row UserAvatars and click Install, then confirm.
  4. Paymenter opens the extension's edit page. Switch on Enabled and save.

The extension creates no database tables and runs no migrations.

Avatars are saved in storage/app/public and served from /storage. If public/storage does not exist yet, create the link from the Paymenter root:

php artisan storage:link

The web server user must be able to write to storage/app/public.

Warning

Avatar URLs are built from APP_URL in your .env file (APP_URL + /storage/...). If APP_URL is wrong, uploaded pictures do not load.

Update

Replace the extensions/Others/UserAvatars folder with the new version, or upload the new zip with Upload Extension. Uploaded avatars are not stored in the extension folder, so they are kept.

Uninstall

  1. In the admin area, open the Extensions list and edit the UserAvatars entry.
  2. Switch off Enabled and save to disable it, or click Uninstall Extension to remove the entry.
  3. Delete extensions/Others/UserAvatars if you no longer need the files.

Warning

Disabling or uninstalling does not delete uploaded pictures or the saved avatar paths. To remove them, delete storage/app/public/avatars and the rows in the properties table with the key profile_avatar_path.