Page 29 of 373 FirstFirst ... 1927282930313979129 ... LastLast
Results 281 to 290 of 3726
  1. #281
    Join Date
    Jan 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Great contribution but I am having a slight problem getting more than just the main image to display. I click next and it just keeps "loading" forever. I am running 1.3.7 and thought (keyword ha) I installed everything correctly.

    http://www.sffclub.com/store/index.p...roducts_id=181

    There is a link to a product on my site (note the store is not operational yet)

    Thanks for anyones help

  2. #282
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,813
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    try reloading the additional_images.php and make sure you use the correct directory tree includes/modules/YOUR_CUSTOM_TEMPLATE_NAME/additional_images.php
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #283
    Join Date
    Jan 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by barco57 View Post
    try reloading the additional_images.php and make sure you use the correct directory tree includes/modules/YOUR_CUSTOM_TEMPLATE_NAME/additional_images.php

    tried that out...didn't work
    Last edited by Steeeeve; 17 Jan 2007 at 06:11 AM.

  4. #284
    Join Date
    Jan 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    could this be a problem with the 1.3.7??

  5. #285
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,813
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Wouldn't be a problem with 1.3.7 cause I have a development 1.3.7 site up with lots of additional images and everything worked straight out of the box..........well it was a 1.3.6 site and upgraded to 1.3.7 during developement.....So I don't know if that makes any difference
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  6. #286
    Join Date
    Jan 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    I installed Image Handler 2.0 and it worked fine.

  7. #287
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Zen Lightbox...

    Quote Originally Posted by s_mack View Post
    Of course, now I see how you have a problem with hardcoding in the lightbox.js file

    Where it says:
    Code:
    //
    //	Configuration
    //
    var fileLoadingImage = "includes/templates/template_default/images/lightbox/loading.gif";	
    var fileBottomNavCloseImage = "includes/templates/template_default/images/lightbox/closelabel.gif";
    There's no easy way of doing that without hardcoding. I suppose the best way to work this if you want to conform as much as possible to the templating scheme of zen without creating a lot of work... is to do this:
    Code:
    //
    //	Configuration
    //
    var fileLoadingImage = "images/lightbox/loading.gif";	
    var fileBottomNavCloseImage = "images/lightbox/closelabel.gif";
    and move the two image files to the main image directory.

    All just suggestions!

    - Steven
    Steven,

    Just wondering if you managed to find a solution to the problems with values contained within lighbox.js and altering them.

    I'm currently testing a few 'ideas' out but coming up with nothing!

    BTW - The new version of Zen Lightbox is almost ready to be released.

  8. #288
    Join Date
    Sep 2006
    Location
    Gillette, NJ, USA
    Posts
    35
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Alex -- I've disappeared for a bit, but I'm working on a new site, so I tried to catchup since the Image Handler release. Reading your last post, what is the reason to avoid Steve's suggestion of just moving the images to the images folder?

    While it doesn't technically fall into the "templating override" - most people will be copying their image folders between upgrades. I think its the simplest solution - calling the template folder from zen-cart in the JS would require more complicated work-arounds.

    You could also make the js file a php file that serves up js. I do the same thing for my business, but in .NET. Can you call <script type="text/javascript" src="includes/templates/(whatever PHP code to get template directory)/jscript/lightbox_prototype.php"></script>? It should work fine.

    Well, that's my humble opinion anyway.

    I'm looking forward to the latest release.

    Chris
    Last edited by boylan; 27 Jan 2007 at 09:04 PM.

  9. #289
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Zen Lightbox...

    Chris,

    Great to see you back and I hope the work on the new site is going well.

    I can call the example you provided. However, I really want to be able to call php from the main lightbox js file. This isn't just to allow me to correctly use the template override system, but also to let me change certain lightbox settings.

    Regards,

    Alex

  10. #290
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default Re: Zen Lightbox...

    Alex... I just did what I suggested in the quote. But I like what (i think) Chris is suggesting... use a PHP file to generate the js on the fly and ditch the .js file altogether! More work, but ultimate flexibility and control.

    Whenever you have js that needs to reference php variables it gets tough, and generating it on the fly is often necessary.

    But my suggestion is MUCH simpler. The only downside, of course, is that the user can't override the two graphics files in their templates because its in the root images folder instead of the template's images folder. Obviously the user can change the images by replacing them... but if they want different "loading" and "closelabel" images for a (example) Christmas template or whatever, they lose the benefit of the zen templating system. I think this is a very minor concern since its only these two images and they are pretty universal images. Its not like they are front page banners or anything.

    - Steven

 

 

Similar Threads

  1. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  2. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  3. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  4. File Upload Required addon [Support Thread]
    By 1100101 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 10 Dec 2011, 03:00 AM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR