Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Lightbox JS v2.0 implementation

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #111  
Old 02-05-2007, 11:37 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Lightbox JS v2.0 implementation

ThickBox x-cart hack is updated with latest ThickBox 2.1.1 code. download

2.1.1 Change Log:
---------------------------
- Updated Thickbox to work with jQuery release 1.1.1
- ThickBox mod will now add numeration and generic image name(Image 1, Image 2, ecc.) only if the alt tag is not specified.

IMPORTANT: Version 4.0.x not yet ready.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #112  
Old 02-05-2007, 11:47 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Lightbox JS v2.0 implementation

Quote:
Originally Posted by ezi designs

Just updated this mod to 2.1 and all is fine, except one thing. When i click on 'detailed images' it opens fine, but in the bottom left hand corner it displays ' click to enlarge' great i thought ! not so, it closes the screen.

Richard, download updated mod for 4.1.x.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #113  
Old 02-09-2007, 09:16 AM
 
jason sherwin jason sherwin is offline
 

Member
  
Join Date: Feb 2007
Posts: 18
 

Default Re: Lightbox JS v2.0 implementation

Hey Guys,

I'm new to the forum.

I've been trying to get thickbox working for detailed images like this for some time now and I've been running into a weird problem. The image grabbed into the thickbox displays as a string of unparsed data instead of a visible image. It is the correct image (I can tell by the metadata) but it's just not being parsed correctly or something. Plain old school javascript pop ups work perfect too.
__________________
X-Cart 4.0.19-gold_upgrade
PHP 5.2.3
MySQL 5.0.16
Reply With Quote
  #114  
Old 02-09-2007, 09:31 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Lightbox JS v2.0 implementation

Jason, thickbox for xcart version 4.0.x is not ready.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #115  
Old 02-15-2007, 10:01 AM
 
Brow Brow is offline
 

Advanced Member
  
Join Date: Nov 2006
Location: Indiana
Posts: 26
 

Default Re: Lightbox JS v2.0 implementation

Awesome work. I just installed it and it looks great!
Reply With Quote
  #116  
Old 02-15-2007, 10:23 AM
 
MattUK MattUK is offline
 

Member
  
Join Date: Nov 2006
Posts: 23
 

Default Re: Lightbox JS v2.0 implementation

Okay, it's now nearly exactly how I want it. I currently have this as my productpage.tpl

Quote:
{if $images ne ""}
<div style="white-space:nowrap;color:#000000;font-weight:bold;padding:2px;margin:10px 0 4px;">Click Images To Enlarge</div>
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
<div style="white-space: nowrap;padding-left:10px;"><a href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}" class="thickbox" rel="[detailed]"><img src="{$images[image].tmbn_url}" width="75" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /></a></div>
{else}
<div style="white-space: nowrap;padding-left:10px;"><a href="{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}" title="{$images[image].alt|escape}" class="thickbox" rel="[detailed]"><img src="{$images[image].tmbn_url}" width="75" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /></a></div>
{/if}
{/if}
{/section}
{/if}

How can I alter this so the images run horizontally instead of vertically?
__________________
X-Cart Gold 4.1.9
Reply With Quote
  #117  
Old 02-15-2007, 11:12 AM
 
jason sherwin jason sherwin is offline
 

Member
  
Join Date: Feb 2007
Posts: 18
 

Default Re: Lightbox JS v2.0 implementation

try a "float:left" on your divs or take out the divs altogether and apply your inline style to the anchor tag?
__________________
X-Cart 4.0.19-gold_upgrade
PHP 5.2.3
MySQL 5.0.16
Reply With Quote
  #118  
Old 02-15-2007, 11:41 AM
 
MattUK MattUK is offline
 

Member
  
Join Date: Nov 2006
Posts: 23
 

Default Re: Lightbox JS v2.0 implementation

Thanks for your help, but that didn't seem to work
__________________
X-Cart Gold 4.1.9
Reply With Quote
  #119  
Old 02-15-2007, 12:11 PM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Lightbox JS v2.0 implementation

Quote:
Originally Posted by MattUK
How can I alter this so the images run horizontally instead of vertically?

Matt, alredy explained in this thread.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #120  
Old 03-13-2007, 02:34 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default Re: Lightbox JS v2.0 implementation

Any word on getting this to work in vers. 4.0.19 ?

I'm reading that it is not compatible, is this correct?
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:25 AM.

   

 
X-Cart forums © 2001-2020