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.
3401 sites
62 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 Dariusz Koradecki
    Tue, Nov 29, 2016, 11:41 PM
    Hi all,
    Is these any possibility to add video file to the Lightbox Gallery, installed in my Moodle site as independent resource on frontpage, not attached to course. It looks that only images could be uploaded, since it would be useful to have also video files displayed on the gallery view..
  • Picture of Ratko Bucic
    Tue, Jan 10, 2017, 3:41 AM
    updated Lightbox to ver (latest) on moodle 2.9.8+
    However all galleries now report error 500, when I try to view it...
    Same for old ones, or new one I create.

    Any help?

  • Picture of Adam Olley
    Tue, Jan 10, 2017, 6:47 AM
    Hi Ratko,

    Are you able to provide any more detail from error logs or error messages you see? I've just retested on 2.9 and haven't been able to reproduce any issues.
  • Picture of Andreas Schenkel
    Sat, Jan 14, 2017, 8:46 PM
    Problem during installation in moodle 3.1.4
    php fatal error : class 'core_search\base_activity' not found in ......./mod/lightboxgallery/classes/search/activity.php on line 34
  • Picture of Adam Olley
    Mon, Jan 16, 2017, 7:15 AM
    Hi Andreas,

    Are you installing the version downloadable from here? The latest code on the master branch on github won't work on 3.1 due to that issue. You need to use the version tagged v2.8.0.9
  • Picture of Akram Aboud
    Tue, Feb 14, 2017, 6:10 PM
    I'm Using Moodle Version 3.0 and moodle mobile version 3.2.0 with plugin Moodle Mobile additional features installed , but the resource "Lightbox Gallery" does not work on my mobile application .

    It represents an error message :-

    " Uh oh!

    Your organisation installed a plugin that is not yet supported .

    contact the site administrator and tell them you want to use this activity with the Moodle Mobile app."
  • 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!
1 2 3 4 5 6 7 8
Please login to post comments