WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. William Rettmann
    Member
    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

    Thanks

    http://wordpress.org/plugins/lightbox-plus/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.