Skip to content

bcp-software/MantisBT-Lightbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MantisBT Lightbox Plugin

A MantisBT plugin to open image attachments using Lightbox2.

Requirements

  • MantisBT 2.25.0 or higher

Note: For MantisBT 1.2–1.3, use the original infojunkie/MantisBT-Lightbox (archived).

Installation

  1. Download and unzip the plugin into your MantisBT plugins/ folder so the path is plugins/Lightbox/.
  2. Log in as administrator and go to Manage → Plugins.
  3. Find Lightbox Integration and click Install.

Configuration

Go to Manage → Plugins → Lightbox Integration → Configuration:

Setting Description Default
Show Lightbox on preview click Opens inline image previews in Lightbox ON
Show Lightbox on image link Opens download links for image files in Lightbox OFF
Image extensions Comma-separated list of extensions to treat as images (for link mode) jpg,jpeg,png,gif

Changelog

1.2 (2025)

  • MantisBT 2.25+ compatibility — updated MantisCore version requirement
  • Fixed CSP compliance — replaced inline <script> variable injection with an external pages/vars.php served as application/javascript; replaced $.getScript() (which uses eval(), blocked by MantisBT's script-src 'self' CSP) with a static defer script tag
  • Fixed config page — replaced removed html_page_top()/html_page_bottom() with the MantisBT 2.x layout API (layout_page_header, layout_page_begin, layout_page_end) and updated the form markup to Bootstrap
  • Updated DOM selectors — now correctly targets div.bug-attachment-preview-image and sets href to the show_inline URL so Lightbox2 can render the image

1.1

  • Initial port attempt for MantisBT 2.x

1.0

  • Original release for MantisBT 1.2–1.3 by Karim Ratib and Kaue Santoja

Credits

License

GPL v2 — see LICENSE.

About

Lightbox integration for Mantis bug tracker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 83.4%
  • JavaScript 16.6%