Friday, September 05, 2008     | Register
My Posts
 
  Forums  DotNetNuke  Smart-Thinker U...  Resize the users photo
Previous Previous
 
Next Next
New Post 3/12/2007 11:23 AM
  Greg
13 posts
4th Level Poster


Resize the users photo  (United States)
Rod,

I see that there is an option to specify the max height and width of the photo uploaded by a user. If I specify a size of 200x200, is there a way to shrink the image size down when I display it in the user directory to 100x100? I ask because I want the photo to be larger on the user detail page, but smaller when I display it anywhere else on the site.

Thanks!
 
New Post 3/14/2007 10:51 AM
  Rodney Joyce
2615 posts
www.DNNDir.com
1st Level Poster




Re: Resize the users photo  (N/A)
Hi,

The photo uploading is very primitive (it is a stopgap until the core allows this).

What I will do in the next UserProfile version is add a new token called [ImageURL] and this will just grab the image as is, and then you can wrap that in a img src=[ImageURL] height=200 width=200 (or smaller for other userprofile pages and lists). This might achieve what you are trying to do and will give you more control how the image is rendered (and tool tips etc).

Do you think that will help?



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

Smart-Thinker DotNetNuke Development Blog
 
New Post 3/16/2007 8:55 AM
  Greg
13 posts
4th Level Poster


Re: Resize the users photo  (United States)
That would work for me. If we could specify the max width of the photo that is uploaded.
 
New Post 4/26/2007 7:34 AM
  Murcel
52 posts
3rd Level Poster


Re: Resize the users photo  (N/A)

Rod,

that is explaining my question in another thread.

But it raises a new problem.

I can adjust the tempaltes to contain img src=[PROFILIMAGEURL] and works best as long as a user HAS a image. Because there is no validation like in [PROFILIMAGE], there will be a red x if the user doesn't support a pfoto.

Why don't you extend [PROFILIMAGE] like scot is doing it, with a [PROFILIMAGE:xxx] for the width of the picture.

BR

Marc

 
New Post 5/3/2007 10:47 AM
  Rodney Joyce
2615 posts
www.DNNDir.com
1st Level Poster




Re: Resize the users photo  (N/A)

Hi Marc,

Ok, I am probably going to be working on a minor UserProfile release in the next couple of days, I'll investigate...


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

Smart-Thinker DotNetNuke Development Blog
 
New Post 5/4/2007 1:02 PM
  Murcel
52 posts
3rd Level Poster


Re: Resize the users photo  (Germany)

thx rod

 
New Post 5/8/2007 3:11 AM
  Rodney Joyce
2615 posts
www.DNNDir.com
1st Level Poster




Re: Resize the users photo  (N/A)

 Inter-Tel wrote
Rod,

I see that there is an option to specify the max height and width of the photo uploaded by a user. If I specify a size of 200x200, is there a way to shrink the image size down when I display it in the user directory to 100x100? I ask because I want the photo to be larger on the user detail page, but smaller when I display it anywhere else on the site.

Ok, I have come up with quite a simple way around this problem which should satisfy most users (I am using it on PokerDIY myself). I am adding a new token in the latest version called "PROFILEIMAGESMALLURL" - it gets the URL of the profile image with a smaller "NoPhotoS.gif" file that looks better at 50*50 (you can replace this file with your own image).

 

So in all the lists and views I will use this token with a set width of 50. I am going to leave the profile photo as 100*100. You will need to use the PROFILEIMAGESMALLURL and PROFILEIMAGEURL tokens to get the URL of the image and then set the width manually with an IMG tag to what you want (as opposed to using the PROFILEIMAGE token which brings back the scaled image. Does that make sense? Try it after I have released the new version (tomorrow some time).


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

Smart-Thinker DotNetNuke Development Blog
 
New Post 5/8/2007 3:14 AM
  Rodney Joyce
2615 posts
www.DNNDir.com
1st Level Poster




Re: Resize the users photo  (N/A)

 murcel wrote

Rod,

that is explaining my question in another thread.

But it raises a new problem.

I can adjust the tempaltes to contain img src=[PROFILIMAGEURL] and works best as long as a user HAS a image. Because there is no validation like in [PROFILIMAGE], there will be a red x if the user doesn't support a pfoto.

Why don't you extend [PROFILIMAGE] like scot is doing it, with a [PROFILIMAGE:xxx] for the width of the picture.

BR

Marc

Hi Marc,

 

I THINK the new token will satisfy your requirements as well - just for the record, there IS validation on this token -PROFILIMAGEURL - it automatically returns the NoPhoto image if there is no profile photo. the new token will just look better at a smaller size - you can then replace the large and the small NoPhoto pics with your own so they match your sizes/style. Try it tomorrow and we can discuss it then.


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

Smart-Thinker DotNetNuke Development Blog
 
New Post 5/11/2007 8:37 AM
  Rodney Joyce
2615 posts
www.DNNDir.com
1st Level Poster




Re: Resize the users photo  (N/A)

Hi All,

 

The latest version of the UserGroups module has been released - it is a big update with better performance and a couple of new views like Latest Groups, Profile Groups and My Groups, as well as the Add to Groups support for the UserProfile module.

The smaller profile image is now possible with new tokens - see the "Cool New Players" on the PokerDIY home page - this is a smaller image and then it uses a bigger image on the actual profile page.


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...  Resize the users photo
© 2008 Smart-Thinker   |  Privacy Statement  |  Terms Of Use