1. Ndmn518
  2. General
  3. Wednesday, August 28 2019, 11:26 AM
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.
admin Accepted Answer
Admin
Hi,
sorry but this is not possible natively
  1. more than a month ago
  2. General
  3. # 1
Ndmn518 Accepted Answer
Is this possible to use Kunena avatars?
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,
you can use Easy Profile avatar in Kunena but the opposite is not possible without create a template override in Easy Profile views
  1. more than a month ago
  2. General
  3. # 3
Ndmn518 Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 4
admin Accepted Answer
Admin
Yes, you need to customize the Easy Profile view to load kunena avatar (profile page, list users page and modules view)
  1. more than a month ago
  2. General
  3. # 5
Ndmn518 Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 6
admin Accepted Answer
Admin
Hi,
sorry but something like this it's a bit complex and it is something regards Joomla feature. We provide this type of support only to Basic/Pro members
  1. more than a month ago
  2. General
  3. # 7
Ndmn518 Accepted Answer
If i renew my subscription, will you help me right?
  1. more than a month ago
  2. General
  3. # 8
admin Accepted Answer
Admin
Hi,
of course.

NOTE: we have never done something like this, so maybe the solution can take until 2 days.
  1. more than a month ago
  2. General
  3. # 9
Ndmn518 Accepted Answer
Hi!

I renew my subscription

NOTE: we have never done something like this, so maybe the solution can take until 2 days.

Ok
  1. more than a month ago
  2. General
  3. # 10
admin Accepted Answer
Admin
Hi,
try to extract attached package and copy content in /templates/your-theme-folder/html/

you should have a structure like:
/templates/your-theme-folder/html/com_jsn/profile/default.php
/templates/your-theme-folder/html/com_jsn/list/default_user.php
/templates/your-theme-folder/html/com_jsn/list/table_user.php
/templates/your-theme-folder/html/mod_jsnusers/default.php
Attachments (1)
  1. more than a month ago
  2. General
  3. # 11
Ndmn518 Accepted Answer
Hello! At last had a time to test it.

1. In easy profile page avatar is changed to kunena. Thanks for your work.
2. So first problem is that you cant change avatar in easy profile edit page ??? Easy profile avatar is still "Easy profile's" avatar.
3. Is this posible to edit your avatar from easy profile page?
  1. more than a month ago
  2. General
  3. # 12
admin Accepted Answer
Admin
Hi,
sorry but this is not possible, anyway there is a workaround: with a plugin, after change the Easy Profile avatar, you can copy the avatar in another folder (I don't know where kunena store the avatars) and save in kunena user table the new avatar path, for example:
- Download, Install and Enable out Skeleton Plugin (you can find it at the end of page at http://docs.easy-profile.com/index.php/article/triggers)
- Open file /plugins/jsn/skeleton/skeleton.php
- Remove Sample Functions: triggerFieldAvatarUpdate, triggerProfileUpdate
- Write a function like this:
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();
}
}


NOTE: This code is not tested and not supported, it is only for example purpose.
  1. more than a month ago
  2. General
  3. # 13
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.