View Single Post
  #12  
Old 09-01-2008, 06:34 AM
  coppercup's Avatar 
coppercup coppercup is offline
 

Senior Member
  
Join Date: Mar 2007
Location: Oklahoma
Posts: 117
 

Default Re: free Dynamic Images module released

Not sure about the errors without digging deeper. If you applied the patch file via the administration, you can open the actual patch file with a text editor and verify that all of the lines of code that were supposed to be changed were indeed changed. For instructions on how to read patch files, see the How To Install Patches FAQ here:

https://secure.qualiteam.biz/customer.php?area=faq&target=view_faq_question&sub ject=536870928

As for the ability to size the thumbnails to a specific height and width, yes you can. Open skin1/product_thumbnail.tpl and find this line of code:

Code:
{thumb file="$tfile" width="$image_x" link="false" hint="false" overlay_position="$overlay_position" overlay="$overlay" sharpen="$sharpen" get_image_path="$get_image_path" html="class=\"$class\" alt=\"`$alt`\""}

After the width="$image_x" declaration add:
Code:
height="100" crop="true"

Change the "100" to your desired thumbnail height. Note that $image_x is the value you set for thumbnail widths in the Admin Settings. The crop declaration forces the image to be resized to the new dimensions while maintaining the original proportions.

For more information about the available parameters, see the comments at the top of this file: include/templater/plugins/function.thumb_imp.php.

Hope this helps.
__________________
Happy coding!
Fritz
x-cart 4.1.10

Copper Cup Images Print, Web & Multimedia Design
www.coppercupimages.com
Reply With Quote