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)

TheMommyMarketplace 06-20-2007 11:22 AM

Re: Lightbox JS v2.0 implementation
 
I'm bumping this up to see if anyone has figured out chelle's issue--I am having the same problem. I just upgraded to 4.1.7 & the detailed images produced by the cart are much larger/nicer than the ones in thickbox.

Zaja 06-20-2007 11:23 PM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by TheMommyMarketplace
I'm bumping this up to see if anyone has figured out chelle's issue--I am having the same problem. I just upgraded to 4.1.7 & the detailed images produced by the cart are much larger/nicer than the ones in thickbox.


ThickBox will resize images(using browser) that are bigger than the browser window, but browser resizing of images generally gives poor results. >> ThickBox forum

chamberinternet 07-05-2007 04:05 AM

Re: Lightbox JS v2.0 implementation
 
Hello ...

Does anyone know how to modify thickbox_productpage.tpl so that it only displays one link available to start the popup functionality rather than showing multiple links to each detailed image.

Thanks & Regards

Shafiq :sK

carpeperdiem 07-05-2007 04:30 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by chamberinternet
Does anyone know how to modify thickbox_productpage.tpl so that it only displays one link available to start the popup functionality rather than showing multiple links to each detailed image.


Thinking out loud: Thickbox3 has a "gallery" function... I have not explored it yet. But I was thinking of exploring this -- what if????? I may explore this tonight. Let me know if you get there first.

chamberinternet 07-05-2007 04:34 AM

Re: Lightbox JS v2.0 implementation
 
Gallery Function ?
I'm on the Jquery website and i dont see any mention is this feature ... Are you reading about this elsewhere ?

Regards

Shafiq :sK

carpeperdiem 07-05-2007 04:39 AM

Re: Lightbox JS v2.0 implementation
 
Thickbox 3
http://forum.x-cart.com/showthread.php?t=32300

http://jquery.com/demo/thickbox/
Quote:

GALLERY IMAGES
Description:

This example is exactly like the single image functionality except that it allows use of the rel attribute to group images together so they can be navigated in a ThickBox. The ideal usage would be for images galleries.
Instructions:
  • Create a link element (<a href>)
  • Give the link a class attribute with a value of "thickbox" (class="thickbox")
  • Provide a path in the href attribute to an image file (.jpg .jpeg .png .gif .bmp)
  • Give each link element the same rel element and value. (Example: rel="gallery-plants")
Important to Remember:

While you have a ThickBox gallery image open, you can navigate forward and backward through the images by using the left < key (previous) and right > key (next) on the keyboard (Next and Previous links are also provided in the ThickBox). The images will appear in the gallery from first to last as they appear in the HTML document flow.

PS -- maybe this thread should move to Thickbox 3?

chamberinternet 07-05-2007 04:45 AM

Re: Lightbox JS v2.0 implementation
 
Ah right yes ...

I think this functionality already existed in v2.x ... as i've used this in smaller/static based sites. Looks slick..

Zaja 07-05-2007 04:55 AM

Re: Lightbox JS v2.0 implementation
 
1 Attachment(s)
Quote:

Originally Posted by chamberinternet
Hello ...

Does anyone know how to modify thickbox_productpage.tpl so that it only displays one link available to start the popup functionality rather than showing multiple links to each detailed image.

Thanks & Regards

Shafiq :sK


Open thickbox_productpage.tpl and add this code to DIV style properties(to image DIV, not wrapper DIV). Also, you can adjust numbers of "none" values...depending on the maximum number of detailed images:
Quote:


display:{cycle values="block,none,none,none,none,none"};


btw.new version of thickbox mode(based on Thickbox 3) is attached.

Zaja 07-05-2007 05:01 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by carpeperdiem
Thickbox 3
http://forum.x-cart.com/showthread.php?t=32300

http://jquery.com/demo/thickbox/


PS -- maybe this thread should move to Thickbox 3?


This feature is already included in the Thickbox mod, but can't be called gallery...if you open one image with Thickbox you can navigate forward and backward through the images.

chamberinternet 07-05-2007 05:23 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Open thickbox_productpage.tpl and add this code to DIV style properties(to image DIV, not wrapper DIV). Also, you can adjust numbers of "none" values...depending on the maximum number of detailed images:

display:{cycle values="block,none,none,none,none,none"};


Brilliant .. worked a treat.

Thanks a lot.

Regards

Shafiq :sK

P.S: Your Thickbox 3 update works fine ;)


All times are GMT -8. The time now is 10:05 PM.

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