Skip to Content Skip to Menu

🎉 Black Friday Sale! Great savings on Professional and Developer Memberships! Get 25% off now with code BLACK-FRIDAY-2026!

Change the user’s avatar

  • Latypov
  • Latypov
  • ONLINE
  • Posts: 47
  • Thanks: 4
  • Karma: 0
1 month 2 weeks ago #344658 by Latypov
Change the user’s avatar was created by Latypov
Hi. I wanted to change the user’s avatar. I wanted to upload my own avatar. But I couldn’t upload it. I checked the permissions. The user can create galleries and upload photos.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50843
  • Thanks: 8713
  • Karma: 1475
1 month 2 weeks ago #344663 by krileon
Replied by krileon on topic Change the user’s avatar
Do you want to upload an image specifically to their profile as the avatar or are you meaning the little gallery selector that's a part of the avatar field?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • Latypov
  • Latypov
  • ONLINE
  • Posts: 47
  • Thanks: 4
  • Karma: 0
1 month 1 week ago #344671 by Latypov
Replied by Latypov on topic Change the user’s avatar
When I want to change my avatar, I select the option to upload a new image. I select an image on my computer and click “Update,” but nothing happens.
I found the Configuration setting — Require Upload Image Approval — which is responsible for this.
Can we make it so that after uploading an image, the user receives a pop‑up notification saying that the image has been uploaded and is under moderation? Otherwise, they think the photo upload isn’t working.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50843
  • Thanks: 8713
  • Karma: 1475
1 month 1 week ago #344673 by krileon
Replied by krileon on topic Change the user’s avatar
There's a couple ways to go about this. You can add a new default pending image to the following folder then within your avatar field select it as the pending default to indicate a pending status.

/components/com_comprofiler/plugin/templates/default/images/avatar

Another option is to use CSS to indicate the state. We add the cbImgPictPending CSS class to the image if it's pending. Using this you can add any kind of styling you like or even use JavaScript to add another way to indicate pending status.

The alternative is you can use CB Auto Actions with the following to show a Joomla message after they update their profile and their avatar is pending.

Global
Triggers: onAfterUserAvatarUpdate
Type: Code
User: Automatic
Access: All Non-Moderators
Conditions
Field: Custom > Value
Custom Value: [avatarapproved]
Operator: Equal To
Value: 0
Action
Method: Message (Message Queue)
Code:
Code:
Your avatar is pending approval.

Generally I recommend the first option of just making an image to indicate their upload is pending.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • Latypov
  • Latypov
  • ONLINE
  • Posts: 47
  • Thanks: 4
  • Karma: 0
1 month 1 week ago #344675 by Latypov
Replied by Latypov on topic Change the user’s avatar
I understand how this can be implemented. I haven’t succeeded yet. I’ll try again later. Thank you for the technical support.

Please Log in or Create an account to join the conversation.

Moderators: beat, nant, krileon
Powered by Kunena Forum