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
  #171  
Old 08-21-2007, 04:22 PM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default Re: Lightbox JS v2.0 implementation

I just wanted to report back that the very simple greybox solution was FANTASTIC! I wanted to maintain our nutritional tables as tables on an html page instead of an image. That way, (1) they would be readable, and (2) Edits, if required, would be a minor task. A time saver, and so easy to customize by adding styles to the head. In this case I used static pages in the cart (new folder) so I could set the exact dimensions, much like an image.

Thank you so much. My other concern was that with custom page designs I am not using the thumbnails so needed to use a text link instead- it works like a charm.
Cheers
Connie
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #172  
Old 08-22-2007, 03:01 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Lightbox JS v2.0 implementation

Quote:
Originally Posted by connemara
I just wanted to report back that the very simple greybox solution was FANTASTIC! I wanted to maintain our nutritional tables as tables on an html page instead of an image. That way, (1) they would be readable, and (2) Edits, if required, would be a minor task. A time saver, and so easy to customize by adding styles to the head. In this case I used static pages in the cart (new folder) so I could set the exact dimensions, much like an image.

Thank you so much. My other concern was that with custom page designs I am not using the thumbnails so needed to use a text link instead- it works like a charm.
Cheers
Connie

Great! Glad it worked out so well for you, it is a great little script.
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #173  
Old 09-03-2007, 03:30 PM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default Re: Lightbox JS v2.0 implementation

very nice mod
__________________
Web Design Web Design and Custom X-Cart Projects

http://www.dataviking.com

Mention the forums for discounts!
x-cart Version 4.1.8
Reply With Quote
  #174  
Old 09-08-2007, 09:31 AM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default Re: Lightbox JS v2.0 implementation

Anyone using this version in older carts ?
3.4.6

It appeared to work and gave the links for images on the product page but when you click the link there was no image(s) and a GIF text. Pic are in the DB.
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #175  
Old 09-14-2007, 11:38 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default Re: Lightbox JS v2.0 implementation

Bump ??
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #176  
Old 09-19-2007, 08:30 AM
 
TA TA is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 303
 

Default Re: Lightbox JS v2.0 implementation

I installed this on 4.1.8 and it works well once the images were moved to the file system.

For clickable thumbnails, I changed the content of thickbox/thickbox_productpage.tpl as outlined earlier in this thread. It works, but I then lose the numbers of the image, close or escape and the <prev next> ability. It also opens to a full screen. Had anybody worked out a better solution for clickable thumbs?
__________________
v4.7.12
v5.4.x (In Dev)
Reply With Quote
  #177  
Old 10-24-2007, 07:43 PM
 
RobinBraves RobinBraves is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: FL
Posts: 98
 

Default Re: Lightbox JS v2.0 implementation

Any idea how to implement the thickbox mod on the products_t.tpl page? I want to make the thumbnail on that page be able to enlarge and then have a "more details" link below it.
__________________
Version 4.1.11
Reply With Quote
  #178  
Old 10-25-2007, 10:52 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default Re: Lightbox JS v2.0 implementation

Would you be so kind and tell me where exactly this line of code should go, inside the thickbox_productpage.tpl file?

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

Below is the content of my "thickbox_productpage.tpl" file. Sorry, I am not clear which DIV part you're referring to. Thanks so much for your help!

-------------------------------------------------------------------------------------------------
{if $images ne ""}
{* <div style="white-space:nowrap;color:#D90000;font-weight:bold;padding:2px;margin:10px 0 4px;">{$lng.lbl_detailed_images}&not;</div> *}

<table width="250"><tr>
{section name=image loop=$images}
<td>
{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="lightbox_detailed"><img src="{$images[image].tmbn_url}" height="50" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /> {if $images[image].alt|escape eq ""} {$lng.lbl_image} {math equation="value+1" value=$smarty.section.image.index}{/if}</a></div>
{else}
<a href="{$xcart_web_dir}/image.php?id={$images[image].imageid}&amp;type=D" title="{$images[image].alt|escape}" class="thickbox" rel="lightbox_detailed"><img src="{$SkinDir}/thickbox/files/zoom.gif" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /> {$images[image].alt|escape}{if $images[image].alt|escape eq ""} {$lng.lbl_image} {math equation="value+1" value=$smarty.section.image.index}{/if}</a></div>
{/if}
{/if}
</td>
{/section}</tr>
</table>

<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>
{/if}
-------------------------------------------------------------------------------------------------




Quote:
Originally Posted by Zaja
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:
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #179  
Old 10-26-2007, 01:46 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 TL408
Would you be so kind and tell me where exactly this line of code should go, inside the thickbox_productpage.tpl file?

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

Below is the content of my "thickbox_productpage.tpl" file. Sorry, I am not clear which DIV part you're referring to. Thanks so much for your help!.......

Don't forget to adjust numbers of "none" values...depending on the maximum number of detailed images:
Code:
<div style="display:block;margin:auto 0;padding:10px 2px;"> {section name=image loop=$images} {if $images[image].avail eq "Y"} {if $images[image].tmbn_url} <div style="white-space: nowrap;padding:0 0 1px 3px;display:{cycle values="block,none,none,none,none,none"};"> <a href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}" class="thickbox" rel="lightbox_detailed"><img src="{$images[image].tmbn_url}" height="50" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /> {if $images[image].alt|escape eq ""} {$lng.lbl_image} {math equation="value+1" value=$smarty.section.image.index}{/if}</a></div> </div> {else} <div style="white-space: nowrap;padding:0 0 1px 3px;display:{cycle values="block,none,none,none,none,none"};"> <a href="{$xcart_web_dir}/image.php?id={$images[image].imageid}&amp;type=D" title="{$images[image].alt|escape}" class="thickbox" rel="lightbox_detailed"><img src="{$SkinDir}/thickbox/files/zoom.gif" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /> {$images[image].alt|escape}{if $images[image].alt|escape eq ""} {$lng.lbl_image} {math equation="value+1" value=$smarty.section.image.index}{/if}</a></div> </div> {/if} {/if} {/section} </div> <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> {/if}
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #180  
Old 10-26-2007, 03:18 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: Lightbox JS v2.0 implementation

Quote:
Originally Posted by Lingerieblowout
..... Pic are in the DB.

This is going to be a problem no matter what solution that you use for images on your site. When images are in the DB, you do not have any URL to feed into any script. Images are displayed by doing an SQL query and spewing out the binary code.

You really need to move your images to the file system whether you use some JavaScript posted here on the forum or whether you use some 3rd party image modification.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 03:51 AM.

   

 
X-Cart forums © 2001-2020