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

Zen Lightbox addon [Support Thread]

Views: 952,650

Results 3,501 to 3,520 of 3,722
13 Nov 2013, 23:45
#3501
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Zen Lightbox addon [Support Thread]

mc12345678:

I thought the discussion of GH and Zen LightBox got moved to elsewhere. My understanding is that one person setup GH, another had posted the update here on ZC, so not sure (without comparing the two filesets) if they are/were the same. That said, the GH files are there for mod/continued improvement if an issue has/will be identified. Please feel free to evaluate for the issues of concern and contribute back the changes/suggestions.

I did not see a link to another thread or I would have posted their.

However, the same code exists in the latest version uploaded to the plugins.

Just making a mere suggestion that this should be re-evaluated. That's all.

14 Nov 2013, 00:38
#3502
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

rbarbour:

Are the files on GH the updated and newest files?

If so, their seems to be allot of unnecessary code copied from the slimbox.php file from google groups that is not needed and may cause issues.

That file is generic and the custom options may/may not override options.php (ADMIN Configurations).

You are absolutely right about the extra unnecessary code.
I took the zip file posted here, and the comments from others that said "It works!" and blindly committed it to the project.

While it does "work", I do not want to use the eval() method that was used in the responsive "fix".
Today I have been manually un-minifying that code so that I can use basic minified JS instead.

GH has been updated just now, with some code & structure updates. Proceed with caution though, it still needs some testing

14 Nov 2013, 00:48
#3503
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Lightbox addon [Support Thread]

niestudio:

You are absolutely right about the extra unnecessary code.
I took the zip file posted here, and the comments from others that said "It works!" and blindly committed it to the project.

While it does "work", I do not want to use the eval() method that was used in the responsive "fix".
Today I have been manually un-minifying that code so that I can use basic minified JS instead.

GH has been updated just now, with some code & structure updates. Proceed with caution though, it still needs some testing

Is there a discussion forum or such on GH where we can continue the discussion of GH and Zen LightBox???

14 Nov 2013, 00:50
#3504
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

DivaVocals:

Is there a discussion forum or such on GH where we can continue the discussion of GH and Zen LightBox???

"Issues" I think can be brought up with comments (discussion) associated.

14 Nov 2013, 00:59
#3505
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

DivaVocals:

Is there a discussion forum or such on GH where we can continue the discussion of GH and Zen LightBox???

mc12345678:

"Issues" I think can be brought up with comments (discussion) associated.

Check out: https://github.com/niestudio/zen_lightbox/issues/3

17 Nov 2013, 01:38
#3507
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

I need help fixing an issue we are currently experiencing on our site with this mod. We are currently using zen_lightbox-v1.6.4a_1.5. If you go here: http://www.clevershoppers.com/index.php?main_page=product_reviews&cPath=388_408&products_id=13478 you will notice the extra garbage ([EI2915]">) on top of the image. If I disable Zen Lightbox, this garbage goes away and everything works as expected. We are also using image handler on our site and I made sure it was installed before Zen Lightbox since Zen Lightbox also share some files with Image Handler (and supposedly included what's needed by Image Handler). Thanks for help me troubleshoot this problem.

17 Nov 2013, 02:01
#3508
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

BlessIsaacola:

I need help fixing an issue we are currently experiencing on our site with this mod. We are currently using zen_lightbox-v1.6.4a_1.5. If you go here: http://www.clevershoppers.com/index.php?main_page=product_reviews&cPath=388_408&products_id=13478 you will notice the extra garbage ([EI2915]">) on top of the image. If I disable Zen Lightbox, this garbage goes away and everything works as expected. We are also using image handler on our site and I made sure it was installed before Zen Lightbox since Zen Lightbox also share some files with Image Handler (and supposedly included what's needed by Image Handler). Thanks for help me troubleshoot this problem.

I know I had this same problem and it has to do with the model number---that is the garbage you see

I am looking thru my files to find the fix which was somewhere in this forum..several months ago.

forgot to mention that I think it has nothing to do with lightbox or IH either

17 Nov 2013, 02:08
#3509
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

I know I had this same problem and it has to do with the model number---that is the garbage you see

I am looking thru my files to find the fix which was somewhere in this forum..several months ago.

forgot to mention that I think it has nothing to do with lightbox or IH either

Thanks for your prompt response. If you find your solution please let me know. I will continue to dig through this thread to see if I find it. The fact that the problem goes away when I disable Zen Lightbox makes me to think it they are somewhat related but perhaps not.

17 Nov 2013, 02:10
#3510
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

still looking, I usually write down what I find as a "fix" to problems for later looking at but had a slight computer outage not long ago and can find it quickly right nw...

but if I recall it was brought up here or in the IH3 thread and it was found that it was not them but a main file....but as I said that was a couple of months ago and I can't remember/

will be back

17 Nov 2013, 02:43
#3511
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

I think this is it:

