Support

Akeeba Ticket System

#37689 Where to find easysocial Avatar integration for Akeeba Ticket System Professional 5.1.0 ?

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Ticket System version
n/a

Latest post by nicholas on Wednesday, 07 September 2022 01:15 CDT

extonjaez

Hello

 

Please where to find the « Akeeba Ticket System - EasySocial avatar integration » plugin for Akeeba Ticket System Professional 5.1.0

https://www.screencast.com/users/extonjaez/folders/Default/media/90819788-8b75-4583-8c31-80e030314068

many thanks

Arnaud

System InformationPHP SettingsConfiguration FileFolder PermissionsPHP Information

Linux s22095112 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
mysql
10.2.44-MariaDB
utf8mb4_general_ci
utf8mb4_general_ci
None
No
8.1.9
Apache
fpm-fcgi
Joomla! 4.2.2 Stable [ Uaminifu ] 2-September-2022 20:41 GMT
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

nicholas
Akeeba Staff
Manager

We have not ported this plugin, nor are there any plans to do so. We only support using a Joomla Fields in the user profile as the source of the avatar with a fallback to Gravatar.

You should talk to the EasySocial people. They should either implement their own field plugin or let you sync the avatar with a field in the user profile. That's the preferred way to provide additional user profile information in Joomla 3.7 and newer.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

extonjaez

Is there an older version of this linked plugin or a draft of this plugin from several years ago (from joomla 1.6,2.5,3 ..? )) thank you

nicholas
Akeeba Staff
Manager

The old plugin — still available in ATS 4 — will NOT work with ATS 5, even if you update its code. As I told you, we changed how avatars work in ATS 5. We no longer go through plugins.

You would have to do two layout overrides.

  • administrator/components/com_ats/layouts/akeeba/ats/common/user.php => administrator/templates/YOUR_BACKEND_TEMPLATE/html/layouts/akeeba/ats/common/user.php
  • components/com_ats/layouts/akeeba/ats/common/user.php => templates/YOUR_FRONTEND_TEMPLATE/html/layouts/akeeba/ats/common/user.php

In both files find the line

$avatarUrl = Avatar::getUserAvatar($user_id, $avatarSize);

Change it to read

if (class_exists(\ES::class)) {
	$easyUser = ES::user($user->id);
	$avatarUrl = $easyUser->getAvatar();
}
$avatarUrl = $avatarUrl ?? Avatar::getUserAvatar($user_id, $avatarSize);

This would use the EasySocial avatar instead of whatever else you have configured in ATS.

Again, this is not an ideal solution. The best solution would be for EasySocial to provide a Field plugin for Joomla.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!