Read before updating: How to Update Kunena Templates - More detail

Users unable to upload their own avatar - should have been posted to Kbee area

D Topic Author
New Member New Member
DJB's Avatar
DJB
  • Posts: 2
  • Thanks: 0

Users unable to upload their own avatar - should have been posted to Kbee area

5 days 31 minutes ago - 5 days 21 minutes ago
#18153
Hello,

I am using K6.4.12 and Kbee 6.1.5.

There appears to be a problem with the facility to upload a user's icon. The user can choose a new avatar image and upload it but when Save is pressed, the user is given the default icon.

This process has been tested in Aurelia and was not a problem when using that template.

Can you help me with this please?

With thanks
David
Last edit: 5 days 21 minutes ago by DJB.

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

cssyeah's Avatar
Moderator Moderator
  • Posts: 107
  • Thanks: 40

Re: Users unable to upload their own avatar - should have been posted to Kbee area

2 days 2 hours ago
#18154
Hi David,
Thank you very much for bug report. The error originated from our template. We have fixed and updated it in the download package. However, you can also edit and update the default.php file if you don't want to reinstall the template.
- Open the default.php file in "nts_kbee/layouts/user/edit/avatar/" folder.
- Go to line 40 and replace:
Code:
$this->doc->addScriptOptions('com_kunena.avatar_upload_url', KunenaRoute::_('index.php?option=com_kunena&view=user&task=upload&format=json'));
by
Code:
$this->doc->addScriptOptions('com_kunena.avatar_upload_url', KunenaRoute::_('index.php?option=com_kunena&view=user&task=upload&format=json&' . Session::getFormToken() . '=1', false));
- Save and try to change the avatar.

Kind regards,
UI/UX Designer - Web developer. (UI/UX design for T4 Framework, T4 Pagebuilder, GK Framework products...)

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

Time to create page: 0.218 seconds