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 Avatar creation width

10 years 8 months ago
Licenses:
JomSocial Expired

Hi,
i want to change widht and height of avatars on creation page. I want avatars to be created from the original photo to have 600px*600px (big avatar).

How can i do?
Alex

10 years 8 months ago
Licenses:

HI, Alessandro.

Can you tell me a bit more?
Avatar is usually a small square... where you want to have 600x600 avatar?
Could you add a printscreen?


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 7 months ago
Licenses:
JomSocial Expired

i want to have the big avatar in the profile page. if i modify css the image appears in low quality so i need to change the avatar creation so to have a good image.

alex

10 years 7 months ago
Licenses:

Hi, Alessandro.

Edit this file:

ROOT/components/com_community/defines.community.php in line 33
Change value here: define('COMMUNITY_SMALL_AVATAR_WIDTH', 64); from 64 to 600.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 7 months ago
Licenses:
JomSocial Expired

Hi Michal,
the image is still created in 64*64.

Alex

10 years 7 months ago
Licenses:

Hi, Alessandro.

Ok, you'll need to hack two core files to achieve what you want.

But first in the same file as before change values for:

define('COMMUNITY_STREAM_STYLE', '1');
define('COMMUNITY_AVATAR_MINIMUM_WIDTH', 128);
define('COMMUNITY_AVATAR_MINIMUM_HEIGHT', 128);
/* do square avatar for profile page */
define('COMMUNITY_AVATAR_PROFILE_WIDTH', 160);
define('COMMUNITY_AVATAR_PROFILE_HEIGHT', 160);
define('COMMUNITY_AVATAR_RESERVE_WIDTH', 200);
define('COMMUNITY_AVATAR_RESERVE_HEIGHT', 200);

Then edit this file:

ROOT/components/com_community/helpers/photos.php in lines 97 and 98.

Next change this file:

ROOT/components/com_community/libraries/photos.php in line 236.

(WARNING! Core file hack! Please, make safe copy of edited file. It means also that this file will be overwritten during upgrade, so please make a safe copy of customized file as well. Some core hacks could not working with future JomSocial releases and/or cause issues that will be not supported)

And finally you can do an override for this file:

ROOT/components/com_community/templates/default/profile.uploadavatar.php

copy it to:

ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them)

edit file and change values around line 91 to 101.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Alessandro
10 years 7 months ago
Licenses:
JomSocial Expired

Solved,
thank you

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