HighSlide Picture Zoom Mod

My first mod for the community:



See demo:

[url]http://vikjavev.no/highslide/[/url]



Download:

[url]http://vikjavev.no/highslide/download.php[/url]



Copy all js files to folder:

/yourskin/customer/js/highslide/



Copy images to

/yourskin/customer/images/highslide/ (f.ex. zoomin.cur)



Copy css to

/yourskin/customer/css/highslide.css



/----------------START ---------------/



@charset “UTF-8”;



/* HighSlide Styles /

@media screen

{



.highslide {

cursor: url(…/images/highslide/zoomin.cur), pointer;

outline: none;

}

.highslide-active-anchor img {

visibility: hidden;

}

.highslide img {

/border: 2px solid gray;/

}

.highslide:hover img {

/border: 2px solid white;/

}



.highslide-wrapper {

background: white;

}

.highslide-image {

border: 2px solid white;

}

.highslide-image-blur {

}

.highslide-caption {

display: none;



border: 2px solid white;

border-top: none;

font-family: Verdana, Helvetica;

font-size: 10pt;

padding: 5px;

background-color: white;

}

.highslide-loading {

display: block;

color: black;

font-size: 8pt;

font-family: sans-serif;

font-weight: bold;

text-decoration: none;

padding: 2px;

border: 1px solid black;

background-color: white;



padding-left: 22px;

background-image: url(…/images/highslide/loader.white.gif);

background-repeat: no-repeat;

background-position: 3px 1px;

}

a.highslide-credits,

a.highslide-credits i {

padding: 2px;

color: silver;

text-decoration: none;

font-size: 10px;

}

a.highslide-credits:hover,

a.highslide-credits:hover i {

color: white;

background-color: gray;

}



a.highslide-full-expand {

background: url(…/images/highslide/fullexpand.gif) no-repeat;

display: block;

margin: 0 10px 10px 0;

width: 34px;

height: 34px;

}



/
These must always be last /

.highslide-display-block {

display: block;

}

.highslide-display-none {

display: none;

}

}



/
----------------END---------------/



[SIZE=“5”]Modification:[/SIZE]



[SIZE=“4”]index.tpl[/SIZE]



search for

{include file=“scripts/form_scripts.tpl”}



insert after:



{
highslide START *}

{if $content == “product_details” || $content == “products”}



[COLOR=“Red”]


[/COLOR]{/if}

{* highslide END }



[SIZE=“4”]common_templates/image.tpl[/SIZE]



search for:

{if $show_detailed_link && $images.detailed_id}



edit code:

{if $show_detailed_link && $images.detailed_id}

{
highslide START }

{
assign var=“detailed_href” value=“javascript:fn_open_popup_image(‘$image_location$image_index?object_type=detailed&image_id=$images.detailed_id&window=popup’, $images.detailed.image_x+84, $images.detailed.image_y + 140);” }

[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] {
highslide END }

{/if}



search for:

{if $images.icon.image_type != ‘application/x-shockwave-flash’}

{if $detailed_href}



edit code:

{if $images.icon.image_type != ‘application/x-shockwave-flash’}

{if $detailed_href}

[COLOR=“Red”] {
highslide START }

{
orig }



{
highslide END }[/COLOR]

{/if}



search for:

{if $show_detailed_link}



edit code:

{if $show_detailed_link}



{
highslide START }



[COLOR=“red”]





{


{$lang.view_larger_image} *}

[COLOR=“red”]


{$lang.view_larger_image}



{$product.product|strip_tags}


[/COLOR]
{* highslide END *}
[SIZE="4"]
classes/scripts/exception.js[/SIZE]

[B]search for:[/B]
if (pr_i[id][row]['detailed_id'] != '' && pr_i[id][row]['detailed_id'] != '0') {

[B]edit code:[/B]
if (pr_i[id][row]['detailed_id'] != '' && pr_i[id][row]['detailed_id'] != '0') {

//highslide START
//new_ref[id] = "javascript:fn_open_popup_image('"+current_location+'/'+image_index+"?object_type=detailed&image_id="+pr_i[id][row]['detailed_id']+"&window=popup', "+pr_i[id][row]['detailed']['image_x']+"+ 84, "+pr_i[id][row]['detailed']['image_y']+"+ 140);"
[COLOR="red"]new_ref[id] = ""+pr_i[id][row]['detailed_id2']+""[/COLOR]
//highslide END


[SIZE="4"]product_pages/product_options.tpl[/SIZE]

[B]search for:[/B]
pr_i[{$id}][{$smarty.foreach.ii.iteration}-1] = {$ldelim}

[B]edit code:[/B]
pr_i[{$id}][{$smarty.foreach.ii.iteration}-1] = {$ldelim}
'image_id': '{$imag.image_id}',
'detailed_id': '{$imag.detailed_id}',
[COLOR="red"]'detailed_id2': '{$imag.detailed.image_path}',[/COLOR]
'options': '{$imag.options}'
{$rdelim};


[B]Hint:[/B]
If path to images are wrong, only a "loading box will appear...

[QUOTE]

If you want to use Highslide for a commercial website, you get the author’s permission by filling in the domain name in the “Buy now” page and paying the fee. What is a single website?What makes it commercial?

[/QUOTE]



CS cart site is commercial, So you have to pay

Its the resposibility of the domain owner to buy a license if needed…

This modification works also for 1.3.5 SP4. You will have to edit the following files after overwriting yoour existing template with the upgraded files:



yourskin/customer/common_templates/image.tpl

yourskin/customer/product_pages/product_options.tpl

classes/scripts/exceptions.js



They are update in SP4 too.

[quote name=‘ayalon’]This modification works also for 1.3.5 SP4. You will have to edit the following files after overwriting yoour existing template with the upgraded files:



yourskin/customer/common_templates/image.tpl

yourskin/customer/product_pages/product_options.tpl

classes/scripts/exceptions.js



They are update in SP4 too.[/QUOTE]

Does this mod have Gallery function? With that we can navigate through a set of extra images.

[quote name=‘joe’]Does this mod have Gallery function? With that we can navigate through a set of extra images.[/QUOTE]



definitely, you can visit [url]http://highslide.com/[/url] for more , there is a demo for gallery

Hi I have added the highslide zoom mod

it works well however i would like to remove the main link which opens the big pop up image please help

[QUOTE]/----------------START ---------------/



@charset “UTF-8”;



/* HighSlide Styles /

@media screen

{



.highslide {

cursor: url(…/images/highslide/zoomin.cur), pointer;

outline: none;

}

.highslide-active-anchor img {

visibility: hidden;

}

.highslide img {

/border: 2px solid gray;/

}

.highslide:hover img {

/border: 2px solid white;/

}



.highslide-wrapper {

background: white;

}

.highslide-image {

border: 2px solid white;

}

.highslide-image-blur {

}

.highslide-caption {

display: none;



border: 2px solid white;

border-top: none;

font-family: Verdana, Helvetica;

font-size: 10pt;

padding: 5px;

background-color: white;

}

.highslide-loading {

display: block;

color: black;

font-size: 8pt;

font-family: sans-serif;

font-weight: bold;

text-decoration: none;

padding: 2px;

border: 1px solid black;

background-color: white;



padding-left: 22px;

background-image: url(…/images/highslide/loader.white.gif);

background-repeat: no-repeat;

background-position: 3px 1px;

}

a.highslide-credits,

a.highslide-credits i {

padding: 2px;

color: silver;

text-decoration: none;

font-size: 10px;

}

a.highslide-credits:hover,

a.highslide-credits:hover i {

color: white;

background-color: gray;

}



a.highslide-full-expand {

background: url(…/images/highslide/fullexpand.gif) no-repeat;

display: block;

margin: 0 10px 10px 0;

width: 34px;

height: 34px;

}



/
These must always be last /

.highslide-display-block {

display: block;

}

.highslide-display-none {

display: none;

}

}



/
----------------END---------------*/[/QUOTE]



It is necessary for inserting into what file?

[quote name=‘Andrew77’]It is necessary for inserting into what file?[/QUOTE]



/yourskin/customer/css/highslide.css

Maybe someone try it on v2.0.4?

I tried to get this going in V2, but the js variable names and format have changed enough so I can’t follow it. Is there any others that want this for V2? Speak up. Let’s start the revolution to the future- to the greatly feared…V2 :cool:

I’m a very recent convert to cs-cart, and I just love highslide. Be very keen to see further development.