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.
3557 sites
70 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


  • 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 ?
  • Picture of sheetal p
    Mon, Jun 8, 2020, 7:51 PM

    Trying to use Lightbox gallery to upload Infographic posters (A3Size) for students to view or even download. But it has restrictions in uploading the specified size. Any suggestions to work around that? Would really be grateful for any help in this regard. Thanks
  • Picture of Adam Olley
    Thu, Jun 18, 2020, 11:40 AM
    sheetal p: there are several places you need to make sure are set to allow the file size you want.

    Perhaps this could help:
Please login to post comments