Colorbox options not added to JavaScript code
-
Just a public service announcement…
I was having a problem displaying dynamically generated images from PHP, and had the “File as photo” option checked in the plugin options. However I noticed that the “photo:true” portion was not being added to the JavaScript code that was added to the page.
To fix this, I added the code below to line 138-ish in the plugin file classes/actions.class.php. File is version 2.6 according to comment headers.
if ( $lightboxPlusOptions['photo'] == '1' ) { $lbpArrayPrimary[] = 'photo:'.$this->setBoolean( $lightboxPlusOptions['photo'] ); }Here is a sample of what I was experiencing without the photo:true option added to ColorBox: http://stackoverflow.com/questions/8996744/colourbox-and-timthumb-php
Thanks
The topic ‘Colorbox options not added to JavaScript code’ is closed to new replies.