mainly because if you notice it is ONLY in the reviews to read area:

To fix this in the includes/modules/pages/product_reviews/header_php.php file

FIND:

if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
} else {
$products_name = $review->fields['products_name'];
}

REPLACE WITH THIS:

if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields']</span>';
} else {
$products_name = $review->fields['products_name'];
}
}

hope it works

17 Nov 2013, 03:07
#3512
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

I think this is it:

mainly because if you notice it is ONLY in the reviews to read area:

To fix this in the includes/modules/pages/product_reviews/header_php.php file

FIND:

if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
} else {
$products_name = $review->fields['products_name'];
}

REPLACE WITH THIS:

if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields']</span>';
} else {
$products_name = $review->fields['products_name'];
}
}

hope it works

Thanks for the post. That did not work. I got a blank page with the following error in the log:> [16-Nov-2013 22:05:16 America/New_York] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /includes/modules/pages/product_reviews/header_php.php on line 43

17 Nov 2013, 03:18
#3513
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

try leaving out the very last }

I may have added in an extra one...and make sure you do not remove anything other than what it needs removed

<span class="smallText">[' . $review->fields['products_model'] . ']</span>'; < --- this is the culprit

<span class="smallText">[' . $review->fields']</span>'; <---should look like this so remove the text in red

17 Nov 2013, 03:35
#3514
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Lightbox addon [Support Thread]

BlessIsaacola:

I need help fixing an issue we are currently experiencing on our site with this mod. We are currently using zen_lightbox-v1.6.4a_1.5. If you go here: http://www.clevershoppers.com/index.php?main_page=product_reviews&cPath=388_408&products_id=13478 you will notice the extra garbage ([EI2915]">) on top of the image. If I disable Zen Lightbox, this garbage goes away and everything works as expected. We are also using image handler on our site and I made sure it was installed before Zen Lightbox since Zen Lightbox also share some files with Image Handler (and supposedly included what's needed by Image Handler). Thanks for help me troubleshoot this problem.

the includes/modules/pages/product_reviews/header_php.php file uses different code to display the product name and model number than the includes/modules/pages/product_reviews_write/header_php.php file. It would appear that the activation of the Zen Lightbox or Zen Colorbox add-ons simply made it easier to spot this difference.

It's not really an issue with this mod.. It's a minor Zen Cart core code issue that is ILLUMINATED when this mod is activated.. It has been marked as being fixed in v1.6. Solution is in the post below:

http://www.zen-cart.com/showthread.php?209750-Done-v1-6-0-quot-Write-Reviews-quot-Minor-issue-with-model-number-display

17 Nov 2013, 03:42
#3515
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

try leaving out the very last }

I may have added in an extra one...and make sure you do not remove anything other than what it needs removed

<span class="smallText">[' . $review->fields['products_model'] . ']</span>'; < --- this is the culprit

<span class="smallText">[' . $review->fields']</span>'; <---should look like this so remove the text in red
Thanks! Since basically, we are removing the product_model I tried this which works:```php
// if (zen_not_null($review->fields['products_model'])) {
// $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
// } else {
$products_name = $review->fields['products_name'];
// }

The section of the code above is simply saying, if product_model exist use it and if not, use product name. Since the product_model on the review page is causing issue right now, I basically changed it to just show product name without the product model. It solves the problem I am currently experiencing but hope it didn't create something else but I am not seeing any error in the log at the moment.

Thank you so much for your assistance. You're a GOODAngel :D
17 Nov 2013, 04:12
#3516
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

DivaVocals:

It's not really an issue with this mod.. It's a minor Zen Cart core code issue that is ILLUMINATED when this mod is activated.. It has been marked as being fixed in v1.6. Solution is in the post below:

http://www.zen-cart.com/showthread.php?209750-Done-v1-6-0-quot-Write-Reviews-quot-Minor-issue-with-model-number-display

Thank you so much! Applied the solution from your link and that worked so the problem is resolved. Also good to know I don't even have to remember when we upgrade to 1.6.0 since the problem is resolved in that version.

20 Nov 2013, 03:03
#3517
lunabug avatar

lunabug

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

Is there a way to display more than one product image?

For example, I have 5 images for one product, how do I show all of these on the products page and/or have them show up in the lightbox?

Thanks,
Leslie

20 Nov 2013, 03:17
#3518
pewe avatar

pewe

Zen Follower

Join Date:
Aug 2006
Posts:
134
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

lunabug:

Is there a way to display more than one product image?

For example, I have 5 images for one product, how do I show all of these on the products page and/or have them show up in the lightbox?

Thanks,
Leslie

Have a look at this page.

Once the additional images are added, they appear in Lightbox.

:cool:

20 Nov 2013, 04:41
#3519
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

or install Image Handler 3 or 4 depending on store version

20 Nov 2013, 05:02
#3520
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Lightbox addon [Support Thread]

And none of this is directly related to Zen Lightbox support..