Member
Member
fdnyfish   12-07-2013, 23:21
#1

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?

Administrator
Administrator
acrylian   13-07-2013, 08:43
#2

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.

Member
Member
fdnyfish   13-07-2013, 17:03
#3

I don't have a slideshow foler in plugins

Administrator
Administrator
acrylian   13-07-2013, 17:12
#4

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

Member
Member
tplowe56   13-07-2013, 22:58
#5

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/

Member
Member
fdnyfish   14-07-2013, 00:47
#6

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

thanks for the instructions

Administrator
Administrator
acrylian   14-07-2013, 07:47
#7

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.