Zen Cart Logo
Forums / All Other Contributions/Addons / Zen Lightbox addon [Support Thread]

Zen Lightbox addon [Support Thread]

Views: 953,034

Results 2,801 to 2,820 of 3,722
30 Jun 2011, 6:03 AM
#2801
jacky avatar

jacky

New Zenner

Join Date:
Sep 2010
Location:
Hong Kong
Posts:
14
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

niestudio:

Looking at your source your additional images have rel="nofollow" instead of rel="lightbox-g" which it should to enable lightbox support.
Do you have another plugin that may be adding that code?

Hi,

Thank you for your help, would you tell me how can I find this additional source at my images file. I've no idea where should I go for. :frusty:

Thanks again!

4 Jul 2011, 3:01 AM
#2802
jacky avatar

jacky

New Zenner

Join Date:
Sep 2010
Location:
Hong Kong
Posts:
14
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

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

4 Jul 2011, 3:08 AM
#2803
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

jacky:

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.

5 Jul 2011, 12:14 PM
#2804
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

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-Socks/XXL/Foot-Loose-Autumn-XXL

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

Thanks.

5 Jul 2011, 1:28 PM
#2805
jisaac avatar

jisaac

New Zenner

Join Date:
May 2011
Posts:
8
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

soxophoneplayer:

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-Socks/XXL/Foot-Loose-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

5 Jul 2011, 5:46 PM
#2806
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

soxophoneplayer:

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-Socks/XXL/Foot-Loose-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.

6 Jul 2011, 1:58 AM
#2807
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

jisaac:

...* 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 Jul 2011, 2:18 AM
#2808
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

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)

6 Jul 2011, 2:56 AM
#2809
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

soxophoneplayer:

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.

7 Jul 2011, 9:54 AM
#2810
jisaac avatar

jisaac

New Zenner

Join Date:
May 2011
Posts:
8
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

soxophoneplayer:

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.

7 Jul 2011, 6:30 PM
#2811
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

jisaac:

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!

7 Jul 2011, 7:57 PM
#2812
jisaac avatar

jisaac

New Zenner

Join Date:
May 2011
Posts:
8
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

soxophoneplayer:

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...

7 Jul 2011, 11:05 PM
#2813
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

jisaac:

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

I got a response from Dr Byte about this:

Yes, you're creating a security risk by allowing php files in /includes/.htaccess

I guess if push comes to shove I can just reinstall Lightbox 1.5, but I'll fiddle some more with 1.6 for a while first.

8 Jul 2011, 10:45 AM
#2814
jisaac avatar

jisaac

New Zenner

Join Date:
May 2011
Posts:
8
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

soxophoneplayer:

I got a response from Dr Byte about this:

I guess if push comes to shove I can just reinstall Lightbox 1.5, but I'll fiddle some more with 1.6 for a while first.

Thanks for your response ! Maybe later I wil try another way to do the same result without .htaccess issue...

8 Jul 2011, 8:06 PM
#2815
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

soxophoneplayer:

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)

Hi Soxophoneplayer,
can you attach your french graphics for me.
I'll play around with it and see where they need to be added.
In ZLB 1.6.2 there are 2 places where the prev/next images live.
[images/zen_lightbox] & [includes/templates/your-template-folder/images/zen_lightbox]
I had to add this for the "Always show prev/next" feature that some users requested.

daniel

9 Jul 2011, 12:08 AM
#2816
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Here are the French buttons I was using for Lightbox 1.5

Thanks for your help.

9 Jul 2011, 3:50 AM
#2817
bonboncat avatar

bonboncat

New Zenner

Join Date:
May 2011
Posts:
7
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

ummm anyone know how to hide additional image at product info page?
so they only can be seen when they click for large image and click next and prev at the lightbox only

9 Jul 2011, 4:50 PM
#2818
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

soxophoneplayer:

Here are the French buttons I was using for Lightbox 1.5

Thanks for your help.

Hi Soxophoneplayer,
Here are the mods you'll need.
1.
As stated earlier you must load your french images to [images/zen_lightbox] & [includes/templates/your-template-folder/images/zen_lightbox]

Now, since your images are NOT the same size as the originals, you need to make some minor tweaks to the css.

edit [includes/classes/zen_lightbox/autoload_default.php]

replace the echo statement at the bottom with this:

echo '<style> #lbPrevLink, #lbNextLink {display: block; position: absolute; top: 0; height:33px!important; outline: none;} #lbNextLink {right: 0; width: 87px; background: transparent url(images/zen_lightbox/nextlabel.gif) no-repeat 100% 15%;} #lbPrevLink {left: 0; width: 106px; background: transparent url(images/zen_lightbox/prevlabel.gif) no-repeat 0 15%; } </style>';

next edit [includes/templates/your-template/css/stylesheet_zen_lightbox.css]
modify the #lbCloseLink tag width and height to

width: 89px; height: 33px;

These three mods should load french buttons for you.

daniel

9 Jul 2011, 6:13 PM
#2819
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

soxophoneplayer:

Here are the French buttons I was using for Lightbox 1.5

Thanks for your help.

Hi Soxophoneplayer,
I was looking back at your OP and realized that you are not trying to use french as the default, but rather be able to use that switch on your site.
The fix I just gave you want to switch to french all the time.
I'll try to look into what happened with the switch from 1.5 to 1.6

daniel

18 Jul 2011, 4:22 PM
#2820
dome90uk avatar

dome90uk

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi,

After installing zen_lightbox-v1.6.2 onto my store ( 1.3.9h ) and running the installSQL script - I am getting the error message below ( see gif ) ...

I have restored the backup of the original files and DB but still I get the error. Can anyone help please?

Thank you for your time :)

dome