Ready to get started?Download WordPress


Lightbox Plus Colorbox
Colorbox options not added to JavaScript code (1 post)

  1. William Rettmann
    Posted 1 year ago #

    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



Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.