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.

Avatar upload not honouring COMMUNITY_SMALL_AVATAR_WIDTH constant

8 years 8 months ago
  • Wasim's Avatar
    Topic Author
  • Wasim
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 2
Licenses:
JomSocial Expired

When going to /profile/uploadAvatar - the thumbnail produced is 64x64px regardless if the COMMUNITY_SMALL_AVATAR_WIDTH is set different. The issue is:

com_community/controllers/photos.php - line 3725

if (!CImageHelper::createThumb($file['tmp_name'], $storageThumbnail, $file['type'], COMMUNITY_SMALL_AVATAR_WIDTH, COMMUNITY_SMALL_AVATAR_WIDTH)) {

Same thing in com_community/controllers/profile.php - line 1583
if (!CImageHelper::createThumb($file['tmp_name'], $storageThumbnail, $file['type'], COMMUNITY_SMALL_AVATAR_WIDTH, COMMUNITY_SMALL_AVATAR_WIDTH)) {

You need to add the constants like I have above. I'm not sure where else these constants are not honoured.

8 years 8 months ago
Licenses:

- 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
8 years 8 months ago
  • Wasim's Avatar
    Topic Author
  • Wasim
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 2
Licenses:
JomSocial Expired

Cool thanks, does that file you provided have any more fixes than the one I've stated above?

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