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 Georg Wiesinger
    Tue, Mar 3, 2015, 2:45 AM
    Hi! I have been testing this wonderful gallery for a while now on moodle 2.8.3 and I think there are no issues so far.

    I don't know if it depends on my moodle installation but opening an image is not that smooth, even with small images!

    Howsoever, I love it!
  • Picture of S. Ali
    Thu, Apr 16, 2015, 5:29 AM
    I've just upgraded Moodle to Moodle 2.8.5+ (Build: 20150414) and am now getting the following error messages with the plugin:

    Class 'textlib' has been renamed for the autoloader and is now deprecated. Please use 'core_text' instead.

    line 102 of /lib/classes/component.php: call to debugging()
    line ? of unknownfile: call to core_component::classloader()
    line 417 of /mod/lightboxgallery/lib.php: call to spl_autoload_call()
    line 210 of /mod/lightboxgallery/imageclass.php: call to lightboxgallery_resize_text()
    line 157 of /mod/lightboxgallery/view.php: call to lightboxgallery_image->get_image_display_html()

    Any assistance will be greatly appreciated.
    Many thanks.
  • Picture of Adam Olley
    Thu, Apr 16, 2015, 8:21 AM
    Hi S.Ali,

    You can try the most recent code available on github, it contains a fix for that specific error.
  • Picture of S. Ali
    Thu, Apr 16, 2015, 8:45 AM
    Thanks a lot. That solved the problem.
  • Picture of Nacho Aguilar
    Thu, May 7, 2015, 3:26 PM

    Is there an option for downloading a picture in lightbox gallery as a student ?
    I mean a link or button not just right mouse click and 'download as'
  • Picture of Adam Olley
    Fri, May 8, 2015, 8:09 AM
    Hi Nacho,

    Currently there isn't any special buttons/options for downloading images.
  • 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.
Please login to post comments