X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Lightbox JS v2.0 implementation (https://forum.x-cart.com/showthread.php?t=23858)

inebriate 02-04-2007 01:43 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by fhiremark
The rest of the code I left intact and it works perfect on Firefox, but on IE I get the nonsecure popup everytime I go to a different page. (I'm using the most recent download package, the one with the blank.html hack) Please help.


put a '/' in front of skin1/thickbox/files/blank.html in thickbox.js, and do the same for skin1/thickbox/files/loadingAnimation.gif

just wondering 02-05-2007 07:19 AM

Re: Lightbox JS v2.0 implementation
 
That has fixed the Prev - Next buttons, but there are a few other problems:

Post #94 is correct, I get that same thing (except clicking it does nothing).

Post #99 - same, but whatever I put in the 'Alternative Test' in the Detailed Images page appears, then with the 1, 2, 3, right after it. Example:

Thickbox test 11
Thickbox test 22

The Alternative Text I have set is Thickbox test 1 & Thickbox test 2.

NightFire 02-05-2007 07:42 AM

Re: Lightbox JS v2.0 implementation
 
I'm still having the problem with the next / prev image. Couldn't find the right post with the fix. Anyone can direct me in the right way?
Thanks

ranger82nd 02-05-2007 07:52 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by NightFire
I'm still having the problem with the next / prev image. Couldn't find the right post with the fix. Anyone can direct me in the right way?
Thanks

NightFire~ if you are using my modified version to work with Telafirma's mod, you need to also do this:
Quote:

To fix Prev - Next navigation problem open skin/thickbox/thickbox_productpage.tpl and replace:
[detailed] with: thickbox_detailed
in your product.tpl

Zaja 02-05-2007 08:06 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by just wondering
Post #99 - same, but whatever I put in the 'Alternative Test' in the Detailed Images page appears, then with the 1, 2, 3, right after it. Example:

Thickbox test 11
Thickbox test 22

The Alternative Text I have set is Thickbox test 1 & Thickbox test 2.

No need for numeration, mod will add numbers for you.

Zaja 02-05-2007 08:09 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by NightFire
I'm still having the problem with the next / prev image. Couldn't find the right post with the fix. Anyone can direct me in the right way?
Thanks


Can you explaine your problem with the next / prev image more in details? I have tested Thickbox mod again, on clean xcart installation, but cannot reproduce problem with the next / prev navigation.

NightFire 02-05-2007 09:03 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by ranger82nd
NightFire~ if you are using my modified version to work with Telafirma's mod, you need to also do this:

in your product.tpl


Thanks for the reply. Tried it, but without any luck. I guess you are referring to the "rel [detailed" right?

ranger82nd 02-05-2007 09:59 AM

Re: Lightbox JS v2.0 implementation
 
Just so we're clear..
it should be rel="thickbox_detailed" not rel="[thickbox_detailed]" right?

Here's the entire snippet.
Code:

{if $product.tmbn_url}
<a href="{$product.tmbn_url}" title="{$product.product|escape}" class="thickbox" rel="thickbox_detailed">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.product_image_width product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" alt=$product.product|escape}
{if $product.tmbn_url}<div align="center" class="SmallText">+ Click to Enlarge</div></a>{/if}
{/if}


NightFire 02-05-2007 10:44 AM

Re: Lightbox JS v2.0 implementation
 
Maybe I'm using a wrong, or updated version. But the rel trick is just not working.
Edit: I'm using it for the TelaFirma mod...

here is my /thickbox/thickbox_productpage.tpl file:

Code:

{if $images ne ""}
<div style="white-space:nowrap;color:#D90000;font-weight:bold;padding:2px;margin:10px 0 4px;">{$lng.lbl_detailed_images} <img src="{$SkinDir}/thickbox/files/zoom.gif" style="border:0;" alt="{$lng.lbl_enlarge|escape}" /></div>
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
<a href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}" class="thickbox" rel="[detailed]">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.dthumb_image_width product=$product.product tmbn_url=$images[image].tmbn_url alt=$images[image].alt|escape}</a>
{/if}
{/if}
{/section}
{/if}


Zaja 02-05-2007 11:27 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by ranger82nd
Just so we're clear..
it should be rel="thickbox_detailed" not rel="[thickbox_detailed]" right?

Yes.

Quote:

Originally Posted by ranger82nd
Here's the entire snippet.
Code:

{if $product.tmbn_url}
<a href="{$product.tmbn_url}" title="{$product.product|escape}" class="thickbox" rel="thickbox_detailed">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.product_image_width product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" alt=$product.product|escape}
{if $product.tmbn_url}<div align="center" class="SmallText">+ Click to Enlarge</div></a>{/if}
{/if}


This is your custom code for thickbox_productpage.tpl, right?


All times are GMT -8. The time now is 08:54 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.