Your Moodle version

Activities: Lightbox Gallery

Maintained by Picture of Andrew Hancox Andrew Hancox, Picture of Adam Olley Adam 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.
Moodle 2.3, 2.4, 2.5, 2.6

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 Don Hinkelman
    Wed, Sep 16, 2015, 7:36 AM
    A downloading button for individual photos would be the top of my needed features list. We take photos of class events then have trouble viewing and sharing the photos. A way to do that inside moodle would be easier and help build a stronger class community.
  • Picture of Adam Olley
    Fri, Sep 18, 2015, 11:45 AM
    Hi all,

    I've just put up an update for the 2.7 and 2.8/2.9 versions of the plugin, the change notes for each are the same:

    * mod_form: Show all settings without needing to click 'show more'
    * GITHUB-69: Fix overlay to be on top of the clean navbar
    * GITHUB-66: Add a download link to the lightbox interface
    * Bug: Prevent error displaying when adjusting a thumbnail without first picking up/down
  • Picture of Adam Olley
    Mon, Nov 9, 2015, 8:14 PM
    Hi all,

    I've just finished a round of testing for lightboxgallery against Moodle 3.0 RC2. I couldn't find any regressions in functionality or issues in the install/upgrade process when using the most recent release - as such I've flagged it (v2.8.0.5 of the plugin) as compatible with Moodle 3.0
  • Picture of Yezi Yang
    Mon, Nov 23, 2015, 3:09 PM
    I am writing to report a bug that when adding an image having the same name with an image that is already added in the gallery activity, the gallery cannot upload the image and gives an error message. It is not user-friendly, especially for students to get a error message with no tips about what they can do. I hope this bug can be solve soon.
  • Picture of Imran Akhtar
    Sat, Mar 5, 2016, 3:21 PM
    I have just updated Lightbox Gallery update Release on moodle 2.9.

    Since this update, teachers are not able to use Lightbox gallery. When we use an existing gallery or add new Lighbox Gallery activity, it gives "Internal Server Error".

    Your help is highly appreciated.
  • Picture of Adam Olley
    Mon, Mar 7, 2016, 7:03 AM
    Hi Imran,

    Would you be able to provide more detail "Internal server error" could be any number of things. If possible, it'd be good to know what you're seeing in your web servers error log when the error shows up.
  • Picture of S. Ali
    Mon, Mar 7, 2016, 9:09 AM
    Hello Imran and Adam,

    I'm not sure if it's related, but sometimes I also get this error when trying to access a Gallery after updating through Moodle. I've found that it's due to the permissions on the plugin directory/files. Once the permission are reset to what it was previously, the gallery/plugin works fine.
  • Picture of Imran Akhtar
    Mon, Mar 7, 2016, 12:42 PM
    Hi Adam, Ali,

    Thanks for your reply.

    It is showing 500 Internal Server Error.
    Will it be possible, if I update it back with older version or problem may become more complexed.

    Following is message that appears as I click any Lightbox gallery:

    "The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
  • Picture of Adam Olley
    Mon, Mar 7, 2016, 1:07 PM

    Part of your error message states: "More information about this error may be available in the server error log."
    That's where you'll need to check what the actual error is.

    Simply replacing the plugin with the older version will have Moodle complain about the version mismatch if you've already run Moodle upgrade with that new version in place.
  • 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?
1 2 3 4 5 6 7
Please login to post comments