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)

TA 04-02-2007 04:25 PM

Re: Lightbox JS v2.0 implementation
 
I usually try to keep them no bigger than 600 X 500. The 500 will get sized down to about 450 and give a poor quality image. I usually just check to see what it was sized to and then manually resize it to less than that. That clears the image back up, but I would prefer to avoid this extra step if possible. Are there any limits that I can just be sure to be less than?

Thanks,

TA

Zaja 04-02-2007 04:36 PM

Re: Lightbox JS v2.0 implementation
 
ThickBox will resize only images that are bigger than the browser window, I can't see any problem with 600 X 500 image resolution?

TA 04-02-2007 06:06 PM

Re: Lightbox JS v2.0 implementation
 
I just added a large image to see what the limits actually are and it resized it to 673 X 449. I will just stay under that.

craichead 04-03-2007 06:43 AM

Re: Lightbox JS v2.0 implementation
 
This is a great mod... I'd like to have the following:

Below the "main" thumbnail image, I'd like to have a link like this:

http://64.239.144.67/forums/more-images.png

that links to thickbox (instead of having the list of images as text links or as small images)

Also, I'd like the main thumnail image to link to thickbox as well.

Any advise on how to accomplish this?

Great thread... Thanks in advance.

Edit: Functionally, it would be similar to zardos's site:

http://www.megapcs4u.co.uk/index.php?target=products&product_id=29780

though i'm 4.1.3

Best,

NightFire 04-23-2007 03:15 AM

Re: Lightbox JS v2.0 implementation
 
Using this mod for some time. And its absolute perfect.
Is it possible to use the thickbox feature also outside it's product pages. So for example just some images in category descriptions with the "rel" link? Or do I have to add a separate css files in the home.tpl file?

mitash 04-23-2007 03:20 AM

Re: Lightbox JS v2.0 implementation
 
yeah it should be fine...

just make sure js is being referenced and put the rel code into the links..

we implemented grebox on this site...
http://www.klubsutra.com/?page_id=5

NightFire 04-23-2007 03:35 AM

Re: Lightbox JS v2.0 implementation
 
In fact you could just insert this code to your home.tpl:

Code:

<script type="text/javascript" src="{$SkinDir}/thickbox/files/jquery-compressed.js"></script>
<script type="text/javascript" src="{$SkinDir}/thickbox/files/thickbox.js"></script>
<style type="text/css" media="all">@import "{$SkinDir}/thickbox/files/thickbox.css";</style>


Then this step is not needed any more:
1. Open skin1/customer/main/product.tpl add following code at the end:
{include file="thickbox/thickbox_include.tpl" }

And the whole thickbox effect can be used at the whole website. Am I correct? Or can I just leave the step 1 as it is, and it will be double then....
Only one negative point is. When you include this file in your home.tpl file, it will cause to load your first home.php even more slower. That's probably why its only included into the product page.

chelle 06-14-2007 12:00 PM

Re: Lightbox JS v2.0 implementation
 
Hi
I am new to this forum .. First I would like to thank you for this beautiful mod .. I installed it and works but I have a small problem here .. All my details images is 600 by 600 ... when I click image 1 from detail image .. it has been resized to half .. and look very distorted .. what do I have to do to keep the original size when my customer click the detail image from the mod??

I am using x-cart 4.17

Thanks In Advance

Zaja 06-14-2007 02:16 PM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by chelle
Hi
I am new to this forum .. First I would like to thank you for this beautiful mod .. I installed it and works but I have a small problem here .. All my details images is 600 by 600 ... when I click image 1 from detail image .. it has been resized to half .. and look very distorted .. what do I have to do to keep the original size when my customer click the detail image from the mod??

I am using x-cart 4.17

Thanks In Advance


I can't reproduce this, can you post a link to the site so we can test?

chelle 06-15-2007 02:37 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by Zaja
I can't reproduce this, can you post a link to the site so we can test?


OOps Sorry here is my site link
http://www.digiscrapboutique.com/boutique/index.php

Here is one of the product link

http://www.digiscrapboutique.com/boutique/garden-of-friendship-pr-672.html

Thanks in Advance for your help


All times are GMT -8. The time now is 09:27 AM.

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