ZenphotoCMS Forum
zpArdoise Colorbox Slideshow - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: zpArdoise Colorbox Slideshow (/thread-11191.html)



zpArdoise Colorbox Slideshow - fdnyfish - 12-07-2013

I am using zpArdoise and have colorbox enabled on album page.

When I click on a image and colorbox opens, the slideshow starts by default and at the bottom of the window there is a link to STOP SLIDESHOW.

How do default colorbox not to start the slideshow automatically?




zpArdoise Colorbox Slideshow - acrylian - 13-07-2013

If it is using the official slideshow plugin you will have to modify it. Colorbox has a parameter for that. http://www.jacklmoore.com/colorbox/

Look at the slideshow.php of the plugin around lines 580-595 and add slideshowAuto: false, to the JS configuration.




zpArdoise Colorbox Slideshow - fdnyfish - 13-07-2013

I don't have a slideshow foler in plugins




zpArdoise Colorbox Slideshow - acrylian - 13-07-2013

It is an official plugin and therefore in zp-core/zp-extensions of course.




zpArdoise Colorbox Slideshow - tplowe56 - 13-07-2013

Go to: /zp-core/zp-extensions/colorbox_js/jquery.colorbox-min.js

Change: slideshowAuto: !0,
To: slideshowAuto: !1,

Colorbox will now display with slideshow off unless started by user.

If you have a problem viewing the JavaScript use JavaScript beautifier to reformat. Makes the code much easier to examine.

http://www.javascriptbeautifier.com/

Many more settings available at: http://www.jacklmoore.com/colorbox/




zpArdoise Colorbox Slideshow - fdnyfish - 14-07-2013

I also had to change z.slideshowAuto?0 to z.slideshowAuto?1

thanks for the instructions




zpArdoise Colorbox Slideshow - acrylian - 14-07-2013

Actually you should change the definition within /zp-core/zp-extensions/slideshow.php and there within the printSlideshowlink() function which calls and executes the Colorbox slideshow.