View Single Post
  #137  
Old 04-23-2007, 03:35 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default 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.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote