English (United States) English (United Kingdom)
Thursday, May 17, 2012

Smart-Thinker DNN Forums
Smart-Thinker DNN Forums

Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service. We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service. We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  Smart-Thinker U...  Increase Profile Image Size Limit?
Previous Previous
 
Next Next
New Post 11/18/2008 8:15 AM
  bpro
10 posts
4th Level Poster


Increase Profile Image Size Limit?  (United States)

Is there a way to increase the profile image file size limit beyond 999 KB?  People don't want to take the time to, or don't know how to compress their images and most digital cameras will produce images larger than 999 KB.  This creates a barrier when creating a profile.

 
New Post 11/18/2008 1:43 PM
  Rodney Joyce
3229 posts
www.DNNDir.com
1st Level Poster




Re: Increase Profile Image Size Limit?  (Australia)

Hmm,  can you make a Feature Request for this and I'll make it bigger in the next version. I wanted to limit it because I did not think anyone would want to be sending a meg+ up and down the wire! I think Facebook has a client on the PC that shrinks the image before uploading, but adding and extra digit will allow this.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 11/18/2008 6:08 PM
  Steve J.
60 posts
3rd Level Poster


Re: Increase Profile Image Size Limit?  (United States)

Rod,

Even if they upload a pic that is a meg, won't it just resize it to whatever you've specified?  If it's that simple, it would great to add another digit to that, because it is an issue for people.

Also, is there a way to make it only size down so it won't distort a smaller picture if someone uploads something already below the limit?

Thanks,
Steve

 
New Post 11/18/2008 11:32 PM
  Rodney Joyce
3229 posts
www.DNNDir.com
1st Level Poster




Re: Increase Profile Image Size Limit?  (Australia)

 Steve J. wrote

Even if they upload a pic that is a meg, won't it just resize it to whatever you've specified?  If it's that simple, it would great to add another digit to that, because it is an issue for people.

Also, is there a way to make it only size down so it won't distort a smaller picture if someone uploads something already below the limit?

Yes, it resizes it, but on the server, so it's got to shunt that meg over the wire (I'm pretty sure FB do some sneaky resizing on the PC using a client). I wasn't aware that uploading a picture smaller than the dimensions caused problems? Are you saying if the height and width is 100 * 100 it resizes to this or stays the same as is?


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 11/19/2008 4:11 AM
  Steve J.
60 posts
3rd Level Poster


Re: Increase Profile Image Size Limit?  (United States)

You are correct FB has a really slick plugin that resizes before you upload - it would be nice but I doubt you want to open that can of worms.  It would be cool if a bunch of DNN module developers got together with an open source solution for that that had an API everyone could plug into.  There are plenty that would benefit from that sort of solution.

What I was saying in my other comment was that if you have the width set to 400px and you upload a 300px picture it will stretch it rather than leave it at 300px.

Thanks,
Steve

 
New Post 11/26/2008 4:04 PM
  bpro
10 posts
4th Level Poster


Re: Increase Profile Image Size Limit?  (United States)

I needed a quick fix for this so I tried a hack workaround.  I added a bit of javascript to the resource file for the page that manages the file size loacted at:  \desktopmodules\Smart-Thinker -UserProfile\App_LocalResources\Settings.ascx.resx.  If you add the javascript to the localization code for 'Resource Name:plrblShowAudit.Text', when the settings page loads for the module the javascript will change the max length of the field from 3 to 4 and allow you to set a larger limit.  I used 'Resource Name:plrblShowAudit.Text' because it loads after the max field length code, which needs to be loaded in order for the javascript to work when it executes.

It's not pretty, but it worked

<script type="text/javascript" language="javascript">
var d = document.getElementById("dnn_ctr380_ModuleSettings_Settings_txtFileSize");
d.setAttribute("maxLength", 4);
</script>

 
New Post 12/30/2008 3:00 PM
  Rodney Joyce
3229 posts
www.DNNDir.com
1st Level Poster




Re: Increase Profile Image Size Limit?  (Australia)

This has been fixed in the latest release (4.3.15)


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Smart-Thinker U...  Increase Profile Image Size Limit?
Top Threads Minimize
In the past 1 week, we have 0 new thread(s) and 0 new post(s)
In the past 1 week, we have 0 new thread(s) and 0 new post(s)
Print  

Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker