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

9 years 2 months ago
Licenses:
JomSocial Expired

Goodmorning

i am writing about Jomsocial 3.

I would like to know which files are used to upload avatar for each user. i think that there are 2 differents file for uploading an avatar after registration and from the profile.

What i want to do is to hack this two files to change widht and height of the avatar.

Another question, how is it possible to delete the possibility to resize an avatar by the user? I want to delete that editable square that appears on a picture and that the avatar will be all the picture size.

alex

9 years 2 months ago
Licenses:

Hi, Alessandro.

Hmm... JomSocial 3 is not supported anymore.
But if you insist to continue using it... then ok, but in case of issue or found bugs you'll be asked to upgrade to latest version... or you'll be on your own.

Now, your case is quite easy. Just edit this file:

ROOT/components/com_community/defines.community.php

Avatar values are in lines: 33:

define('COMMUNITY_SMALL_AVATAR_WIDTH', 64);

Line 296:

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);

As for your second request... I need to check your site as on my test site I have latest version. JS 3 is history now :)
Credentials you provided doesn't work - site is unreachable: ba.kraffen.com


- 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
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