Hi!
How to disable resizing for gif images? Example upload 100x100 gif image for 100x100 avatar size, but in some reason animation is not working.
NOTE: we have never done something like this, so maybe the solution can take until 2 days.
public function triggerProfileUpdate($user,&$data,$changed,$isNew)
{
if($user->id && isset($data['avatar_path'])){
$avatar_path = $data['avatar'];
$ext = substr($avatar_path, -3);
copy(JPATH_SITE . '/' . $avatar_path, JPATH_SITE . '/media/kunena/avatars/users/avatar' . $user->id . '.' . $ext)
$db = JFactory::getDbo();
$query = 'UPDATE #__kunena_users SET signature = '.$db->quote('users/avatar' . $user->id . '.' . $ext). ' WHERE userid = '. (int) $user->id;
$db->setQuery($query);
$db->execute();
}
}