Return to Jive Software

764 Views 7 Replies Last post: Nov 4, 2009 3:09 AM by Brad Heller RSS
Curtis Stull Beginner 388 posts since
Sep 4, 2008
Currently Being Moderated

Oct 30, 2009 7:27 PM

Profile Picture upload issue

For our corporate picture the size is 110x140.  When uploading to SBS I'm forced to crop the photo to a square image.  This does not work for our needs.  The upload photo did not function this way in 2.5 but since moving to 3.0 it has caused may problems with our internal deployment.

 

How can I customize the cropping size?

crop_tool_issue.png

Tags: upload, profile_picture, crop
Expert 3,518 posts since
Jun 18, 2009
Currently Being Moderated
Nov 2, 2009 1:44 AM in response to: Curtis Stull
Re: Profile Picture upload issue

Hello Curtis,

 

I wrote up a little guide on this customization for someone once before: http://www.jivesoftware.com/jivespace/message/230580#230580

 

Please let me know if these steps don't work for you!

 

Thanks,

Brad

dantam12 Novice 28 posts since
Aug 24, 2009
Currently Being Moderated
Nov 2, 2009 9:22 AM in response to: Brad Heller
Re: Profile Picture upload issue

Hi, trying to give this a go on my Jive instance. Do I need to make changes to files on the Linux server or, as you've mentioned the admin console, where on there do I make changes to the ftl files on there?

 

ie.. extract from linked article : SBS uses these CSS rules to set up the cropping width and height. By default they're swapped (width: 160px; height: 120px;)

 

 

Thanks

Expert 3,518 posts since
Jun 18, 2009
Currently Being Moderated
Nov 3, 2009 8:20 AM in response to: dantam12
Re: Profile Picture upload issue

Hey there,

 

Sorry for the delayed reply on this. You don't need to edit anything directly on the file system. You can make the appropriate modifications via the Admin Console under System -> Settings tab -> Themes on the left. When you're editing a theme's FTL, to add custom CSS (as in this case) you can use /template/global/custom-css.ftl.

 

Please let me know if anything is unclear here!

 

Thanks,

Brad

Expert 3,518 posts since
Jun 18, 2009
Currently Being Moderated
Nov 3, 2009 8:43 AM in response to: Curtis Stull
Re: Profile Picture upload issue

Do you perhaps have Firebug installed with your Firefox? Can you please confirm that this rule is indeed getting picked up?

 

Thanks,

Brad

dantam12 Novice 28 posts since
Aug 24, 2009
Currently Being Moderated
Nov 4, 2009 2:26 AM in response to: Brad Heller
Re: Profile Picture upload issue

Using IE8, it looks like the theme is picking up.  However I still get a landscape cropping area, but the preview is now a vertical preview with the face squashed.

CroppedPhoto.PNG

However, when I click the import button it reverts to the landscape view again.

cropped2.png

 

Any thoughts..? Have I missed something?

 

Dan

Expert 3,518 posts since
Jun 18, 2009
Currently Being Moderated
Nov 4, 2009 3:09 AM in response to: dantam12
Re: Profile Picture upload issue

Hey Dan,

 

So I dove a bit deeper in to this. It looks like this has changed a little bit between 3.0.3 (what I originally wrote these instructions for) and 3.0.8. To do this in 3.0.8 it looks like you'll also need to change the JavaScript directly so you'll want to edit profile-avatar-crop.ftl. On line 55 and 56 you'll want to reverse these values such that it flips this to portrait. Also, you'll want to check the values of #cropbox to avoid hitting the condition you'll see there that overwrites your specified values.

 

Please let me know if anything is unclear or if you need more detailed instructions!

 

Thanks,

Brad

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.