Lightbox Gallery

Activities ::: mod_lightboxgallery
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.
Latest release:
3699 sites
75 fans
Current versions available: 9

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: Open LMS product team
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 Bert van der Hooft
    Mon, Mar 21, 2016, 8:11 PM
    Adam, Imran,

    I.m getting an error in moodle 3.0:

    This page contains the following errors:

    error on line 2 at column 62: attributes construct error
    Below is a rendering of the page up to the first error.

    However the page is empty..

    What to do?

  • Picture of Adam Olley
    Tue, Mar 22, 2016, 6:18 AM
    Hi Bert,

    Please report your issue at:

    It'll help if you can provide more detail when you make your report. What page are you trying to access? What version of PHP are you using? What version of the plugin are you using? Do you have access to the error_log of your webserver to supply the actual error message?
  • Picture of Imran Akhtar
    Fri, Apr 1, 2016, 1:48 PM
    Problem solved: Thanks to everyone for discussion and guidance.

    I have just renamed folder public_html/mod/lightboxgallery to lightboxgalleryOld and then installed latest update, now it is up and running. (Problem solved)
  • Picture of Mirko Djokic
    Tue, Apr 5, 2016, 8:01 PM
    i have a question, is it possible to turn of the the download button?
  • Picture of Adam Olley
    Tue, May 24, 2016, 1:12 PM
    Hi Mirko,

    Currently there is no way to turn off the button. Were you wanting to turn it off because its showing up weird, or to prevent people downloading images?

    I ask because if its the latter, there won't really be anything stopping a user just right clicking on the image and saving it anyway.
  • Picture of Carlos Alvarez Santullano
    Thu, Jun 2, 2016, 8:20 AM

    First of all, I'm new on moodle.
    I'm having a problem trying to find the folder where the image are stored in. Do you know how it works?
  • Lina
    Tue, Jun 28, 2016, 4:08 PM
    Hi Adam. Many thanks for providing this plugin to the community; its functionality is really appreciated by our staff and students, and we’re really grateful to you for your efforts to maintain and update it.

    On that note, please could I quickly query whether you have any plans to update the plugin to be fully compatible with Moodle v3.1, and its new Global Search feature in particular? To clarify: while we’ve tested the Lightbox Gallery plugin under v3.1 and all of the core functionality seems to work fine, we’ve found that instances of the activity are not searchable via v3.1’s Global Search feature. Please see the following screenshot for details, which lists all of the available areas that can searched under v3.1 (note that these settings are available via: Site Administration -> Plugins -> Search -> Manage Global Search):

    Note also that the above screenshot was taken on a v3.1 system where the Lightbox Gallery plugin is installed and available. However, as you can see, the Lightbox Gallery activity is not listed as being available to be searched. Obviously, this is likely to be a significant problem/cause of confusion for users who might want to search for specific instances of the Lightbox Gallery activity across Moodle.

    I’m not a developer, but my understanding is that mod plugins can be made searchable relatively easily via the addition of a new search class within the plugin’s codebase (located at ../classes/search/activity.php). Please see the following for further details:

    We really hope this search capability can be added to Lightbox Gallery as I’m sure it would be a huge benefit to our users (as well as those of other v3.1 systems) and, again, many thanks for all your efforts to develop this plugin and share it with the community.

    Best wishes,
  • 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?
Please login to post comments