The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. William Rettmann
    Posted 3 years 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

  • RSS feed for this topic
  • Started 3 years ago by William Rettmann
  • This topic is not resolved
  • WordPress version: 3.6


No tags yet.