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

Zen Lightbox addon [Support Thread]

Views: 952,677

Results 2,241 to 2,260 of 3,722
21 Dec 2010, 1:33 PM
#2241
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

The blank screen error is to do with options.php. When I checked the debug logs it came up with ...

syntax error, unexpected T_ELSE in /home/.../public_html/includes/classes/zen_lightbox/options.php on line 53

So I took a look at the code and I'm not sure if its a typo but if you look around line 53 you will see

if (ZEN_LIGHTBOX_KEYBOARD_NAVIGATION == 'true') 
{
	echo str_replace(' ', '', ZEN_LIGHTBOX_NEXT_KEYS); 
}
echo ']';
else 
{
	echo 'false'; 
}
?>

If you look I've highlighted the offending echo in red :D You need to move this. I'm not sure where it's meant to go or if its even meant to be there but for a quick fix I just moved it to the bottom of the file. for E.G...

if (ZEN_LIGHTBOX_KEYBOARD_NAVIGATION == 'true') 
{
	echo str_replace(' ', '', ZEN_LIGHTBOX_NEXT_KEYS); 
}
else 
{
	echo 'false'; 
}
echo ']';

Hope this helps :D Sorry about the long winded explanation but I find if I explain things like this it helps people debug errors in the future ;)

21 Dec 2010, 2:16 PM
#2242
mazda avatar

mazda

New Zenner

Join Date:
Dec 2010
Posts:
3
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Thanks for the info....
##############################___
Japan has opened.
gclub new model for Health called on signing. gclub sure enough.

21 Dec 2010, 3:54 PM
#2243
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

Hey All, Sorry about the issue with the options.php file, I did some last minute edits on it and forgot to re-zip the folder.
the line echo ']'; should be the last line before ?>

I've updated the zip file with the options file updated

Here is a link to a new file
http://goo.gl/fCENH

Daniel

21 Dec 2010, 7:45 PM
#2244
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Kudos to Daniel for such great work and effort.

Works on a new install however if you have previous Zens...the image does appear but the next, previous, close images do not show up when trying to close the zen light box.

Frank

21 Dec 2010, 9:27 PM
#2245
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

Linux:

Kudos to Daniel for such great work and effort.

Works on a new install however if you have previous Zens...the image does appear but the next, previous, close images do not show up when trying to close the zen light box.

Frank

Hi Frank, I updated the zip file with an updated css file.
I tested it on a fresh 1.3.8a and it seems to be good now.
let me know if it works for you.

Daniel

22 Dec 2010, 1:53 AM
#2246
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

Hi Frank, I updated the zip file with an updated css file.
I tested it on a fresh 1.3.8a and it seems to be good now.
let me know if it works for you.

Daniel

YOU rock! Works on 1.38a.

You're the man!!

Everyone else: Make sure you completely remove the old zen lightbox...including the sql file and then install Daniel's update.

22 Dec 2010, 4:02 AM
#2247
ccbearyeh avatar

ccbearyeh

New Zenner

Join Date:
Aug 2010
Posts:
3
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

After I override the option.php, everything works fine.

Thanks~

22 Dec 2010, 5:03 AM
#2248
adam2020 avatar

adam2020

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

Works great thanks,

I just changed the css file so the prev and next images show without the need to hover.

Removed #lbPrevLink:hover and #lbNextLink:hover and moved the call to images into #lbPrevLink and #lbNextLink like so.....

#lbPrevLink {
left: 0;
background: transparent url(../images/zen_lightbox/prevlabel.gif) no-repeat 0 15%;
}

#lbNextLink {
right: 0;
background: transparent url(../images/zen_lightbox/nextlabel.gif) no-repeat 100% 15%;
}

22 Dec 2010, 4:04 PM
#2249
weljkodj avatar

weljkodj

New Zenner

Join Date:
Oct 2010
Posts:
34
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

Hey All, Sorry about the issue with the options.php file, I did some last minute edits on it and forgot to re-zip the folder.
the line echo ']'; should be the last line before ?>

I've updated the zip file with the options file updated

Here is a link to a new file
http://goo.gl/fCENH

Daniel

Hey Daniel,

Good work on this update!

Does your update works together with Image Handler latest version? I see that original ZL was compatible with it. I noticed that both addons use the same overriden file "additional_images.php". So I guessthey have to be merged?

22 Dec 2010, 6:05 PM
#2250
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

weljkodj:

Hey Daniel,

Good work on this update!

Does your update works together with Image Handler latest version? I see that original ZL was compatible with it. I noticed that both addons use the same overriden file "additional_images.php". So I guessthey have to be merged?

I have not used Image Handler. I can try to install it today and see how it goes.
Is there any feature in particular that i should look out for?

