Activities: Lightbox Gallery

Maintained by Picture of Andrew HancoxAndrew Hancox, Picture of Adam OlleyAdam Olley
This resource allows you to create 'Lightbox' enabled image galleries within your Moodle course. As a course teacher, you are able to create, edit and delete galleries. Smallthumbnails will then be generated, which are used for the thumbnail view of the gallery.
3404 sites
65 fans
Current versions available: 8

Clicking on any of the thumbnails brings that image into focus, and allows you to scroll through the
gallery at your leisure. Using the Lightbox scripts creates nice transition effects when loading and
scrolling through the images.

For Moodle 2.x, YUI version:


Maintained by: NetSpot <>
Original plugin by: Paul Holden <pholden[at]greenhead[dot]ac[dot]uk>.

For the Moodle 1.9 jQuery version:

Moodle jQuery Lightbox Gallery v1.0.0 (16th Nov 11)


Ported to jQuery from:
Lightbox Gallery v2.2.1 (12th May 09)
by Paul Holden pholden[at]greenhead[dot]ac[dot]uk

Port performed by Andrew Hancox at Kineo.

External documentation URL:
Source control URL:
Bug tracker URL:
Website URL:


This plugin is part of set Lightbox Gallery.


Screenshot #0
Screenshot #1


Picture of Andrew Hancox
Andrew Hancox (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Adam Olley
    Wed, Feb 15, 2017, 8:38 AM
    Hi Akram,

    Unfortunately I haven't had the time yet to add support for the mobile app to this plugin. It's on a list of things to do, but admittedly isn't very high on that list.

    As with all things Moodle - if anyone is keen to take a crack at an implementation for it, that'd be awesome.
  • Picture of John Rickard
    Sat, Mar 4, 2017, 7:24 AM
    Hi everyone,

    I have just upgraded our site on a new server running Ubuntu 16, PHP7.0 and Moodle 3.1.

    We had the lightbox gallery plugin installed, I did the upgrade changing the git branch being used for this module to MOODLE_31_STABLE. Now when any admin tries to get to /admin pages we are getting an error 500.

    If we take the module folder away, the admin page returns but the only page we get is the "Plugins need attention" as if it were an upgrade, saying the module files are missing from disk... Once I put them back, the error 500 comes back.

    Permissions are OK, as the site runs fine without this module installed!

    I can't uninstall the module, as I can't get into the admin pages

    Any thoughts?
  • Picture of Nicolas Dunand
    Wed, Oct 4, 2017, 5:30 PM
    Hi Andrew, hi Adam,

    I've just submitted a PR on GitHub to support core_calendar notifications in Moodle new core block_myoverview block. Details are in the PR.
  • Picture of Sam Mudle
    Sun, Jul 1, 2018, 10:33 AM
    Moodle 3.5 - Is there a way to stop it from cutting off longer captions?
  • Picture of Sam Mudle
    Sun, Jul 1, 2018, 10:41 PM
    Ah found the setting DISPLAY FULL CAPTION TEXT..... thx...
  • Picture of Agustin Lopez
    Thu, Sep 13, 2018, 4:27 PM

    I am trying this plugin in Moodle 3.3 and all appears Ok but this do not display any image.
    I get the next error in the console:
    "Error in source mapping: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data URL del recurso:
    https://xxxxxx/lib/requirejs.php/-1/core/first.js URL of the source mapping:"

    Any help?
  • Picture of Adam Olley
    Fri, Sep 14, 2018, 7:42 AM
    Hi Agustin,
    The plugin doesnt use popper - so I'm guessing there's an issue with another plugin or change you have that is interferring with javascript on other pages.
  • Picture of Laura M
    Fri, Sep 21, 2018, 4:27 AM
    I'd like to be able to add video files, open the first slide automatically, and check whether students have viewed all images. Is it possible those features might be added in future versions?

  • Picture of Land Line
    Sun, Jun 16, 2019, 6:55 PM
    Wow! This light box gallery is just awesome!
  • Picture of Emil Stoyanov
    Thu, Dec 5, 2019, 12:55 AM
    There is a setting in Advanced section whether to Display full caption text. When set to No caption text is trimmed on both places - gallery and enlarged image. When set to Yes, full caption text is displayed both in the gallery and when image is enlarged. It will be great to have choice to display full caption text only when image is enlarged and not in the gallery so could look tidy.
  • Picture of Andreas Schenkel
    Sat, Jan 18, 2020, 8:59 PM
    With git checkout MOODLE_33_STABLE I can only checkout version that is for moodle 3.6. How to get the next version vor moodle 3.7 via git?
  • Picture of Andreas Schenkel
    Sat, Jan 18, 2020, 9:02 PM
    ups, sorry ... git checkout v3.7.0.1
  • Picture of Michaël WINCKLER
    Tue, Jan 21, 2020, 11:19 PM
    Hi everyone,

    Is it possible to upgrade this plugin for an installation in moodle 3.8 please ?

    Thank you in advance smile
  • Picture of Александр Гущин
    Sat, Apr 4, 2020, 2:33 AM
    Hi, I use latest version of Moodle and lightbox gallery. Suddenly, when working with a file, I received a diagnostic
    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 49152 bytes) in /var/www/vhosts/ on line 302
    Thank you in advance
  • ABS
    Thu, Apr 23, 2020, 4:05 AM

    How to delete one of the uploaded images in gallery show - lightbox, I already upload 40 images to light box, now I like to delete one of them ?
1 2 3 4 5 6 7 8
Please login to post comments