Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    45
    Plugin Contributions
    0

    Default Adding JQuery Lightbox to additional images

    I am trying to add jquery lightbox (http://code.google.com/p/jquery-lightbox/) to additional images on my shopping cart. I followed all the instructions in here: http://warren.mesozen.com/jquery-lightbox/ but the lightbox is not working. The .js and .css files are correctly included on the <head> section. For implementing the lightbox, I modified the code in includes/modules/MYTEMPLATE/additional_images.php like the following:

    $script_link = '<a href="'.$products_image_large.'" rel="lightbox[images]">'.$thumb_slashes.'</a>';

    I have seen the lightbox modules on download section. They seem to have lot more modifications in them. I am just trying to see if there is a simple way of doing it as shown on the above URLs.

    If anyone has successfully implemented it on zencart, pls let me know.

    Cheers!

  2. #2
    Join Date
    Jan 2006
    Posts
    45
    Plugin Contributions
    0

    Default Re: Adding JQuery Lightbox to additional images

    I got it working now. I forgot to include a piece of javascript. My own fault...

    Just included the following code within the <head> section of includes/templates/MYTEMPLATE/common/html_header.php:

    <script>
    $(document).ready(function(){
    $(".lightbox").lightbox();
    });
    </script>

  3. #3
    Join Date
    Oct 2006
    Posts
    5,486
    Plugin Contributions
    12

    Default Re: Adding JQuery Lightbox to additional images

    Well, what the modules try to do is:
    1. make sure that only a limited of files are altered
    2. make sure the css and js only loaded on appropriate pages only (loaded only when needed)
    3. flexibility (make sure the lightbox can be turned on on many pages (or product types)

    Anyhow, glad you got it worked out for you
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  2. Lightbox not showing additional images OR pre/next buttons
    By mellonade in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 12 Nov 2010, 04:35 AM
  3. Lightbox not working with additional images on new template!
    By wildfashions in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Nov 2008, 05:16 PM
  4. additional images not showing after upgrading zen lightbox
    By james739 in forum General Questions
    Replies: 4
    Last Post: 28 Mar 2008, 06:27 PM
  5. lightbox and additional images
    By digz in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Oct 2007, 06:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •