Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Change size of avatar groups

9 years 1 week ago
Licenses:
JomSocial Expired

Automatically the group avatar is generated with this size 160x160 but I need bigger 300x300.

I have changed the controller groups.php at 2199 line, the variable $imageMaxWidth = 160; for $imageMaxWidth = 300; but the avatar still with his initial size 160x160px

How I can change the size of the avatar?

9 years 1 week ago
Licenses:

Hi Angel.

you can find it at:
/components/com_community/defines.community.php around line 296

define('COMMUNITY_AVATAR_PROFILE_WIDTH', 160);
define('COMMUNITY_AVATAR_PROFILE_HEIGHT', 160);

Regards

9 years 6 days ago
Licenses:
JomSocial Expired

Hi Albertus,
I have changed it, but avatar sizes are still 160x160 . Thanks

9 years 5 days ago
Licenses:

Hi Angel,

you re-upload the avatar again. I logged in as jomsocial user, and I changing the avatar. here the result:
http://[yoursite domain]/images/avatar/e896131bab37af25212a0198.jpg

the size already 300 X 300

Regards

9 years 5 days ago
Licenses:
JomSocial Expired

Hi Albertus,

I upload the avatar in frontpage, not in edit profile. In frontpage the method to upload avatar is ajax and the size is defined in helpers/photos.php to 160x160. I changed this but the generated avatar is bad quality.
Please change the avatar in this url http://[yoursite domain]/editar-usuario/frontpage and you check the difference of avatar quality if upload in http://[yoursite domain]/editar-avatar

9 years 2 days ago
Licenses:
JomSocial Expired

Hi, I have been testing all the weekend, but I cannot fix it. Can you help me?

Thank you.

9 years 1 day ago
Licenses:

Hi Angel,

that only you need to changing the avatar image:
/components/com_community/helpers/photos.php at line 100

$imageMaxWidth = 300;
$imageMaxHeight = 300;

and
/components/com_community/defines.community.php line 296
define('COMMUNITY_AVATAR_PROFILE_WIDTH', 300);
define('COMMUNITY_AVATAR_PROFILE_HEIGHT', 300);

right click on avatar, and view image info. as you can see all those avatar that uploaded from http://[yoursite domain]/editar-usuario/frontpage or http://[yoursite domain]/editar-avatar already having 300px X 300 px

after that you need to build new CSS code for resizing any pages avatar.

Regards

9 years 1 day ago
Licenses:
JomSocial Expired

Hi Albertus,

I have all parameters like you have told me (/components/com_community/helpers/photos.php and /components/com_community/defines.community.php). But I already have the same problem.

If I upload the photo from http://[mysite domain]/editar-avatar, there is no problem. Pixels are correct, as you can see below:
www.toctocquienes.es/images/avatar/0fd25....png?_=1430236346668

In the other hand, If you do it from http://[mysite domain]/editar-usuario/frontpage, the avatar looks like 300px x 300px but as you can see the quality is much lower:
www.toctocquienes.es/images/avatar/d56d6...b0ece5d8f75173e0930b

Regards.

9 years 20 hours ago
Licenses:

Hi Angel,

could you please send that avatar pic for me? from your local/comp.
send it to:
This email address is being protected from spambots. You need JavaScript enabled to view it.

Regards

8 years 11 months ago
Licenses:

Hi Angel,

please give me time for this issue.

Regards

8 years 11 months ago
Licenses:

Hi Angel,

that because the avatar size at popup avatar upload less than 300 px. here the code to force it 300px
/components/com_community/controllers/profile.php line 446, change the code from

$width = $filter->clean($width, 'float');
$height = $filter->clean($height, 'float');
to
$width = 300;
$height = 300;

Regards

8 years 11 months ago
Licenses:
JomSocial Expired

Hi Albertus,

the problem is not fixed. I think it must be something related to the thumbnail. Everytime I try to upload a new avatar or edit it at popup avatar upload (with thumbnail option), the program set the thumbnail as avatar picture.

You can test it uploading a 300px avatar and then trying to edit your thumbnail.
http://[mysite domain]/editar-avatar

Thanks.

8 years 11 months ago
Licenses:

Hi Angel,

please edit:
/components/com_community/defines.community.php at line 298, change the value from 200 to 300

define('COMMUNITY_AVATAR_RESERVE_WIDTH', 200);
define('COMMUNITY_AVATAR_RESERVE_HEIGHT', 200);

Regards

The following user(s) said Thank You: Angel
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW