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 Dan Trockman
    Thu, Apr 18, 2013, 5:30 AM
    This is a great start and a much needed addition for Moodle. I have installed it and played with it but know I am going to get pushback from users. One simple fix that would make this much more robust for users would be a resize option that sets the largest side to 1024 (for example) so resize does not crop and image where the full image is important. Imagick can be called to do the heavy lifting, just like other gallery apps.

    From an admin point of view (and this might already be happening, let me know). Resize should not just be for display but should be resized and saved as the new size to take less space on the server and cut network utilization on large sites. I'd be willing to try beta, let me know.
  • Picture of Gavin Stokes
    Tue, Jun 11, 2013, 12:12 PM
    Thanks for this plugin, we're finding it really useful. And easy!
    When can we expect an update for Moodle 2.5?
  • Picture of Alexander Bias
    Thu, Aug 29, 2013, 7:41 PM
    Hi, I had a look at this plugin on Moodle 2.5.1 and although it basically worked and did what it should, I hesitate to install it because:

    - Upload of images is not state of the art, there is no possibility to upload multiple images with DnD, only the old-fashioned ZIP-upload.

    - There is no possibility to delete images which have been uploaded into a lightbox previously, only the possibility to delete the entire lightbox activity

    - Images are cropped when scaled on the server (as Dan has already mentioned in a previous comment)

    - There is no admin setting to set default values for new lightboxes (for Images per row, caption position etc)

    - Lightbox settings are markes as advanced settings, so teachers have to know how to show advanced settings to change things like images per row.

    - There is a admin setting to disable image editing tools for the lightbox plugin, but there seem to be no image editing tools at all in a lightbox, at least I can't find them.

    Is there any possibility to tidy up these things and produce a nice Moodle 2.5 version?

  • Picture of Toni Soto
    Sun, Sep 29, 2013, 5:45 PM
    I didn't try it in Moodle 2.x but I was afraid of some of the points you've mentioned in your post. Lightbox for Moodle 1.9 was easy to manage because you had full access to pictures and thumbnails throughout 'files' link and FTP. I regret it because it is a wonderful add-on for Moodle courses.
  • bee
    Thu, Nov 14, 2013, 5:29 AM
    The Moodle 2.4 documentation for Lightbox Gallery reads: "If a site administrator first modifies the role to enable students to contribute, instructors may then '
    'switch' this capability on or off in their courses."

    We would like to give the students in ONE course the ability to add images to a Lightbox Gallery (LBG). The Teachers in all other courses need to be able to turn this ability off.

    I've changed the site-wide student role capabilty mod/lightboxgallery:addimage from "Not set" to Allow. Any student in any course with a LBG is able to add an image.

    However Teachers do not see any way to disable that ability in their course (Settings > Course administration > Users > Permissions) or in the LBG activity/resource (Settings > Lightbox Gallery administration > Permissions) . The LBG Permissions view is lacking any "x" icons next to the roles under both "Roles with permission" for mod/lightboxgallery:addimage (and mod/lightboxgallery:edit, for that matter). It is present for the other LBG capabilities and it is present for the Site Administrator. (Is it a coincidence that these two capabilities are also the only ones with an XSS risk?)

    What am I missing?

    Moodle v2.4.6
    Lightbox Gallery v2012061900
  • Picture of sohrab fard
    Mon, Nov 18, 2013, 8:52 AM
    moodle 2.5 ?
  • Picture of Adam Olley
    Mon, Nov 18, 2013, 9:25 AM
    Sohrab: I've added the latest build as a version tagged to work on 2.3 through 2.6.
  • Picture of Philippe Devaud
    Wed, Nov 20, 2013, 10:03 PM
    Hello I have upgrade to Moodle 2.6 and images don't load in ligthbox ... I can use the tools, create a new thumnail etc ... but when I clic on the an image nothing happend ... What can I do ?
  • Picture of Adam Olley
    Mon, Nov 25, 2013, 7:16 AM
    Hi Philippe,
    Try the latest version. I've just fixed a bug that was causing the issue you were having.
  • Picture of Philippe Devaud
    Mon, Nov 25, 2013, 1:53 PM
    Hi Adam,
    Thanks I just test it and all work fine now wink
  • Picture of Sara Cenni
    Tue, Jan 7, 2014, 9:24 PM
    Hi! I'm using the latest versione of Lighboxgallery with Moodle 2.5.3. When I create a gallery or when I open a gallery there is a white loading window in the middle of page.
    It looks like it's trying to load an image, but it doesn't end. If I click on "close" on this white loading window, everything works as usual.
  • Picture of Matt Hobbs
    Wed, Jan 8, 2014, 4:59 PM
    I'm seeing the same thing as Sara I think, for me the window is all the way at the bottom of the page. Moodle 2.6 (Build 20131224).
  • Picture of Adam Olley
    Thu, Jan 9, 2014, 7:07 AM
    Hi Sara/Matt,

    I"ve taken a look on a 2.5.3 moodle and a 2.7 dev and can't see what you're seeing. However I've only done a quick check with the Standard and Clean themes in Chrome.

    What browser are you using and which moodle theme?
  • Picture of Sara Cenni
    Fri, Jan 10, 2014, 6:03 PM
    Hi Adam.
    I'm using standard theme and Chrome.
    The problem seems to be in gallery-lightbox-min.js file.
    I compared the new version of the file with the previous one and I added ".hide()" to"#lightbox"), changing it in ""#lightbox").hide()" and now it seems to work.
    I'm not sure this solution is ok because I didn't check all the library's code.
  • Picture of Daniel Hoffmann
    Tue, Jan 14, 2014, 11:37 PM
    I have the same problem. here. I tried it on two different installations with the same browser. One works and one not. I upgraded the none working installation from 2.5 to 2.6 and it still does not work.
Please login to post comments