Support

  1. marver
  2. General
  3. Monday, March 10 2014, 10:48 AM
Hello,

When I upload an avatar, I can give in the width and height of the image in the backend. I use the avatar-field to let members upload there company logo. What would be the best way to have this set up. Because is I upload the image now, it wil 'zoom' and crop etc. and the logo shows up ugly. Hope you know what I mean. What I can come up with is heaving set the image to a max-width and height auto? But is there a way set this?
Thanks,
Martijn.
Accepted Answer
admin Accepted Answer
Admin
Hi,
in file /administrator/components/com_jsn/helpers/fields/image.php at line 139 and at line 149 replace:
$foo->image_ratio_crop = true;

with
$foo->image_ratio = true;


With this you can set the max-width and max-height of image with "Upload with User Crop & Webcam" disabled
if you don't want max height set this parameter on 10000 (or impossible value that you like).

You must disable (if enabled) Upload with User Crop & Webcam option because this works only when you have valid crop ratio
  1. more than a month ago
  2. General
  3. # Permalink
marver Accepted Answer
Pro
Works great now, thank you!
  1. more than a month ago
  2. General
  3. # 1
marver Accepted Answer
Pro
Hello,
One more question about this one... the change overwrites if update takes place. Can I make a template override somehow?
Thank you,

Martijn
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Yes, when you update easy profile you will make these changes.
  1. more than a month ago
  2. General
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.