A MantisBT plugin to open image attachments using Lightbox2.
- MantisBT 2.25.0 or higher
Note: For MantisBT 1.2–1.3, use the original infojunkie/MantisBT-Lightbox (archived).
- Download and unzip the plugin into your MantisBT
plugins/folder so the path isplugins/Lightbox/. - Log in as administrator and go to Manage → Plugins.
- Find Lightbox Integration and click Install.
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 |
- MantisBT 2.25+ compatibility — updated
MantisCoreversion requirement - Fixed CSP compliance — replaced inline
<script>variable injection with an externalpages/vars.phpserved asapplication/javascript; replaced$.getScript()(which useseval(), blocked by MantisBT'sscript-src 'self'CSP) with a staticdeferscript 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-imageand setshrefto theshow_inlineURL so Lightbox2 can render the image
- Initial port attempt for MantisBT 2.x
- Original release for MantisBT 1.2–1.3 by Karim Ratib and Kaue Santoja
- Original plugin: Karim Ratib and Kaue Santoja
- MantisBT 2.x port: Marco Wobben / CaseTalk
- Lightbox2: Lokesh Dhakar
GPL v2 — see LICENSE.