View Single Post
  #1  
Old 11-01-2006, 01:28 PM
 
Impact_1 Impact_1 is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 88
 

Default Need Help Completing a Mod for 4.1.3

Hey Guys, this is my first attempt at a MOD, I got it working for 4.0.19 but I need to change it for filesystem rather than calling from the database for 4.1.3 and was hoping some of you brainiacs could help. In return obviously I am sharing this very simple MOD

In skin1/customer/main/product.tpl

Change the call for product_thumbnail.tpl to product_thumbnail2.tpl

Create product_thumbnail2.tpl with the following code:

{* $Id: product_thumbnail.tpl,v 1.14 2004/06/24 09:53:29 max Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}<a href=#><IMG id="{$id}" src="{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$alt|strip_tags:false|strip}" border="0"
onclick="window.open('{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}', 'IS_pop','width={$image_x+$image_x+20},height={$im age_y+$image_y+50},menubar=no,location=no,resizabl e=no,scrollbars=no,status=no');"></a>{/if}

In 4.0.x this will create a simple "click on thumbnail for full-size pop-up" MOD

Unfortunately though in 4.1.3 I use the filesystem for all my images and this MOD calls from the database. Please can somebody tell me how to change this code to simply call up the image I am clicking on in a pop-up window?

Thanks and I hope this code helps out some people
__________________
Version: 4.1.3

One of the largest UK Suppliers of Car Modification Accessories
http://www.impact-styling.com
Reply With Quote