size of picture with comments

size of picture with comments

Postby newtech1 on Fri Jan 30, 2009 10:03 am

In the postandcomments.template there is the following code:
Code: Select all
{if $poster->hasPicture()}
      {assign var=posterimg value=$poster->getPicture()}
      <img src="{$posterimg->getPreviewLink()}" alt="{$poster->getUserName()}" align="left" class="poster_avatar"/>
   {/if}

This code is for the purpose of putting the commenters picture if they have one under the User Profile. The size of the picture will be determined by the size it is under the User Profile.

Here is my question. Is there a way to enter a command in the above code to specify a smaller size for the picture? So, what I would like is that if someone makes a comment, the picture that shows up next to the comment is much smaller than the picture that shows up under the User Profile.
newtech1
 
Posts: 593
Joined: Thu Oct 13, 2005 12:02 am
Location: Seattle, WA, USA

Re: size of picture with comments

Postby jondaley on Sun Feb 01, 2009 9:18 am

You can simply specify the width or height of the image. The download time will be the same - ie, if they use a gigantic picture, it will take forever to download, but I suspect in this case, just specifying the width in the img tag will be all you need.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: size of picture with comments

Postby newtech1 on Tue Feb 03, 2009 4:58 pm

Gigantic pictures are not an issue for me, because I give guidelines on the size of the user profile image ahead of time. It's just that they are too big when posted along side a comment.

Putting in width and height tags works great!!!!
Richard D'Andrea Dover
http://www.christianblogsites.com
newtech1
 
Posts: 593
Joined: Thu Oct 13, 2005 12:02 am
Location: Seattle, WA, USA


Return to Templates

cron