[COLOR=red]THICKBOX MOD FOR V1.34r2 & 1.34r3
UPDATED 29/04/2007 - 01:00 GMT
****************************************
[/COLOR][COLOR=red][COLOR=seagreen]All my addittions from the following pages have been added to this post to [/COLOR][COLOR=seagreen]keep it all in one place
[/COLOR][/COLOR]This mod is a thickbox Javascript popup mod based on the 1.3.3 version created by Sculptingstudio
FULLY TESTED INSTALLED ON A CLEAN STORE WORKS IN IE7, FIREFOX 2
With Dynamic menu style or Emenu style., Images in Database or Images in file system
I have installed this mod in the same way to Default Blue & Aquarelle without a single problem, in less than 1 minute !!
-
Download and unzip the file attached to this post !
Follow the instructions below, we have already included some modified files in the zip to make it easier to install. No .tpl files are included so any current mods will not be over-written.
[COLOR=red][COLOR=seagreen][COLOR=red]DYNAMIC E-MENU FIX : - Now included by default below ![/COLOR][/COLOR][/COLOR]
********************************************************
The download contains a folder called customer, upload this to your chosen skin directory
Edit your main.tpl file and add the following 3 lines of code underneath {include file=“meta.tpl”}
```php
{if $settings.Modules.ads == ‘Y’}
{include file=“addons/ads/ads.tpl” location=“R” show_order=“A”}
{/if}
{/if}
[COLOR=Red]
[/COLOR]
```
[B]Next goto common_templates and edit image.tpl[/B]
Replace the entire following code
```php
[COLOR=green]{assign var="detailed_href" value="javascript:fn_open_popup_image('$image_index?object_type=detailed&image_id=`$images.detailed_id`&window=popup', `$images.detailed.image_x`, `$images.detailed.image_y` + 30);"}[/COLOR]
```
with the following
```php
[COLOR=red][COLOR=red]
[/COLOR][/COLOR][COLOR=red]{if $settings.General.images_location == "database"}
{assign var="detailed_href" value="$image_index?object_type=detailed&image_id=`$images.detailed_id`"}
{else}
{assign var="detailed_href" value="`$images.detailed.image_path`"}
{/if}
[/COLOR]
```
next change the following lines :
```php
{if $images.icon.image_type != 'application/x-shockwave-flash'}
{if $detailed_href}
[/COLOR]
{/if}
```
TO : [COLOR=red](scroll to see changes in red)[/COLOR]
```php
[COLOR=red][COLOR=black]{if $images.icon.image_type != 'application/x-shockwave-flash'}[/COLOR]
[COLOR=black]{if $detailed_href}[/COLOR]
[COLOR=black]
[/COLOR][COLOR=black]{/if}[/COLOR]
```
Then this section
```php
{if $detailed_href}
|
{$lang.view_larger_image} |
```
to the following : [COLOR=red](scroll to see changes in red)[/COLOR]
```php
{if $detailed_href}
[COLOR=black][/COLOR]
[COLOR=black][/COLOR]
[COLOR=black][/COLOR]
[COLOR=black][/COLOR]
[COLOR=black][/COLOR]
[COLOR=black]
[/COLOR] [COLOR=black]<[/COLOR]img src="{$images_dir}/view_larger.gif" width="12" height="12" alt="{$lang.view_larger_image}" border="0" /> |
[/COLOR] [COLOR=black]{$lang.view_larger_image} |
```
* ALL OF THE INFORMATION BELOW HAS ALREADY BEEN INCLUDED IN THE DOWNLOAD FILES, SKIP THESE STEPS IF YOU ARE UPLOADING THE ZIP !!!
*******************************************************
[B]next to stop your cellpadding being messed up edit thickbox.css and remove the following line completely[/B]
[COLOR=red]*{padding: 0; margin: 0;}[/COLOR]
Final Piece of the puzzle - * Already changed in the zip file *
edit skins/..../customer/products_pages/exceptions.js
Replace the following line (its near middle of entire code)
```php
[COLOR=seagreen]new_ref[id] = "javascript:fn_open_popup_image('"+image_index+"?object_type=detailed&image_id="+pr_i[id][row]['detailed_id']+"&window=popup', "+pr_i[id][row]['detailed']['image_x']+", "+pr_i[id][row]['detailed']['image_y']+"+ 30);"[/COLOR]
```
with this one if your [B]images are stored in the file system[/B]
```php
[COLOR=red]new_ref[id] = ""+pr_i[id][row]['detailed2']+""[/COLOR]
```
Or this one if your[B] images are stored in the database[/B]
```php
[COLOR=red]new_ref[id] = ""+image_index+"?object_type=detailed&image_id="+pr_i[id][row]['detailed_id']+""[/COLOR]
```
Next edit product_options.tpl
and add the following code as shown in red
```php
pr_i[{$id}][{$smarty.foreach.ii.iteration}-1]['detailed_id'] = '{$imag.detailed_id}';
[COLOR=red]pr_i[{$id}][{$smarty.foreach.ii.iteration}-1]['detailed2'] = '{$imag.detailed.image_path}';
[/COLOR]pr_i[{$id}][{$smarty.foreach.ii.iteration}-1]['options'] = '{$imag.options}';
```
[B]The above allows images that change with 'additional product options' to work correctly.
[/B]*******************************************************
My Sample product with sample images / options
Hope you all enjoy and thanks for the inspiration from [COLOR=red]sculptingstudio[/COLOR]