Gavatar - Multiple Sizes
I'm wondering why the
UserPhotoDefaultUrl function does not allow multiple sizes of the thumbnail size that it uses. I am aware that it uses
Garden.Thumbnail.Width to set the width, but what if I want to use the picture in two different scenarios which require two different sizes? For example, I want to use the gravatar image in the profile page which requires a width of 160px versus just the regular 50px thumbnail for discussions.
This is my current hack:
$DefaultWidth = C('Garden.Thumbnail.Width',50); SaveToConfig('Garden.Thumbnail.Width',250); echo UserPhoto($Builder, array('LinkClass' => 'ProfileMainImage', 'ImageClass' => 'ProfileMainImage')); SaveToConfig('Garden.Thumbnail.Width',$DefaultWidth);
I would like to see this changed in the next release if possible.