Page 282 of 373 FirstFirst ... 182232272280281282283284292332 ... LastLast
Results 2,811 to 2,820 of 3726
  1. #2811
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by jacky View Post
    Dear Alex,

    Thank you for your contribution of this addon. I've installed the v1.6.2 to my webstore. The lightbox not working on item additional images. Is that normal? If not, how it can be fixed? (I'm 1.3.9h)

    Thanks!
    Jacky
    have you made certain that all your files for LB are uploaded correctly?

    the LB close/previous images don't show in the image when it is in the lightbox either so maybe there is something that did not make it into the correct folder.

  2. #2812
    Join Date
    Feb 2008
    Posts
    529
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    zc 1.3.9h zen lightbox 1.6.2

    With v 1.5 lightbox I had separate set of close, prev, next French buttons with same filenames as English buttons, and I put those in my_template/buttons/french/zen_lightbox.

    When viewing my site with French language selected, my french buttons would appear on the lightbox if multiple images present.

    I updated to v 1.6.2 and everything else appears to be working, except the English buttons show up regardless of language selected.

    The new image counter does plug in the 'de' in place of 'of' as per my edit of the extra_definitions file - which I copied into languages/french/extra_def/my_custom/zen_lightbox

    Sample product page with mulitple images:
    http://www.meafordwool.com/Jazzy-Soc...ose-Autumn-XXL

    Can anyone point me to where I should look to make my french buttons appear when french selected?

    Thanks.

  3. #2813
    Join Date
    May 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by soxophoneplayer View Post
    zc 1.3.9h zen lightbox 1.6.2

    With v 1.5 lightbox I had separate set of close, prev, next French buttons with same filenames as English buttons, and I put those in my_template/buttons/french/zen_lightbox.

    When viewing my site with French language selected, my french buttons would appear on the lightbox if multiple images present.

    I updated to v 1.6.2 and everything else appears to be working, except the English buttons show up regardless of language selected.

    The new image counter does plug in the 'de' in place of 'of' as per my edit of the extra_definitions file - which I copied into languages/french/extra_def/my_custom/zen_lightbox

    Sample product page with mulitple images:
    http://www.meafordwool.com/Jazzy-Soc...ose-Autumn-XXL

    Can anyone point me to where I should look to make my french buttons appear when french selected?

    Thanks.
    Hi,

    If you want to manage multiple language support for Zen Lightbox I made some changes in code.

    Feel free to use the following attachment. You have to install zen lightbox 1.6.2 and after make changes with this zip attachment.

    Files changes:

    includes\classes\zen_lightbox\autoload_default.php
    includes\templates\YOUR-TEMPLATE-FOLDER\common\html_header.php

    ***********
    * WARNING *
    ***********

    html_header.php come from v1.3.9h (I haven't test it because I still use a previous zen-cart version)

    If you still use a previous zen-cart version, do not use html_header.php included in the attachment, but you can just add the folowing code in the file includes\templates\template_default\common\html_header.php like you can see in the attachment:


    /**
    * load all template-specific stylesheets, named like "style*.php", alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.php');
    while(list ($key, $value) = each($directory_array)) {
    $tmpcssdyn = '<script language="javascript" type="text/javascript"><!--'."\n";
    $tmpcssdyn .= 'document.writeln(\'<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '?charset=' . CHARSET . '&language=' . $_SESSION['language'] . '" />\');'."\n";
    $tmpcssdyn .= '//--></script>'."\n";
    echo $tmpcssdyn;
    }

    File deleted:

    includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.css

    File added:

    includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.php

    Enjoy ;)

    Jacques from France
    Attached Files Attached Files

  4. #2814
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by soxophoneplayer View Post
    zc 1.3.9h zen lightbox 1.6.2

    With v 1.5 lightbox I had separate set of close, prev, next French buttons with same filenames as English buttons, and I put those in my_template/buttons/french/zen_lightbox.

    When viewing my site with French language selected, my french buttons would appear on the lightbox if multiple images present.

    I updated to v 1.6.2 and everything else appears to be working, except the English buttons show up regardless of language selected.

    The new image counter does plug in the 'de' in place of 'of' as per my edit of the extra_definitions file - which I copied into languages/french/extra_def/my_custom/zen_lightbox

    Sample product page with mulitple images:
    http://www.meafordwool.com/Jazzy-Soc...ose-Autumn-XXL

    Can anyone point me to where I should look to make my french buttons appear when french selected?

    Thanks.
    when you upgraded the lightbox to 1.6.2 did you remove all old files from the server?

    there are 2 places to add your buttons to :

    main stores images folder and the templates images folder and both must be in their own little lightbox folder not loose in the ending folders.

  5. #2815
    Join Date
    Feb 2008
    Posts
    529
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by jisaac View Post
    ...* WARNING * html_header.php come from v1.3.9h (I haven't test it because I still use a previous zen-cart version) Jacques from France
    Thanks for reply. I am using zc 1.3.9h and there seems to be some conflict, perhaps in the html_header.php (?) as it disables the lightbox in both english and french. I'll try fiddling with it some more...

  6. #2816
    Join Date
    Feb 2008
    Posts
    529
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by DarkAngel View Post
    when you upgraded the lightbox to 1.6.2 did you remove all old files from the server? there are 2 places to add your buttons to : main stores images folder and the templates images folder and both must be in their own little lightbox folder not loose in the ending folders.
    Yes old files removed, sql update installed, new files put in or merged.

    Images are in main store and my_temp/images; also in my_template/buttons/english/ and my_template/buttons/french which is how I got it to work within lightbox 1.5. The french buttons have the same filenames as the english buttons, but are located in the french folder and the actual graphics of the buttons are in french. I can't do this in the main store/images or my_template/images since english and french filenames are identical.

    In the Lightbox 1.6.2 install, I AM getting the 'quantity of images' showing up in french with my minor substitution of 'de' for 'of' - so I know the copy of includes/languages/french/extra_definitions/my_template/zen_lightbox.php is indeed being accessed when a visitor has selected french language but the 'next' 'previous' and 'close' buttons being called up are from the english folder (or the main or my_template folders).

    So I guess I'm trying to figure out how to call the graphic files from buttons/french/ when extra_denfinitions/french is in play.

    I'm groping in the dark here, and wondering why this worked in 1.5 simply by adding the buttons/french ;o)

  7. #2817
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by soxophoneplayer View Post
    Yes old files removed, sql update installed, new files put in or merged.

    Images are in main store and my_temp/images; also in my_template/buttons/english/ and my_template/buttons/french which is how I got it to work within lightbox 1.5. The french buttons have the same filenames as the english buttons, but are located in the french folder and the actual graphics of the buttons are in french. I can't do this in the main store/images or my_template/images since english and french filenames are identical.

    In the Lightbox 1.6.2 install, I AM getting the 'quantity of images' showing up in french with my minor substitution of 'de' for 'of' - so I know the copy of includes/languages/french/extra_definitions/my_template/zen_lightbox.php is indeed being accessed when a visitor has selected french language but the 'next' 'previous' and 'close' buttons being called up are from the english folder (or the main or my_template folders).

    So I guess I'm trying to figure out how to call the graphic files from buttons/french/ when extra_denfinitions/french is in play.

    I'm groping in the dark here, and wondering why this worked in 1.5 simply by adding the buttons/french ;o)

    just a thought:

    in the languages/french/extra_definitions/ remove the template folder and just leave the LB file sit in the extra definitions folder alone

    since it is in the french folder anyway that may be confusing it.

  8. #2818
    Join Date
    May 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by soxophoneplayer View Post
    Thanks for reply. I am using zc 1.3.9h and there seems to be some conflict, perhaps in the html_header.php (?) as it disables the lightbox in both english and french. I'll try fiddling with it some more...
    I finally install a 1.3.9h test environment to test this code. Actually, there is a security conflict issue from \includes\.htaccess which prevents the ability of any scripts to run and my new file includes\templates\classic\css\stylesheet_zen_lightbox.php which generate css rules.

    When I change .htaccess with the following code it works :

    <FilesMatch ".*\.(js|JS|php|PHP|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF|xsl|XSL)$">

    I am not an expert in security management. So I don't have a good solution to propose.

  9. #2819
    Join Date
    Feb 2008
    Posts
    529
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by jisaac View Post
    I finally install a 1.3.9h test environment to test this code. Actually, there is a security conflict issue from \includes\.htaccess which prevents the ability of any scripts to run and my new file includes\templates\classic\css\stylesheet_zen_lightbox.php which generate css rules.

    When I change .htaccess with the following code it works :

    <FilesMatch ".*\.(js|JS|php|PHP|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF|xsl|XSL)$">

    I am not an expert in security management. So I don't have a good solution to propose.
    I applied the change to my includes/.htaccess file in my test site, and this does result in the mulit-language zen_lightbox.

    I'll see inquire on other forums if there are any security issues from the .htaccess change.

    Thanks for your help!

  10. #2820
    Join Date
    May 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by soxophoneplayer View Post
    I applied the change to my includes/.htaccess file in my test site, and this does result in the mulit-language zen_lightbox.

    I'll see inquire on other forums if there are any security issues from the .htaccess change.

    Thanks for your help!
    You're welcome ! Let me know if you find something interresting about .htaccess management in this case...

 

 

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