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.
Printable View
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
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)
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.