Zen Colorbox

Views: 109,242

Results 321 to 340 of 350
6 Oct 2022, 11:30 PM
#321
mc12345678 avatar

mc12345678

Totally Zenned

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

Zen Colorbox

OopsIbrickedIT:

Zen zart 1.5.x Mariadb 10.4

I tried to install Colorbox and everything went fine but when installing SQL patch I got 1064 syntax error:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ', 'Allow version checking if Zen ...' at line 1
in:
[INSERT IGNORE INTO zen_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Zen Colorbox', 'ZEN_COLORBOX_STATUS', 'true', '
If true, all product images on the following pages will be displayed within a lightbox:

  • document_general_info
  • document_product_info
  • page (EZ-Pages)
  • product_free_shipping_info
  • product_info
  • product_music_info
  • product_reviews
  • product_reviews_info
  • product_reviews_write

Default: true', @cgi, 10, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), ('Zen Colorbox (Update Check)', 'ZEN_COLORBOX_PLUGIN_CHECK', , 'Allow version checking if Zen Cart version checking enabled

If false, no version checking performed.
If true, then only if Zen Cart version checking is on:', @cgi, 20, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), ('Overlay Opacity', 'ZEN_COLORBOX_OVERLAY_OPACITY', '0.6', '
Controls the transparency of the overlay.

Default: 0.6', @cgi, 30, NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''0.1'', ''0.2'', ''0.3'', ''0.4'', ''0.5'', ''0.6'', ''0.7'', ''0.8'', ''0.9'', ''1''), '), ('Resize Duration', 'ZEN_COLORBOX_RESIZE_DURATION', '400', '
Controls the speed of the image resizing.

Note: This value is measured in milliseconds.

Default: 400
', @cgi, 40, NOW(), NULL, NULL), ('Initial Width', 'ZEN_COLORBOX_INITIAL_WIDTH', '250', '
If Enable Resize Animations is set to true, the lightbox will resize its width from this value to the current image width, when first displayed.

Note: This value is measured in pixels.

Default: 250
', @cgi, 50, NOW(), NULL, NULL), ('Initial Height', 'ZEN_COLORBOX_INITIAL_HEIGHT', '250', '
If Enable Resize Animations is set to true, the lightbox will resize its height from this value to the current image height, when first displayed.

Note: This value is measured in pixels.

Default: 250
', @cgi, 60, NOW(), NULL, NULL), ('Display Image Counter', 'ZEN_COLORBOX_COUNTER', 'true', '
If true, the image counter will be displayed (below the caption of each image) within the lightbox.

Default: true', @cgi, 70, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'), ('Close on Overlay Click', 'ZEN_COLORBOX_CLOSE_OVERLAY', 'false', '
If true, the lightbox will close when the overlay is clicked.

Default: false', @cgi, 80, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), ('Loop', 'ZEN_COLORBOX_LOOP', 'true', '
If true, Images will loop in both directions.

Default: true', @cgi, 90, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), ('Slideshow', 'ZEN_COLORBOX_SLIDESHOW', 'false', '
If true, Images will display as a slideshow.

Default: false', @cgi, 100, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (' Slideshow Auto Start', 'ZEN_COLORBOX_SLIDESHOW_AUTO', 'true', '
If true, your slideshow will auto start.

Default: true', @cgi, 110, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (' Slideshow Speed', 'ZEN_COLORBOX_SLIDESHOW_SPEED', '2500', '
Sets the speed of the slideshow

Note: This value is measured in milliseconds.

Default: 2500', @cgi, 120, NOW(), NULL, NULL), (' Slideshow Start Text', 'ZEN_COLORBOX_SLIDESHOW_START_TEXT', 'start slideshow', '
Link text to start the slideshow.

Default: start slideshow', @cgi, 130, NOW(), NULL, NULL), (' Slideshow Stop Text', 'ZEN_COLORBOX_SLIDESHOW_STOP_TEXT', 'stop slideshow', '
Link text to stop the slideshow.

Default: stop slideshow', @cgi, 140, NOW(), NULL, NULL), ('Gallery Mode', 'ZEN_COLORBOX_GALLERY_MODE', 'true', '
If true, the lightbox will allow additional images to quickly be displayed using previous and next buttons.

Default: true', @cgi, 150, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'), (' Include Main Image in Gallery', 'ZEN_COLORBOX_GALLERY_MAIN_IMAGE', 'true', '
If true, the main product image will be included in the lightbox gallery.

Default: true', @cgi, 160, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'), ('EZ-Pages Support', 'ZEN_COLORBOX_EZPAGES', 'true', '
If true, the lightbox effect will be used for linked images on all EZ-Pages.

Default: true', @cgi, 170, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'), (' File Types', 'ZEN_COLORBOX_FILE_TYPES', 'jpg,png,gif', '
On EZ-Pages, the lightbox effect will be applied to all images with one of the following file types.

Default: jpg,png,gif
', @cgi, 180, NOW(), NULL, NULL);]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

> 
> I am stuck with this. Seems there has been Colorbox earlier or at least it works on the site but no admin options are visible thanks to this error.
> 
> Any help would be greatly appreciated.
> BR,
> Oops

Please forgive me for looking at the current github fileset. I don't see the above sql exactly as required to be executed. By that I mean there is a fileset that is expected to perform the install/upgrade. It has similar statements, but not exactly as it executes each query rather than one giant one. The Readme file shows something similar, but doesn't appear to have the problem that the above has. 

So the problem with the above query is that this portion: 

'ZEN_COLORBOX_PLUGIN_CHECK', , 'Allow

Has that comma followed by a space followed by a comma. 

The Readme shows a text value of 'true' in that space, but the above shows nothing. 

So why does the Readme show the query? Too many have questioned what happens, or they come across an issue and want to know what was expected, etc. Lastly to that though, because a previous author took a lot of trouble to incorporate it and I didn't see the benefit of removing it. After all navigation of the site after file incorporation causes the install, so running the sql again really does nothing other than waste time and in this case energy. 

So, if the version being installed doesn't look like what is in Github, perhaps could offer some more info to be able to track down the issue.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

2 Nov 2022, 12:54 PM
#322
allmart avatar

allmart

Zen Follower

Join Date:
Feb 2016
Location:
Canada
Posts:
192
Plugin Contributions:
0

Re: Zen Colorbox

Hello,
I have just installed colorbox on my new test site running v1.5.7d and all seems to be working however when I access the configuration page for colorbox, the page is blank so I can't make any changes to the settings.

2 Nov 2022, 2:51 PM
#324
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Zen Colorbox

allmart:

Hello,
I have just installed colorbox on my new test site running v1.5.7d and all seems to be working however when I access the configuration page for colorbox, the page is blank so I can't make any changes to the settings.

dbltoe:

Use this guideline to help troubleshoot.

https://docs.zen-cart.com/user/troubleshooting/blank_page/

Also helps to clarify what is meant by a "blank page". It may be that there are conflicting configuration ids in the database. Resolution to that issue if no error messages are otherwise logged is to run the uninstall sql at least twice in a row. Not 100% sure why twice is necessary, but it has proven to work.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

2 Nov 2022, 4:17 PM
#325
allmart avatar

allmart

Zen Follower

Join Date:
Feb 2016
Location:
Canada
Posts:
192
Plugin Contributions:
0

Re: Zen Colorbox

I ran uninstall_1.5.sql once and re-installed which resolved the problem, thank you for your help.

28 Nov 2022, 12:38 AM
#326
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Zen Colorbox

Thank you mc12345678 and sorry for my very late response but I was hospitalized again and forgot this issue. Of course it was my brainfart to try to run this again without dropping it first but if I remember right I found your githubs account a installer and I think it dropped the previous and then it worked fine. Thanks again mc12345678!

28 Nov 2022, 4:10 AM
#327
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Zen Colorbox

OopsIbrickedIT:

Thank you mc12345678 and sorry for my very late response but I was hospitalized again and forgot this issue. Of course it was my brainfart to try to run this again without dropping it first but if I remember right I found your githubs account a installer and I think it dropped the previous and then it worked fine. Thanks again mc12345678!

No problem, glad you have made it back, priorities matter and this forum will be here whenever available. Glad to hear though that the issue for resolved through a "standard" process.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

31 Jan 2023, 5:11 PM
#328
generikz avatar

generikz

New Zenner

Join Date:
Sep 2011
Location:
Tokyo
Posts:
26
Plugin Contributions:
0

Re: Zen Colorbox

[QUOTE=OopsIbrickedIT;1390564]I tried to install Colorbox and everything went fine but when installing SQL patch I got 1064 syntax error:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ', 'Allow version checking if Zen ...' at line 1[/QUOTE]

Hello!

Got exactly the same problem tonight trying to upgrade from Lightbox to Colorbox.

The SQL script in the readme of the current v2.1.2 has some PHP code left-over that breaks its execution with the Error 1064.

[CODE]('Zen Colorbox (Update Check)', 'ZEN_COLORBOX_PLUGIN_CHECK', <?php echo SHOW_VERSION_UPDATE_IN_HEADER; ?>, 'Allow version checking (...)

The github indeed gives what should be here ('true'):

('Zen Colorbox (Update Check)', 'ZEN_COLORBOX_PLUGIN_CHECK', 'true', 'Allow version checking (...)

And with that it works right away.

Now, the reason I was upgrading was because Lightbox was breaking the responsive_classic for product listings... and the same issue is happening with Colorbox. Really scratching my head.

Will investigate further but so far I don't know that could be happening.

Julien

17 Aug 2023, 9:49 AM
#329
targetmarts avatar

targetmarts

Zen Follower

Join Date:
Jan 2018
Posts:
122
Plugin Contributions:
0

Re: Zen Colorbox

Can anyone help me solve the plugin error problem?

This also contributes to the compatibility and update of the latest version of Zencart with plugins
site:https://heelsbags.com
Database Engine: MySQL 5.6.51-cll-lve
HTTP Server: Apache
PHP Version: 8.1.21 (Zend: 4.1.21)
zen cart v1.5.8a
plugins:
Zen Colorbox from https://github.com/daniel-hopkins/zen-colorbox or zen-cart.com
(for this plugins i have first error:can't display images in product info,and maybe i have fix it from /public_html/heelsbags/includes/modules/responsive_classic/zen_colorbox.php on line 18 "LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT" to "LARGE_IMAGE_MAX_WIDTH, LARGE_IMAGE_MAX_HEIGHT")

Image Handler5 Version: 5.3.4

--> PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /home/.../public_html/heelsbags/includes/modules/responsive_classic/additional_images.php:121
Stack trace:
#0 /home/.../public_html/heelsbags/includes/templates/responsive_classic/templates/tpl_modules_additional_images.php(12): require()
#1 /home/.../public_html/heelsbags/includes/templates/responsive_classic/templates/tpl_product_info_display.php(169): require('/home/g67mwiq1l...')
#2 /home/.../public_html/heelsbags/includes/modules/pages/product_info/main_template_vars.php(156): require('/home/g67mwiq1l...')
#3 /home/.../public_html/heelsbags/includes/templates/responsive_classic/common/tpl_main_page.php(178): require('/home/g67mwiq1l...')
#4 /home/.../public_html/heelsbags/index.php(94): require('/home/g67mwiq1l...')
#5 {main}
thrown in /includes/modules/responsive_classic/additional_images.php on line 121.
here is the code of additional_images.php on line 121.
$list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',


#0 /home/.../public_html/heelsbags/includes/init_includes/init_sessions.php(125): zen_debug_error_handler()
#1 /home/.../public_html/heelsbags/includes/autoload_func.php(40): require_once('/home/g67mwiq1l...')
#2 /home/.../public_html/heelsbags/includes/application_top.php(237): require('/home/g67mwiq1l...')
#3 /home/.../public_html/heelsbags/index.php(25): require('/home/g67mwiq1l...')
--> PHP Warning: Undefined array key "SSL_SESSION_ID" in /home/.../public_html/heelsbags/includes/init_includes/init_sessions.php on line 125.
here is the code of init_sessions.php on line 125
$ssl_session_id = $_SERVER['SSL_SESSION_ID'];

18 Aug 2023, 12:39 AM
#330
targetmarts avatar

targetmarts

Zen Follower

Join Date:
Jan 2018
Posts:
122
Plugin Contributions:
0

Re: Zen Colorbox

Ok,i have fixed it:
/includes/modules/responsive_classic/zen_colorbox.php
/includes/templates/responsive_classic/templates/tpl_modules_main_product_image.php
"LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT" to "LARGE_IMAGE_MAX_WIDTH, LARGE_IMAGE_MAX_HEIGHT")

21 Aug 2023, 2:02 PM
#331
targetmarts avatar

targetmarts

Zen Follower

Join Date:
Jan 2018
Posts:
122
Plugin Contributions:
0

Re: Zen Colorbox

targetmarts:

Ok,i have fixed it:
/includes/modules/responsive_classic/zen_colorbox.php
/includes/templates/responsive_classic/templates/tpl_modules_main_product_image.php
"LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT" to "LARGE_IMAGE_MAX_WIDTH, LARGE_IMAGE_MAX_HEIGHT")
https://heelsbags.com
Database Engine: MySQL 5.6.51-cll-lve
HTTP Server: Apache
PHP Version: 8.1.21 (Zend: 4.1.21)
zen cart v1.5.8a
plugins:
Zen Colorbox
Image Handler5 Version: 5.3.4

so if you have same error,maybe you need try to fix it as me.

19 Nov 2023, 1:43 PM
#332
erwin68 avatar

erwin68

New Zenner

Join Date:
Nov 2023
Posts:
2
Plugin Contributions:
0

Re: Zen Colorbox

Hi targetmarts,
I also changed the file
/includes/modules/responsive_classic/additional_images.php
"LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT" to "LARGE_IMAGE_MAX_WIDTH, LARGE_IMAGE_MAX_HEIGHT")

23 Jan 2024, 2:47 AM
#333
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: Zen Colorbox

Running 1.5.8a on 8.2.14 with Responsive Classic theme. How can I make the overlay more mobile friendly? The popup images are huge on a mobile and require horizontal and vertical swiping to see the whole image. I'd like to have the image be constrained to the size of the mobile screen.

Thank you,
John

23 Jan 2024, 3:47 AM
#334
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: Zen Colorbox

welp, I'm at a complete loss. I have another website that I built about a year ago now (1.5.8a) also using IH5 and colorbox. Either colorbox just worked for mobile screens or I made it work. I can't figure out why one site is working for mobiles and the other is not. I would certainly appreciate a push in the right direction.

23 Jan 2024, 4:16 PM
#335
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: Zen Colorbox

I just copied all the colorbox files from the site where it's working well on mobile over to the new site, gave them a little massage and it's working. I'm not gonna bother grepping... it's working and i'm moving on. lol.

Thank you,
John

23 Mar 2024, 1:44 AM
#336
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Zen Colorbox

targetmarts:

https://heelsbags.com
Database Engine: MySQL 5.6.51-cll-lve
HTTP Server: Apache
PHP Version: 8.1.21 (Zend: 4.1.21)
zen cart v1.5.8a
plugins:
Zen Colorbox
Image Handler5 Version: 5.3.4

so if you have same error,maybe you need try to fix it as me.

Thanks for posting the fix - much appreciated.

30 Mar 2024, 9:01 PM
#337
planetjune avatar

planetjune

New Zenner

Join Date:
Jul 2008
Posts:
36
Plugin Contributions:
0

Re: Zen Colorbox

I'm in the process of upgrading my Zen Cart to 1.5.8a and noticed a problem with this plugin - the lightbox for the search page 'help' box no longer works. After a little thinking I realised that it's because advanced_search throughout the ZC code has now been renamed as search, so to fix it all you need to do is move the file:

/includes/modules/pages/advanced_search/jscript_zen-colorbox.php

to:

/includes/modules/pages/search/jscript_zen-colorbox.php

To make the plugin compatible with all versions of ZC, I think that a new version of the plugin that includes both of the above files should do the trick?

22 Sep 2024, 4:32 PM
#338
heavensportal avatar

heavensportal

New Zenner

Join Date:
Jun 2021
Posts:
95
Plugin Contributions:
0

Re: Zen Colorbox

does this version work with zencart 2.01?

23 Sep 2024, 3:20 AM
#339
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Zen Colorbox

heavensportal:

does this version work with zencart 2.01?

I haven't tried it yet, so not sure. Maybe someone else could report their experience. I'm about to work on someone's site where they have partially installed 2.0.1 and will be investigating operation of this plugin as it appears they had this installed in an older site. I don't really expect much to need updating, but never know until actually test it out.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

25 Sep 2024, 12:00 AM
#340
heavensportal avatar

heavensportal

New Zenner

Join Date:
Jun 2021
Posts:
95
Plugin Contributions:
0

Re: Zen Colorbox

I just installed version 2.1.2 of this zip and except for IH5 and Ceon there are no other mods. I uploaded the files to where they matched the zip file and there were no errors.

However, there is no zen listed under config section at all. I removed them and tried the upload again and still none to be seen. Maybe the "install" directory in admin is no longer needed for zc2.0.1??

I also noticed that Igot that darn snow page of nothingness again for store end...LOL I will uninstall the files and wait.