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

Lightbox integration

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-06-2009, 12:20 PM
 
Dirty Harry Dirty Harry is offline
 

Newbie
  
Join Date: Sep 2008
Posts: 9
 

Question Lightbox integration

Hi All,
I'm currently trying to integrate an image viewer similar to shadowbox (http://forum.x-cart.com/showthread.php?t=38292&highlight=shadow+box) called lightbox (I'm sure many of you are familiar with it), and I'm having trouble (please keep in mind that I am very noob).

To run, the instruction say that I need to append a CSS file, as well as some Java Script files.
I've uploaded the files to the right place, and now need to reference the files in the web page header (this is where I am having difficulty).
I can't seem to find what tpls to add the code to.

In other words;
What tpl file do I update to reference the 3 Java script files?
What tpl file do I update to reference the css file?

These are the js files-
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
And this is the CSS

<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
I'm also guessing the href should be changed to; href="{$SkinDir}/..."
Just can't figure out where!!

Any advice is welcome!
Thanks
__________________
cart version 4.1.9
Reply With Quote
  #2  
Old 04-06-2009, 03:36 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Lightbox integration

skin1/customer/home.tpl before </head>
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 04-06-2009, 04:13 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Lightbox integration

Use shadowbox instead of lightbox.

Lightbox will not validate. Shadowbox will.
Lightbox has all kinds of workarounds for various browsers. Showdowbox is clean.
Shadowbox is MUCH, MUCH more flexible.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 04-07-2009, 07:40 AM
 
Dirty Harry Dirty Harry is offline
 

Newbie
  
Join Date: Sep 2008
Posts: 9
 

Default Re: Lightbox integration

I will definitely give it a try. Thanks for the advice, thats going to help so much
__________________
cart version 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 01:34 PM.

   

 
X-Cart forums © 2001-2020