daniel

22 Dec 2010, 7:36 PM
#2251
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

I have not used Image Handler. I can try to install it today and see how it goes.
Is there any feature in particular that i should look out for?

daniel

Daniel, I installed the latest IH for ZC and it works great.

Frank

22 Dec 2010, 7:37 PM
#2252
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

Linux:

Daniel, I installed the latest IH for ZC and it works great.

Frank

Wonderful!, thanks for the update Frank.

22 Dec 2010, 9:21 PM
#2253
weljkodj avatar

weljkodj

New Zenner

Join Date:
Oct 2010
Posts:
34
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Linux:

Daniel, I installed the latest IH for ZC and it works great.

Frank

How are you dealing with additional_images.php?
Did you just overwrite with IH version of additional_images.php or what?

22 Dec 2010, 11:25 PM
#2254
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

weljkodj:

How are you dealing with additional_images.php?
Did you just overwrite with IH version of additional_images.php or what?

From what I can tell, the main changes in Zen LightBox to the additional_images.php file are mainly to work with Image Handler.
The code shows lines like this:

if (function_exists('handle_image')) {
	  $flag_has_large = true;
	}

I just did a fresh install of 1.3.9h then installed IH2 (worked fine) then I installed Zen LightBox 1.6 (including additional_images.php) and everything seems to still be working just fine!

daniel

24 Dec 2010, 3:20 AM
#2255
megabonez avatar

megabonez

New Zenner

Join Date:
Dec 2009
Posts:
3
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hey Niestudio,

Sorry if this was already mentioned but I could not seem to find it through all the updates. Can you explain what files need to be changed to resolve the chrome issue (when the lightbox opens and just stalls - no image). I'm using v1.5. Everything seems to work fine except for chrome.

I have a custom deployment on mine and it was a pain to get the lightbox originally installed so a clean install would be a real hassle.

Thanks,
-A

24 Dec 2010, 5:27 AM
#2256
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

megabonez:

Hey Niestudio,

Sorry if this was already mentioned but I could not seem to find it through all the updates. Can you explain what files need to be changed to resolve the chrome issue (when the lightbox opens and just stalls - no image). I'm using v1.5. Everything seems to work fine except for chrome.

I have a custom deployment on mine and it was a pain to get the lightbox originally installed so a clean install would be a real hassle.

Thanks,
-A

Hi A, I didn't really troubleshoot it browser by browser like that, I just started with the old scripts and looked for more current technology to update to.
I did notice during one phase of troubleshooting that I had some very old (prior to ZLB 1.5) scripts inside of **includes/templates/your_template/jscript ** that seemed to be causing issues.

As a test you could create another folder called old_scripts inside of the jscript folder and move all but the 2 files starting with 'zen_lightbox' into that folder.

IF that works for you, and you see no other issues with your site, it may be safe to leave them excluded (in the old_scripts folder) from your site. I dont know what other extensions you may have installed, so I can't say that its safe to remove everything.

Hope this helps

daniel

24 Dec 2010, 5:50 AM
#2257
megabonez avatar

megabonez

New Zenner

Join Date:
Dec 2009
Posts:
3
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Thanks Nie for your prompt response. It looks like the only jscripts i have are the two you mentioned. I guess I will just have to upload a new version. What is the most recent download link and why has it not been updated on the Zen Cart plug ins? It looks like the last zen lightbox was upload in '08?

Thanks
-A

24 Dec 2010, 5:55 AM
#2258
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

megabonez:

Thanks Nie for your prompt response. It looks like the only jscripts i have are the two you mentioned. I guess I will just have to upload a new version. What is the most recent download link and why has it not been updated on the Zen Cart plug ins? It looks like the last zen lightbox was upload in '08?

Thanks
-A

Hi A,
this is the latest link http://goo.gl/fCENH.
I didn't update it on the plugins page yet because I figured it a little safer to have a few people test it here to see if there are any other issues to address (which we have). A few other users have successfully updated though.

let me know how it goes for you.
remember to backup just incase :)

daniel

28 Dec 2010, 2:44 PM
#2259
heyits007 avatar

heyits007

Zen Follower

Join Date:
Sep 2010
Posts:
270
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Does anyone have a demo URL link for this lightbox system installed on a ZenCart web site ?

I'm curious to see how it works and presents on screen, before I decide on whether or not to install it.

29 Dec 2010, 1:05 AM
#2260
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

HeyIts007:

Does anyone have a demo URL link for this lightbox system installed on a ZenCart web site ?

I'm curious to see how it works and presents on screen, before I decide on whether or not to install it.

Here is an **example**

Click on the larger image to see Zen Lightbox in action