Resource types

 
 
Picture of Paul Holden
Lightbox Gallery Resource
Group Particularly helpful Moodlers
(There doesn't seem to be a forum to post new resource types, so I thought I'd give it a shot in this one big grin)

Following on from a request from a member of staff at my college, I've created a new resource type that allows teachers to create image galleries in their courses:

Gallery thumbnail view

It uses the Lightbox2 JavaScript library to create transition effects when opening thumbnails and scrolling through galleries. All credit to the author for providing the library for others to use.

I've added it to the Modules & Plugins database, I guess it may take some time until it's approved though: http://moodle.org/mod/data/view.php?d=13&rid=1021

More info here.

(P.S. I've used the Moodle API from 1.8.2+/2007021520, so I don't know how well it will work in older versions...)
 
Average of ratings:Useful (5)
Picture of Will Cunningham
Re: Lightbox Gallery Resource
 
Nice! I installed on 1.8.2 and all went smooth. This is going to make many people happy. Thank you!
 
Average of ratings: -
Hey it's me, Mike
Re: Lightbox Gallery Resource
 

Good mod, a feature really needed in moodle.

It would be super if you/someone could incorporate an option for image compression (within the admin section) with an additional option for keeping the compressed or uncompressed images of the final generated gallery.

Tested mainly in Moodle 1.9.2 local XAMPP+ install

Some script warnings detected (see attached)

  • click on Lightbox Galleries in breadcrumbs bar
  • when viewing a gallery with no comments added...
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Mike,

Thanks for catching those! Must have missed them during testing... blush I've fixed both of them, plus one other, in the updated package I've just uploaded.

It would be super if you/someone could incorporate an option for image compression (within the admin section) with an additional option for keeping the compressed or uncompressed images of the final generated gallery.

There's an option when updating galleries to automatically resize images. If you select the option to resize on upload then the image will be shrunk and compressed... perhaps this is what you're after?

Cheers,

Paul
 
Average of ratings: -
Hey it's me, Mike
Re: Lightbox Gallery Resource
 
Thanks for the speedy response and update, I have had a look at the updated version (2.01) many of the initial minor bugs have been sorted, however a few minor new ones have appeared (see attached).
  • Adding a new lightbox gallery (Notice)
  • Showing an existing lightbox gallery (Warning)
Tested mainly in Moodle 1.9.2 local XAMPP+ install with Firefox 3 and Internet Explorer 7

"There's an option when updating galleries to automatically resize images. If you select the option to resize on upload then the image will be shrunk and compressed... perhaps this is what you're after?"

This works very well but, is it possible to integrate that compression at a site-admin-activities-level option where it would take place on the existing selected directory of images, as well as any added later on.

For instance
  • Use Original versions (High Quality)?
  • Use Compressed versions (Medium/Low Quality)?
Appreciate your efforts

Mike
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Thanks for the feedback Mike smile

I've fixed the undefined index notice when adding a new lightboxgallery. The warning shouldn't appear in 2.01 though... and the message seems to refer to the 2.00 code (are you using some kind of PHP cache on your server that would prevent the latest version running?).

I'll keep that option for compressing an existing directory in mind, perhaps it could be run against the directory straight after creating a new lightboxgallery?

Cheers.
 
Average of ratings: -
Picture of Alick Brown
Re: Lightbox Gallery Resource
 

Hi,

Installed on Xampp test server, Windows 7.

Seems to work as 1.9 version...
But:

1. Like others I would like to be able to upload a zipped file

2. No screen resizing when set - does it just go to the upload size if this is smaller than screen?

3. click on any of the controls under the thumbnail in the gallery takes me to a blank screen - with this error:
Fatal error: Class 'lightboxgallery_image' not found in C:\[Filepath...]\mod\lightboxgallery\imageedit.php on line 79


Thanks for any help

Alick

 
Average of ratings: -
Picture of Ali Hastie
Re: Lightbox Gallery Resource
 

Hi

Just installed on 1.8.3+ and works accordingly. Brilliant add-on, thanks very much. Will test it on my Moodle 1.9 beta 2 version on the test server later and will let you know.

Cheers,

Ali.

 
Average of ratings: -
Picture of Peter Mott
Re: Lightbox Gallery Resource
 
Thanks that is really nice
 
Average of ratings: -
Picture of David Berry
Re: Lightbox Gallery Resource
 
Excellent piece of work and it works in 1.9 Beta 2!

Regards

David Berry
 
Average of ratings: -
Picture of Jeff Church
Re: Lightbox Gallery Resource
 
Just installed the lightbox resource on Moodle 1.8.2+(2007021520) works great. The one issue I am having is that each instance is putting "Lightbox Gallery" in front of the gallery name. It looks the same as when you have screen reader turned on. No other resource is showing the resource name so it is not a setting on the server. Thanks for any help on this. The tool is really great thanks for writing it.

Jeff Church

PS... installed lightbox on a Moodle 1.9 Beta 2 (2007101502) server and the problem does not appear so it looks like a 1.8 issue.
 
Average of ratings: -
Picture of Jeff Church
Re: Lightbox Gallery Resource
 
I'm sorry this was a user error not a problem with the code. I did not add the icon for lightbox to our them/pix/mod/lightbox folder. This mod is working great. Can't wait till my art teachers see this.

Thanks,
Jeff Church
 
Average of ratings: -
Picture of Nicolas Sicard
Re: Lightbox Gallery Resource
 
Great work !

It would be nice to be able to replace file names with more explicit captions.

Nicolas.
 
Average of ratings: -
Picture of Peter Mott
Re: Lightbox Gallery Resource
 
Yes, optional captions would be nice. Maybe an optional text file in the image location called names.txt or something with <filename> <caption> pairs which Lightbox Gallery could read and use if it was there.

 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource
 

Hi Peter, thanks for this. I am currently adding a facility to allow uploading of files to the directory by an admin or teacher, as well as the ability to delete files. It's almost complete smile

Charles.

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Charles, these facilities already exist in Moodle through the File Manager. The Lightbox Gallery just requires that you tell it where you've placed the images so it can generate the gallery.

Paul
 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource
 

Hi Paul, I know it's possible to upload files, but it's just a pain to do smile All I was after is a simple upload button, which allows you to upload files quickly and without thinking- generally for staff the need it obvious and easy.

Moodle currently lacks an easy way to add a photo gallery. I think if the lightbox gallery had an simple upload and file maintainence mechanism, it would be even more of a winner than it already is!

Cheers,

Charles.

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Charles, I see what you mean - that would be a useful addition. Perhaps a zip archive containing the images could be uploaded and then extracted into a directory. Cheers.
 
Average of ratings: -
Picture of Chad Outten
Re: Lightbox Gallery Resource
Group Moodle Course Creator Certificate holdersGroup Testers
Awesome job with the lightbox integration, Paul. Works nicely in Moodle 2.0 dev (2007101501)

Perhaps a zip archive containing the images could be uploaded and then extracted into a directory.

I agree totally. im not sure if this is doable, but here's a suggested user workflow for bulk import of images...
  • add a resource
  • add a lightbox gallery
  • 'Make a folder' button
  • input box to name new directory
  • 'Create' button to create a new directory
  • 'Browse' button to locate .zip archive
  • 'Upload' button to bulk import images as .zip archive
  • 'Extract' button (or link) to unpack archived images into the new directory
  • Drop-menu to select directory containing extracted images
  • 'Save changes' button
Cheers, Chad
 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource
 

I've almost finished the uploading and editing section of this module. The idea is that the admin/teacher types in a name for a folder (using an input box as suggested). Any files are uploaded to that folder for that gallery instance. The upload tool is easy enough.

When the gallery is viewed again, the images appear smile I'm working on the unzip method, shouldn't be difficult.

Regards,

Charles.

 
Average of ratings: -
Picture of Chad Outten
Re: Lightbox Gallery Resource
Group Moodle Course Creator Certificate holdersGroup Testers
Ok brilliant, Charles. I'm more than happy to assist with testing! big grin
 
Average of ratings: -
Picture of Monica Haefeli
Re: Lightbox Gallery Resource
 

Bom dia Chad! Sou professora no Brasil e estou tentando usar o Lightbox Gallery com meus alunos. Ocorre que, embora tenha instalado o pacote pt_br-utf8, continuo com problemas. Seguem alguns exemplos:

Uso o Moodle 1.9 e a versão 2.2 do Lightbox Gallery, com o pacote de tradução do Português para o Brasil. 

 

Desde já, agradeço a boa vontade.

Mônica Haefeli

 
Average of ratings: -
FCSD Mustangs
Re: Lightbox Gallery Resource
 
I was looking at the lightbox gallery documentation from http://moodle.greenhead.ac.uk/external/lightbox_gallery/ , and saw the screenshot where you could upload images.
Image Upload+

I've installed the latest version of the lightbox gallery on Moodle 1.9.2, and I just haven't been able to find or get the add image section to appear. I'm not sure if there is something else I need to do, but I would like to have this capability so that I can allow certain individuals to upload images. And I would also like for the images to be resized to a smaller resolution and size when they are uploaded. If anyone has any suggestions, I would really appreciate it.
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Chris,

Adding images requires the mod/lightboxgallery:addimage capability, which by default should have been assigned to all editing teachers upon install.

The following page in the docs describes assigning individuals the rights to add images to galleries: http://docs.moodle.org/en/Gallery_owner_role

To have the uploaded images automatically resized, click Update this Gallery and set Automatically resize to include uploads and then select the size you want from the Resize (upload) option - both of these options can be accessed by clicking the Advanced button approve

Good luck!
 
Average of ratings: -
Picture of Faren Heit
Re: Lightbox Gallery Resource
 
Hi Paul,

Ive just been informed by some of my users that in IE6 the footer is pushed up into any space left by the images. See picture for explanation.

I have tried all themes with moodle and my personal theme and i get the same problem. However the gallery works fine in IE7 and FF3.

Anticipating your reponse...

Tee

 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource Upload
 

I've finally finished the modifications to the lightbox gallery to allow easy uploads and file deletion. This is a development version, and I would welcome testing from others and feedback before it becomes unofficially official.

There are 4 upload methods possible, which at present are fully working and easy to use. They are:

  1. Single file upload, normal html form. Allows Zip File to be uploaded and then auto extracts contents.
  2. Flash upload, multiple files. Component taken from http://www.element-it.com/MultiPowUpload.aspx, which is a FREE version of the full component. Easy and quick. Downsides: Must include link, only 10 files can be uploaded at once(upgrade required to increase this value). Allows zip files.
  3. Java Applet upload: JUpload, from sourceforge.net http://jupload.sourceforge.net/ Lightweight, good applet. Downside: can't get rid of log at bottom of applet smile Doesn't allow zip files.
  4. Java Applet upload: JumpLoader applet. http://www.jumploader.com/ Free Java applet. Dragndrop, thumbnails etc. Downside: 500kb applet download. Allows zip files.

I was hoping that a few people could test these methods and find out which is the most popular...

A few notes: If an admin or teacher is logged in, the gallery can be edited (Edit Mode), which allows for upload and file deletion. A check box appears next to each image, select then save changes to delete image(s).

Also, I have changed the gallery setup page. Instead of the previous drop down list, a text box now allows for the naming of the directory for the images. It has a default name of 'images'. This could be changed to anything. Directories are created if they don't exist. Note also that if the whole Lightboxgallery module is deleted, no images are deleted.

I think that's it for the time being. A few thoughts on future work:

  • Comments could be added to images. I've got some nice Ajax code around which could work for this...
  • Sorting of photos by name, date size etc...
  • Ability for students to upload images
  • add 'moodle capability' instead of isadmin() or isteacher()

Hope this helps, it's only building on the excellent work done by Paul in the first place smile

Charles.

PS: DOWNLOAD from here - with the applets included, the size is almost 1mb. As we decide on the best upload methods, this will decrease as components are removed.

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource Upload
Group Particularly helpful Moodlers
Charles,

Some nice stuff here, cheers. There are however a few important issues:
  • There is already a zip library within Moodle
  • There is an upload_manager class in Moodle
  • Your output isn't XHTML compliant
  • You are using raw $_POST and $_FILES variables
  • Using deprecated access methods (as you mentioned - isadmin(), etc)
There has to be a fallback method for just selecting the directory that a bunch of images are located in. There are people who will look at you blank in the face when you ask them to 'zip up the images' wink The staff here use WebDAV to transfer files into their Moodle courses, so multiple file upload hasn't been an issue for us.

Paul
 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource Upload
 

Thanks Paul for your thoughts- I must admit I was disheartend at first by your post, it has taken me a while to add the features, but your comments have been taken on board.

I have been programming for a while, but mainly in Java. I have only been moodling and using php for 2 months, so I'm still getting to grips with the apis and capabilities.

  1. I didn't know there was a moodle zip feature, so I can look into using that instead.
  2. Again, I didn't know about the upload manager class, but I do think the Java upload method is easier than the Moodle file upload, which I feel is generally combersome.
  3. I haven't changed much of the acutal html output, but I'll look into the XHTML compliance- was it compliant in the first place?
  4. What's the problem with using raw $_POST and $_FILES variables?
  5. I hadn't realised that isadmin() etc is deprecated- is this due to moodle capabilities? If so, I'll need to look into this, as I haven't used it before.
  6. I agree that selecting a directory to upload is a good idea- the Java upload allows that. Working progress. Indeed zipping files isn't for everyone, it was feature request made by another moodler so it was incoprorated. Just because some may not use it doesn't mean everyone won't.

I have been using lightboxgallerys several times this week, and find the quick upload easy to use. The whole module is by far the easiest way to put lots of photos on in a nice way. Check out http://learn.marnel-jun.hants.sch.uk/course/view.php?id=25

Comments will need to be done through another database table addition I think. Ajax could be used to click on a photo and upload a comment into the database.

Charles.

 
Average of ratings: -
Julian Ridden
Re: Lightbox Gallery Resource Upload
Group DevelopersGroup Moodle Course Creator Certificate holdersGroup Particularly helpful MoodlersGroup Translators

Don't be disheartend . You have done great stuff here.

i only have one comment, and it is in relation to the upload class. While you may prefer your new upload method, it is really important from a user perspective that there be a standard. WIth all modules, plugins, etc using the same upload class and file browser, there is no re-education needed to show staff how it works..as it is all the same.

Would be good to see this brought in for that reason.

JR

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource Upload
Group Particularly helpful Moodlers
Hi Charles, I hope you weren't too disheartened by my comments, that really wasn't my intention!

This is just a quick note regarding point 6: the issue with using raw $_POST variables (for example) is that the data supplied isn't sanitized and can lead to malicious users exploiting your scripts for their own nefarious means... if we take the image deletion method:
$imagedelete = $_POST['imagedelete'];
foreach ($imagedelete as $d) {
unlink( $dataroot.'/'.$d );
}

There's nothing to stop someone passing almost anything within that $_POST variable, and Moodle will potentially go along and delete any file on the webserver! The Moodle developer docs contain a lot of decent resources for avoiding such issues as well as numerous general PHP sites around the net.

Paul
 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource Upload
 

Thanks for this Paul. A question for you- is the "raw $_POST variables" still a problem when the code is surrounded by a 'isadmin() or isteacher()' block? (albeit that this needs to change to hascapability()). I notice that the 'imagedelete' code that you've included in your post isn't surounded by this i'f statement', but it should be. Would this help with security?

Also, does the fact that the file is prefixed with "$dataroot = $CFG->dataroot.'/'.$course->id.'/'.$gallery->folder;" help again with security in that only files starting with that can be deleted? Is it actully possible to post an imagedelete value of "../../config.php", and then have a file path of something like "home/www/moodle/moodledata/files/25/photos/../../config.php" and then this be able to be deleted (unlinked)? I don't think this would work on Windows, not sure about *nix.

I take the point about standards being followed, and completely agree. I'll work on making the upload form standardised with Moodle.

I've also fixed the zipping to use moodle zip, and an html bug. I notice that you've already got the db/access.php functionality for hascapability, so I can integrate that easily.

I hope I'm not being a pain, it's a bit of a learning curve for me smile Cheers,

Charles.

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource Upload
Group Particularly helpful Moodlers
Hi Charles,

Even using the access checks (the if statement), you still have to make sure the code that executes is safe - otherwise you're relying on staff keeping their passwords strong and unknown to others. There shouldn't be any code path through your scripts that is potentially unsafe. Think worse case scenario every time!

The unlink() call will traverse backwards though a path on each '..' it encounters (on *nix anyway, I couldn't tell you if that's the case with Windows), so you need to ensure that this can't happen. One way would be to use the clean_param() method, like so:

$safepath = clean_param($d, PARAM_CLEANFILE);
+1 on using the Moodle upload_manager class, for standardisation etc.

Regarding one of your previous points - the w3 validator is an excellent tool for checking your HTML.

Keep it up smile

Paul
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource Upload
Group Particularly helpful Moodlers
Hi again Charles,

How's that uploading coming along? Thinking about the uploading features further - I think it's quite important to use the provided Moodle file/upload manager as it respects course settings (directory permissions, file upload limits) and will use the file filters and antivirus agent (if enabled).

I've updated the plugin (see this post), so make sure you've got the latest package to work on!

Paul
 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource Upload
 

Hi Paul,

I've got the upload working using the standard moodle form. However with your thoughts about only using the Moodle file manager, there isn't really any point in continuing to update any other upload mechanism. I do think the java upload is easier, but if you think it is a security risk using $POST, then I'll cease that end of things too. Also, with the new release of code, I haven't really got time to go through and reintegrate the changes that I made to the previous code, in order to add zip files and quick picture deletion.

The comments are a welcome addition. Good work. It would also be good to be able to add a comment to a particular image, which would explain the image itself, as opposed to the whole gallery. There could simply be 1 comment per picture. Of course, there's always things that could be done- it's the pleasure and pain of programming...

Charles.

 
Average of ratings: -
Picture of tony chesney
Re: Lightbox Gallery Resource Upload
 
"Comments could be added to images."

I haven't looked at the Resource, but don't you just put the caption text in the title attribute in lightbox, and the javascript handles the rest? (but I don't know how you've used lightbox yet).
 
Average of ratings: -
Picture of Peter Mott
Re: Lightbox Gallery Resource Upload
 
I don't know.
P.
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Thanks Nicolas (and Peter),

That's a good idea - I'll get on it when I update the resource.

Cheers smile

Paul
 
Average of ratings: -
Picture of Ahmad Suhaimi
Re: Lightbox Gallery Resource : Help Me To Install
 
I m new with moodle. I dont know how to add lightbox_gallery block to my moodle. Kindly if anybody could help me to solve my problem. Tq
 
Average of ratings: -
Picture of Chad Outten
Re: Lightbox Gallery Resource : Help Me To Install
Group Moodle Course Creator Certificate holdersGroup Testers
1. extract the contents of lightbox_gallery.zip to your moodle/mod/ directory
2. copy contents of lightboxgallery/lang/ to your moodle/lang/ directory
3. visit your moodle admin page to update database...something like http://yourmoodle.com/admin/index.php

cheers, chad
 
Average of ratings: -
Picture of Ahmad Suhaimi
Re: Lightbox Gallery Resource : Help Me To Install
 
Thanks chad, it very useful info. Icant use the lightbox_gallery because I have to upgrade my moodle versiaon. Do you know the easy way to upgrade ver 17 to ver 19.

Thanks again
 
Average of ratings: -
Picture of Chad Outten
Re: Lightbox Gallery Resource : Help Me To Install
Group Moodle Course Creator Certificate holdersGroup Testers
this documentation will help you with the upgrade. just check whether or not your moodle database is UTF-8. it must be UTF-8 encoded before you upgrade to 1.8 or 1.9. here's the documentation explaining the database migration process.

Cheers, Chad smile
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
I've updated the plugin following on from some of the discussions in this thread.

Version 1.1 allows you to paginate your galleries (for those with huge galleries to display), and users are now able to post comments to galleries. Both of these settings are configurable on a 'per-gallery' basis.

Lightbox gallery pagination and commenting

You can download from the following locations:
If you're upgrading from the previous version, please follow the upgrade instructions in the download.

Thanks to everyone for their comments and suggestions!
 
Average of ratings: -
Picture of Phil Nichols
Re: Lightbox Gallery Resource
 
This is good stuff.

However, having problems with comments. I enable it for a gallery, see no where to add a comment, and when I go back to the options for a gallery the comments option has been set back to no!

Any ideas?
 
Average of ratings: -
Christoffer
Re: Lightbox Gallery Resource
 
Very very nice gallery. I just love the lightbox. However, nor the comments or pagination works for me. Just as the next poster said. Any ideas?
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Phil & Christoffer,

Did you follow the upgrade instructions - i.e. copy over the new files and visit your admin/notification page? It sounds like your DB may not have been upgraded yet, can you check that the table prefix_lightboxgallery_comments exists?

You could check role permissions and make sure that your account type has been granted mod/lightboxgallery:addcomment and mod/lightboxgallery:viewcomments capabilities, but the first thing I'd check is that you've upgraded the module fully smile
 
Average of ratings: -
Christoffer
Re: Lightbox Gallery Resource
 
Hey,

Thanks for the quick reply. Actually this is my first install - using the new version of the mod, and yes, the table is present in the db.

I'm running as site-admin so permissions should not be an issue - I've also dubblechecked that the different roles have the correct permissions.

Switching on PHP-debugging in Moodle I'm getting the following messages:

Just before the first pictures:
Notice: Undefined property: perpage in /var/www/moodle/mod/lightboxgallery/view.php on line 71

After all the pictures:
Notice: Undefined property: comments in /var/www/moodle/mod/lightboxgallery/view.php on line 94

Notice: Undefined property: comments in /var/www/moodle/mod/lightboxgallery/view.php on line 100

So, perhaps the problem resides in how my PHP has been setup. This is my first moodle-install on this server and Apache/PHP haven't been optimized for running moodle at all.

I could try setting up the gallery on our primary and development servers to see if it works on these.

(edit)
I just set up lightbox on our primary development server without any luck - same issues there. Let me know if you'd like to know what version, settings, php-modules etc. we're running. If that helps you in some way.
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Christoffer, thanks for the debug info! - The problem is with missing fields in the install.xml file mixed

I've fixed this file and re-uploaded it (here), you'd have to uninstall the previous version and then install this one to get the database fix.

Alternatively, if you're comfortable working with your database directly you'll see the new fields in the install.xml file (perpage, comments - hence your 'Undefined properties') and can manually add them to the prefix_lightboxgallery table. They are defined in the xml schema as:
  • perpage: smallint(3)
  • comments: tinyint(1)
Both are UNSIGNED, NOT NULL and DEFAULT 0.
 
Average of ratings: -
Picture of Anil Sharma
Re: Lightbox Gallery Resource
 
Paul

This module is brilliant. Couple of feature requests :

1. Instead of just allowing the image thumbnails to be displayed inside a resource page, it should be possible to place them as a label in the main course area ...that would be simply great, the gallery module could then be used on the frontpage topic section also.

2. Teachers sometimes upload images of different sizes. If some of them are larger than the scree size, the close button gets hidden in the right bottom corner. Maybe there could be a cross on the left top corner too

3. If there could be a way of restricting the maximum size of image display, to say 1024 px , that would be even better.



 
Average of ratings: -
Christoffer
Re: Lightbox Gallery Resource
 
Genious Paul, pure genious. I'll get to it right away.

Update: Works like a charm (now if I could only comment on each picture separately...hehe)

Spelndid work. I'm very much looking forward to seeing where this mod will go in the future.
 
Average of ratings: -
Picture of Tomas Polak
Re: Lightbox Gallery Resource
 

I dont have a thumbnails, only show me links by name. can you help me. What I have to do? I have Moodle 1.8.2+ (2007021520).

tnx tom


 
Average of ratings: -
Picture of Dietmar Wagner
Re: Lightbox Gallery Resource
 
Hi Tom,

I had the same problem.
If you give the permissions 755 to your image-directory, your Lightbox Gallery should work!

Best regards!
Dietmar
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Tomas,

Dietmar is correct - your webserver needs read/write permissions to your Moodle data folder and any folders within (such as your image directory).

The other reason this could occur is that you don't have the GD library installed, you can check this by going to Server -> PHP Info from your Administration menu and looking at the gd section. If you have shell access to your server, you can type the following: php --ri gd

Paul
 
Average of ratings: -
Picture of phi g
Re: Lightbox Gallery Resource
 
Hello,
I have the same problem with moodle 1.8.2
I checked the GD and permissions. They are both correct.
Do you have any idea to resolve the problem?
Thanks for our help
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Phi,

If you have a look in lightboxgallery/lib.php at the function lightboxgallery_image_thumbnail() you'll see where the thumbnails are generated. Each time you see a return $fallback; line, something has gone wrong. You could return more specific information for each error to narrow down exactly what the problem in your install is.

Paul
 
Average of ratings: -
Picture of Anil Sharma
Re: Lightbox Gallery Resource - delelte comment
 
Paul

If we enable comments in a gallery, users are able to delete anyones comments. In overide roles, there is no option to restrict deletion of others comments by students / teachers.

Also, we have a particular site where the gallery display works fine in IE but doesnt work properly in FireFox. In firefox, when we click on a thumbnail, instead of the pup-up slideshow, the full size image is display at the bottom of the screen. Any idea why this could be happening ?

Anil
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource - delelte comment
Group Particularly helpful Moodlers
Hi Anil,

To be able to delete comments a user needs the mod/lightboxgallery:edit capability, which by default is only granted to course teachers and administrators. You can check which permissions students have by navigating through your Site Administration panel to Users > Permissions > Define roles.

The plugin requires Javascript to be enabled in the web browser so I'd check that first. Also make sure the page has fully loaded before clicking any of the images (the symptoms you describe can occur when trying to view images before the page has fully loaded).

Re: your previous post, those are excellent suggestions for future releases - thanks smile

Paul
 
Average of ratings: -
Picture of Anil Sharma
Re: Lightbox Gallery Resource - delelte comment
 
Thanks Paul, the permission settings worked.

About the firefox problem, its getting stranger. On the same server, I have 3 moodle installations. On 2, the lightbox plugin works fine, even on firefox. Only on one site, there is a problem, that too in firefox only.

Is it possible that the theme has something to do with the display ? Although I have even tried the standard theme on that site, it still wont work.
 
Average of ratings: -
Picture of A FRI
Re: Lightbox Gallery Resource
 
Hi all,

Strange! On my moodle system the image directory had permission 755, but only showed the links instead of the thumbnails - with 777 it works.

Thanks for the gread mod.

Andi

By the way - does anybody have an idea how to make the design "newburycollege" work with Lightbox Gallery? Here the thumbnails are shown vertically instead of horizontally, too... And the java does not work there, either...



 
Average of ratings: -
Picture of Ben Ticehurst
Re: Lightbox Gallery Resource
 

Hi,  i am having the same problem with thumbnails appearing as a link only for photos that are in sub folders. images that are in the main directory will appear as thumbnails.  i have checked the folder permissions and GD. we are running 1.9.

any help??

 
Average of ratings: -
Picture of Ben Ticehurst
Re: Lightbox Gallery Resource
 

discovered problem was that i had copied folders with images directly up to the server rather than creating the folders through the site files in the course page.

all working now

 
Average of ratings: -
Picture of Ben Ticehurst
Re: Lightbox Gallery Resource
 
Hi had the same problem and realised that you need to create the folders through the site files on the course page rather than uploading folders and images directly to the server.
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
I've posted another updated version of the plugin on the site big grin

This version includes a plugin-based image editor which allows you to edit images contained within your lightbox galleries. Default image editing plugins include:
  • Resizing
  • Cropping
  • Rotating
  • Flipping
Gallery image cropping

Gallery image resize

There are also plugins included that allow you to add captions to individual images (one of the more popular requests...) which will be displayed when viewing images full size through the lightbox effects, and a basic thumbnail editor. The image editor can be accessed by the Turn editing on button displayed at the top of a gallery, and requires mod/lightboxgallery:edit capabilities for a user.

There's some code enhancements in the plugin too, particularly in the image resizing and thumbnail generation - they should be sharper and better proportioned now. If you want to generate new thumbnails for existing galleries, you should navigate through the file manager to the image directory and delete the _thumb directory contained within.

If you're upgrading from a previous version remember to skim through the install.txt file for upgrade instructions!

Modules & Plugins Entry
Lightboxgallery Homepage

Paul
 
Average of ratings: -
Picture of Steven Roberts
Re: Lightbox Gallery Resource and IIS
 
Hello Paul

Could you tell me if there is a problem with the Lightbox Gallery with Moodle running on a Windows 2003 Server and IIS. The thumbnails do not display all I have is the red cross?

Many thanks

Steve
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource and IIS
Group Particularly helpful Moodlers

Hi Steve,

What is the path of the thumbnail when viewing your gallery? E.g. <img src="?" /> Do the fullsize image appear when clicking on the thumbnails?

Cheers,

Paul

 
Average of ratings: -
Picture of Mike Forshaw
Re: Lightbox Gallery Resource and IIS
 

Hi,

My thumbnails only appear as red crosses and the image won't display when you click on them. I have tried renaming the pictures to something else with no spaces or special characters then re-uploading but that doesn't make a difference.

I have version 1.8.3+ of Moodle and have dowloaded the latest lightbox version.

Any help would be great,

Thanks,

Mike

 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource
 

Hi Paul, great work on this- some excellent features!

However, I've upgraded to this version, and when I try to add a caption or do an crop/flip etc, I get a message saying "The requested file was not found". The upgrade has simply written over the existing folder. The admin notifications page said the tables were updated fine. I'm logged in as Admin, versino 1.8.2+

Any ideas? Thanks,

Charles.

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers

Hi Charles!

The requested image filename is grabbed and filtered with PARAM_CLEANFILE, so all non-safe/standard characters (according to Moodle...) will be stripped out - this includes spaces. All files that are uploaded to courses should have had there filename already filtered through this same procedure, but if some other upload method was used I guess that might not be the case.

Let me know if renaming the image fixes it smile

Paul

 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource
 

Hi Paul, thanks for getting back to me. The old upload chesnut has done it again! Yep, it seems that spaces in file names are an issue. That does allow me to add a caption and use the other features.

The 'crop' feature doesn't seem to work though- all I get is a black image with the 4 control squares in the top left hand corner of the image, and they can't be moved. Any ideas? No pressure, I'm not using it at the moment, but just noticed it.

Thanks again for your continuing work on one of the best modules in Moodle smile

Charles.

 
Average of ratings: -
Picture of Andy Tagliani
Re: Lightbox Gallery Resource
 
Hi Paul

I get these error warning (in the debug mode) and have a blank_page on moodle 1.8.3

Warning: Invalid argument supplied for foreach() in /srv/www/xxxxx/xxxxx/wwwroot/moodle/mod/lightboxgallery/view.php on line 85

Fatal error: Call to undefined function exif_read_data() in /srv/www/xxxxx/xxxxx/wwwroot/moodle/mod/lightboxgallery/lib.php on line 266

Bye Andy
 
Average of ratings: -
Picture of James Ballard
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers

Warning: Invalid argument supplied for foreach() in /srv/www/xxxxx/xxxxx/wwwroot/moodle/mod/lightboxgallery/view.php on line 85

This appears if you have no comments yet. Try this to check if there are comments first (approx lines 131-34 in view.php):

if ($comments) {
foreach ($comments as $comment) {
lightboxgallery_print_comment($comment, $context);
}
}


Fatal error: Call to undefined function exif_read_data() in /srv/www/xxxxx/xxxxx/wwwroot/moodle/mod/lightboxgallery/lib.php on line 266

exif_read_data only accepts JPG and TIFF formats. I think you can try filtering this (approx lines 267-273 in lib.php):

if (exif_imagetype($file) == IMAGETYPE_JPEG || exif_imagetype($file) == IMAGETYPE_TIFF_II || exif_imagetype($file) == IMAGETYPE_TIFF_MM) {
$exif = exif_read_data($file, 0, true);
if (isset($exif['IFD0']['DateTime'])) {
$date = preg_split('/[:]|[ ]/', $exif['IFD0']['DateTime']);
$timestamp = mktime($date[3], $date[4], $date[5], $date[1], $date[2], $date[0]);
}
}

The function in question refers to a modified date, which may be possible to take from Moodle instead. There is a date associated with each image so I am not sure if this is redundant.


I get the following error if I try to do anything with editing on (add caption, crop etc.):

Error output, so disabling automatic redirect.

Captions still work despite this, however thumbnail editing wasn't.

In 1.9 there is also a problem with the print_header function since these changes, trying to get my head around them too for my own modules:

print_header() was sent a string as 3rd (Test Course -> Lightbox Galleries -> Image Gallery -> Edit image) parameter. This is deprecated in favour of an array built by build_navigation(). Please upgrade your code.
  • line 2299 of lib\weblib.php: call to debugging()
  • line 34 of mod\lightboxgallery\editimage.php: call to print_header()


Yours
James
 
Average of ratings: -
Picture of Andy Tagliani
Re: Lightbox Gallery Resource
 
Hi James

Thanks for your help James, not the same, but problems always exist. If i modify the view.php like your posting, the images will only show in the edit mode ...

My question is, in my php editor the lines are a little different to your posting. See my line beginning from line 130 to 134

foreach ($comments as $comment) {
lightboxgallery_print_comment($comment, $context);
}
}
}

Thanks
Andy
 
Average of ratings: -
Picture of Andy Tagliani
Re: Lightbox Gallery Resource
 
Here german language files for version 1.2 of the lightbox gallery.

Andy
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Andy,

The first error (invalid argument for foreach...) can be solved by modifying the following lines in view.php:

$cobjs = get_records('lightboxgallery_captions', 'gallery', $gallery->id);
$captions = array();
foreach ($cobjs as $cobj) {
$captions[$cobj->image] = $cobj->caption;
}

Change to:

$captions = array();
if ($cobjs = get_records('lightboxgallery_captions', 'gallery', $gallery->id)) {
foreach ($cobjs as $cobj) {
$captions[$cobj->image] = $cobj->caption;
}
}

The second one (Undefined function exif_read_data...) needs the following fix in lib.php, about line 266:

if ($exif = exif_read_data($file, 0, true)) {

Change to:

if (function_exists('exif_read_data') && $exif = exif_read_data($file, 0, true)) {

This code reads meta data attached to the image, which records things like the camera/model used to take the picture, ISO, copyright, and the date the picture was taken. This date is returned if available, otherwise it defaults to the last time the image was modified.

Paul

P.S. Thanks for the translation!
 
Average of ratings: -
Picture of Andy Tagliani
Re: Lightbox Gallery Resource
 
Yes Paul

Thats it! Thank you very much, if there any changes in the language files, let me know, here or send me a shot message over moodle here.

Andy
 
Average of ratings: -
Me
Re: Lightbox Gallery Resource
 

Hi,

I just installed this on 1.8.2+ and had the same error messages (lines 85 & 266). The mods did the trick. Thanks very much. Great mod, by the way!

 
Average of ratings: -
Picture of Higor Vaz
Re: Lightbox Gallery Resource
 
Hello Moodle loversboca aberta, this is really a great mod!!!
Im with the same problem noticed by Charles, the Crop, Rotate and other functions dont work. Only Caption works.
Using 1.9.4+ tested with FF3 and IE7. Thanks,
Higor. higorvaz@gmail.com
 
Average of ratings: -
Picture of Mariam Mahmoud
Re: Lightbox Gallery Resource
 
Hi,

Did you solve the black color issue?

Regards,
Mariam

 
Average of ratings: -
Picture of Mariam Mahmoud
Re: Lightbox Gallery Resource
 
Black image issue sloved.
The lightbox gallery folder contains 26 files only 20 were extracted and uploaded.

Regards,
Mariam
 
Average of ratings: -
Picture of ros bowstead
Re: Lightbox Gallery Resource
 

I created one gallery which shows fine but when I try to create a secondI am having the same issue with the gallery all images are showing black, when I try to upload an image it states that I have not selected an image but I clearlyhave. Any help gratefully appreciated.

 

 

 
Average of ratings: -
Picture of ian lake
Image Display problem
 

I'm using the latest version of Lightbox Gallery and Moodle 1.8.2, before Christmas I set up 4 galleries using the earlier version of LBG with no problem at all. In the last week I have tried to repeat my success and attempted to set up 2 more galleries, the gallery appears in the topic, I am able to change the name, place images in the relevant folder everything in fact except view the images. There are no thumbnails created nothing, I have attached a screenshot of what is visible.

I have tried changing slash arguments, i have looked for extra lines after ?> and spaces before.

The four galleries are still working and can be updated but new ones cannot be created.

ian


 
Average of ratings: -
Picture of Paul Holden
Re: Image Display problem
Group Particularly helpful Moodlers
Hi Ian,

If you have access to the source, applying the couple of fixes I posted in this post should solve the problem with the new galleries. If you don't have access, then setting Show extended image info to No in your new galleries configuration should solve the problem.

Paul
 
Average of ratings: -
Picture of Brian Reilly
Re: Image Display problem
 
The path to the images I've uploaded to use with Lightbox is missing a slash '/' at the start, so none of the links work. I also don't see any thumbnails, although they have been created. I am using Moodle. 1.8 and I have slasharguments turned off because when they are on I don't see any graphics. How do I fix the file path problem?
 
Average of ratings: -
Me
Resize image to screen size
 

Hi,

Is there any way to resize the images to fit the screen when they are displayed? Large images cause users to scroll around a lot.

Rich

 
Average of ratings: -
Me
Re: Resize image to screen size
 

In answer to my own question 6 months ago; yes, there is:

The Lightbox code fails to set a width and height on the "img" tag it creates, so to control that, you need a custom script that adds that back in. Remember, you can put any width and height you want on an image element no matter what its real size....the browser will scale it down or up to fit. So, a better solution to the above is to just add the following inside the lightbox.js file, and "changeImage" function:

After this line "Element.setSrc('lightboxImage', imageArray[activeImage][0]);" add the following:

--------------------------------------------------------------------
if (imgPreloader.height > 480)
{
imgPreloader.width = parseInt((480/imgPreloader.height) * imgPreloader.width)
imgPreloader.height = 480
}
else if ( imgPreloader.width > 480)
{
imgPreloader.width = 480
imgPreloader.height = parseInt((480/imgPreloader.width) * imgPreloader.height)
}

Element.setWidth( 'lightboxImage', imgPreloader.width - (borderSize * 2));
Element.setHeight( 'lightboxImage', imgPreloader.height - (borderSize * 2));
------------------------------------------------------------------------

Substitute "480" with the maximum allows width or height you need in your display. This way, no matter what images are uploaded, they will always fit into the display page. I like 480 pixels as it works on all desktop monitors.

Credit to the original poster here: http://www.huddletogether.com/forum/comments.php?DiscussionID=307&page=1#Item_0

 
Average of ratings: -
Picture of Paul Holden
Re: Resize image to screen size
Group Particularly helpful Moodlers
Thanks for the heads up Richard smile that's useful to know - something I'll try and incorporate into a future upgrade.
 
Average of ratings: -
Mt. Fuji
Re: Resize image to screen size
Group Particularly helpful Moodlers
The lightbox gallery mod is really great! Thanks to Paul for the contribution.

I have made the changes to have images scaled that was provided by Richard (here) and am now wanting more smile

Is it possible to have the caption that appears at the bottom of the expanded image be a download link to the file? If there is no caption the filename appears but it is not a link. I'd like to have the option to allow viewers to click on the link and download a fullsize image of the picture.

I wandered around in lightbox.js but couldn't manage to figure anything out. shy

Jason
 
Average of ratings: -
Picture of Andy Neil
Re: Resize image to screen size
 
I was having just this discussion with someone at the school where I work (Pilgrims' School in Winchester). Not being a 'technician' I have absolutely no idea how to make this happen however it would be really really useful.

Does anyone have any thoughts?
 
Average of ratings: -
Picture of DoVisH DoVisH
Re: Lightbox Gallery Resource
 

Hello to everyone,

first of all let me congratulate Paul for his excellent work of putting together lightbox for moodle. Thank you!

I have installed lightbox gallery and it runs very good, however I would like to know if there is any way to use lightbox in single images, e.g., in news or articles.

Thanks in advanced,

Pedro Sousa
Portugal.

 
Average of ratings: -
Picture of Andy Tagliani
Re: Lightbox Gallery Resource
 
Pedro

I test and try at the moment (and this successfull) to integrate the lightbox technology from the greybox ressource. If you can wait some days, i will wait for a bugfixed 1.9er version, then i will present the greybox ressource in a multilanguage course with downloads and support, which is very easy to integrate in and over the theme and so it works across every moodle installation, i mean every course.

You can take a look on my german language, see on the frontpage in the left and right column the lightbox technology. On the left a single image and three images they will automatic combinated looks like a gallery, on the right weblinks to websites, single link and a series of linked websites, again looks like a gallery.

Check it out here

On the left click on Bild anzeigen and Galerie anzeigen, on the right special on Launch Google search. If you wonder why only one link create a series of websites, i make two of them invisible with
style="visibility: hidden;"
But this make the Lightbox Gallery module not expandable, the module is inside a course /this is my meaning) much butter to show a gallery and is professional programmed.

If you are interested, let me know, i send you a information, if the website ready to go in some days.

Andy
 
Average of ratings: -
Picture of DoVisH DoVisH
Re: Lightbox Gallery Resource
 

Ola Andy,

thank you for your help.

I will wait some days, because I am really interested in this application.

Thank you once more.

Pedro Sousa

 
Average of ratings: -
Picture of Andy Tagliani
Re: Lightbox Gallery Resource
 
Ok ready to go, see here

no need to register

Andy
 
Average of ratings: -
Picture of DoVisH DoVisH
Re: Lightbox Gallery Resource
 

Hello Andy,

Nice work! Thank you very much.

I was wonder if it is possible to have a collection of website scaled to a determined set of Width/Height? And if it is possible to have GreyBox working with videos?

Thanks in advance.

 
Average of ratings: -
Picture of AJ Jahan
Don't see the "Make a Folder" button
 

Hello,

I have installed this module on Moodle 1.8.4, but after selecting "Add a lightbox gallery", I don't see a button to create a folder. How can I fix this problem? Can I create image folders manually?

I appreciate your help on this.

AJ

 
Average of ratings: -
Picture of Andy Tagliani
Re: Don't see the "Make a Folder" button
 
You must or should (first) create a folder manually, then you have the chioce to select the folder with your images!

Andy
 
Average of ratings: -
Picture of AJ Jahan
Re: Don't see the "Make a Folder" button
 

Andy,

Which directory location would be good for this, and can I name that directory anything I want?

I have already created a directory called "pix" in the following directory path:

/public_html/moodle2/mod/lightboxgallery

I also placed 3 images there to use in my galleries. This is a screen shot of my gallery I've created, and I am not able to see the "pix" folder I have created.

 LB-Gal.jpg

Thanks a bunch,  AJ

 
Average of ratings: -
Picture of Andy Tagliani
Re: Don't see the "Make a Folder" button
 
You go inside the course where you want to install the module. First way before installing, go in the block administration, there in "Files" and here your create a new directory, example pix, better images. Now you gonna install the lightbox gallery, normally the folder you create must be there so you can select the folder pix or images as the directory.

Andy
 
Average of ratings: -
Picture of AJ Jahan
Re: Don't see the "Make a Folder" button
 
Andy, thank you so much for your explanation. Every thing works fine now.
 
Average of ratings: -
Picture of Andy Tagliani
Re: Don't see the "Make a Folder" button
 
You welcome!

One thing

If you change someting, example flip or cut a image, the changes are not visible in the same moment for you, after saving the changes reload your browser and or clear the cache of the brower, first then you see your own changes!

Andy
 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource - Guest Access Feature
 

Hi, attached is a zip file of updated files used for a proposed new feature in Lightbox Gallery. At our school, photo albums are great but there are issues showing photos of children. All I wanted was an easy way to say that a gallery can't be viewed by guests (i.e. you have to be logged in to view). The course isn't really a real course, just an area to show off work/photos etc.

The attached adjustments mean that there is now an extra option in the create/update section of a gallery called "Allow guests to view this gallery", with a drop down box with Yes/No. I'll post a screen shot later.

I've tested it on our 1.8.4+, and it seems to work. I've also updated the main lightbox javascript file to include automatic resizing to fit the screen, taken from http://elusivemind.net/index.php?/elusivemind/resizing_images_to_screen_resolution_with_lightbox 

There may be a better way of doing this, and I stress that this isn't a release version (any changes are of course up to Paul and the community!), but it is a thought. Staff at our school need things to be easy I think, and I have a feeling that the 'roles' methods will be scary smile

Any comments are appreciated.

Charles.

 
Average of ratings: -
Picture of Charles Applegate
Re: Lightbox Gallery Resource - Guest Access Feature
 
See attached

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource - Guest Access Feature
Group Particularly helpful Moodlers
Cheers Charles,

That's a good idea - will try and get it merged into the next version... smile

Paul
 
Average of ratings: -
Picture of Myrrh Lynn
Re: Lightbox Gallery Resource - Guest Access Feature
 
Moodle 1.9+ new install on a hosted webserver
php 5.2.1
GD Support - enabled
GD Version - bundled (2.0.28 compatible)
MySQL 5.0.32
Win 98


HI! I just installed this version of Lightbox Gallery, but, the editing features do not work. Well, delete does - Naturallythoughtful! But nothing else.

Also, are the captions suppose to go under the pictures (thumbs) or just work on mouseover? I only have mouseover captions. The picture file name is still present despite the 'show extended image info' being turned to 'no'.

Last curiosity: The link defaults to hide on the course page when under admin. This is exceptionally annoying.

How do I fix these?




 
Average of ratings: -
Picture of Myrrh Lynn
Re: Lightbox Gallery Resource - Guest Access Feature
 
Oh! Here's a new one! I JUST went back to my Lightbox link on the course, opened the gallery and the picture I tried to rotate is now rotated, BUT the Rotate edit feature still isn't working, so I can't get it back the way it was.

I just tried deleting the picture from the directory. Then reloaded it and it is still rotated, cutting the image in half.

Now, the second pix, I tried to resize before. Resize didn't work. Well, after going back in, that pix is resized (too small) BUT the Resize edit feature still isn't working.

None of the other features - except delete - are working. This is weird.

Any ideas?

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource - Guest Access Feature
Group Particularly helpful Moodlers
Hi Myrrh,

Can you check the cache settings in your browser as it sounds like you are loading cached versions of the images after editing instead of the latest one.

The captions will show when you are browsing through the gallery, underneath each image - something like "Me at the beach, Image 1 of 4" instead of "SUC_5274.jpg, Image 1 of 4".

What exactly does it say in your GD configuration? There's a couple of ways you can get this information listed here. Most of the editing functions rely on this library.

Cheers,

Paul
 
Average of ratings: -
Picture of Andy Kemp
Re: Lightbox Gallery Resource - Guest Access Feature
 
I am having the same issue. When I crop an image it does correctly crop it but is still displaying the old copy unless I manually refresh...

Any idea how I can fix this?

 
Average of ratings: -
Picture of Katja Krüger
Re: Lightbox Gallery Resource
 
Hallo,
I downloded version $module->version = 2008011500; with moodle 1.9.+ and got the error Fatal error: Call to undefined function imagerotate() in /var/www/19moodle/mod/lightboxgallery/edittype/rotate/rotate.class.php on line 22

w
hen I try to rotate a picture, could you help me with that?

Thank you katja
 
Average of ratings: -
Picture of Nadav Kavalerchik
Re: Lightbox Gallery Resource
Group DevelopersGroup Particularly helpful MoodlersGroup TestersGroup Translators
does it work at all ? or just can't rotate ?
 
Average of ratings: -
Picture of Katja Krüger
Re: Lightbox Gallery Resource
 
Hi,
everything except the rotation works fine. I also looked for the function in the code and couldn't find it, the function is only called.

Thank you katja
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Katja,

Here's the relevant page in the PHP docs: http://uk3.php.net/imagerotate, where it mentions "Note: This function is only available if PHP is compiled with the bundled version of the GD library."

You could put the rotate/save code in an if statement like the following:

if (function_exists('imagerotate')) {
// rotate
// save
}

But that would only mask the problem wink To find out your current PHP/GD configuration, you can run the following command at a shell: php --ri gd or by logging into Moodle and selecting Server -> PHP Info (from your Site Administration block) and looking for the GD section.

Hope that helps.
 
Average of ratings: -
Picture of Katja Krüger
Re: Lightbox Gallery Resource
 
Thank you for your explanation, for the moment I masked the function.
Here is the German translation of the strings for the de_utf8 folder, if you would like to integrate it.
by katja
 
Average of ratings: -
Weeping Woman
Re: Lightbox Gallery Resource
 
Hi,
I'm trying to develop a photography course which goes live in September, and in part of this course I am hoping that individual pupils can have their own galleries to display their work and have it peer reviewed. How do I go about setting this up>
Zbysiu
 
Average of ratings: -
Picture of Jesús Martín
Re: Lightbox Gallery Resource
 
Your module is pretty good...
Can students upload images?
I tried to change the role features, but I wasn't success.

Thanks.
 
Average of ratings: -
Picture of Chen ZhongWei
Re: Lightbox Gallery Resource
 

Thanks, Paul,

    I installed the module and it worked well on browser IE7. But there is a problem on IE6.0 browser: the page index line and lines after that are not displayed correctly, they are displayed in the same line of last image thumbs.

    Any help is appreciate and thanks. 

 
Average of ratings: -
Picture of Nigel Osborne
Re: Lightbox Gallery Resource
 

Nice resource Paul. Installed (in 1.8.4) flawlessly, and fast.

Have you thought about adding slide show functionality?

 
Average of ratings: -
Picture of Nadav Kavalerchik
Re: Lightbox Gallery Resource
Group DevelopersGroup Particularly helpful MoodlersGroup TestersGroup Translators
slideshow functionality added. please see following link : new version
this version works with Moodle 1.9.x (and includes Hebrew translation too)

+ a link to a new contrib "course side block" that display a gallery in a slideshow
http://tracker.moodle.org/browse/CONTRIB-1505

enjoy smile
 
Average of ratings: -
Weeping Woman
thumbnails display vertically
 
Using moodle 1.9.5 with the latest version of Lightbox and I find that my thumbnails are displaying vertically. Has anyone encountered this problem, and if so, have you sorted it?

 
Average of ratings: -
Picture of Paul Holden
Re: thumbnails display vertically
Group Particularly helpful Moodlers
Hi Zbysiu, the problem occurs because the theme you're using -- prettysimple -- isn't inheriting styles from the standard theme. The standard theme loads all the style sheets from third-party modules, such as lightboxgallery, so without it they don't get loaded - hence the single-column issue you're having.

See these posts for solutions to fix approve
 
Average of ratings: -
Mt. Fuji
Re: thumbnails display vertically
Group Particularly helpful Moodlers
I'm afraid this isn't directly related to the Lightbox resource but haven't been able to figure it out anywhere else and have thus resorted to asking here.

I'd like to setup a Lightbox gallery on the front page of our Moodle site and make the contents viewable to users that are not logged in. Is this possible without making other contents on the front page accessible (beyond viewing)? I've experimented a little with guest access but haven't managed to find the correct setting yet...I guess.

Other than that the Lightbox resource is AWESOME! smile

Jason
 
Average of ratings: -
Picture of Paul Holden
Re: thumbnails display vertically
Group Particularly helpful Moodlers
Hi Jason,

Glad you're liking the module approve

You can make a gallery available to anyone by clicking Update this Gallery and enabling the Make public option.
 
Average of ratings: -
Mt. Fuji
Re: thumbnails display vertically
Group Particularly helpful Moodlers
Paul,

Wow! Thanks, that was way too easy. smile I feel kind of silly now. blush

I definitely should have looked at the settings more.

Jason
 
Average of ratings: -
Picture of James Ballard
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
There is an issue with file names that contain spaces - a common scenario with Windows users uploading zip files. Whenever you try to edit an image you get a file cannot be found error.

This can be corrected by changing the parameter types from PARAM_CLEANFILE to PARAM_TEXT in editimage.php on line 8:

$image = required_param('image', PARAM_TEXT);

Yours
James
 
Average of ratings: -
Picture of Ashley Holman
Re: Lightbox Gallery Resource
Group Developers
Hi,

I'm getting an error with this module using postgresql:

[Mon Sep 22 15:54:33 2008] [error] [client 203.30.161.253] PHP Notice: ERROR: syntax error at or near "USER" at character 57<br /><br />INSERT INTO mdl_lightboxgallery_comments ( ID, GALLERY, USER, COMMENT, TIMEMODIFIED ) VALUES ( 9, 1, 2, 'hi ', 1222064673 )

USER is a reserved word in postgres so it needs to be quoted, eg:

INSERT INTO mdl_lightboxgallery_comments("USER") VALUES .....

From looking at the code, the quoting would have to be done within adodb, so perhaps the easiest fix is to rename the user field to something else, like user_id?

Thanks
Ashley
 
Average of ratings: -
Picture of Ashley Holman
Re: Lightbox Gallery Resource
Group Developers
Here's a patch in case anyone wants to run lightbox with postgres. All it does is rename the "user" field in the comments table to "user_id" to avoid using a reserved word.

To apply it:

cd mod/
patch -p0 < /path/to/lightbox-pgsql.patch

Cheers
Ashley
 
Average of ratings: -
Picture of Joe Ippolito
Re: Installation Problem -- Lightbox Gallery Resource
 

Hi,

I just tried to install 'Lightbox Gallery Resource' on a moodle 1.9.x installation, and it did not install the tables in the database--and won't show-up in the resources inside a course. Also, if I try to uninstall it, it is no listed with other activities in the admin area.

 

So, I tried to install it on another moodle installation (same version), and it worked. The only thing I can figure is that when I installed it on the first moodle installation, something went wrong when moodle was trying to install / recognize it. When I go to Notifications, in the admin area, nothing shows.

 

So, do you know how I can completely uninstall thi--if it is not showing up anywhere in the admin area--and if there is no tale in the modules area of the database? I just want to try to reinstall it, and force moodle to re-install everything... (on the installation where I need it)

 

Any thoughts?

Thanks,

Joe

 

 
Average of ratings: -
Me
Re: Lightbox Gallery Resource
 
Hi,

this resource looks awesome and just what i need for our site.

I have installed the files correctly and set all the tables up via admin.

I can add the lightbox gallery as a resource and select the correct folder for images.

however, when i go to save the changes i get the following error message:

Internal Server Error

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

Please contact the server administrator, webmaster@carmelcttp.com 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.



any ideas? if i then go back to the page i was creating the gallery for, it is listed there but with no images, you click on it and you get the error message again.

any help would be muchly appreciated

thanks
david


 
Average of ratings: -
Weeping Woman
Re: Lightbox Gallery Resource
 
Our school is undertaking a photography course for GCSE (this is in the UK, by the way) and part of the adjudicator's job is to assess the finished photographs produced by the pupils. This is a course new to this school, and the idea is that all the images are saved to a dvd which is posted off to the adjudicator. I think you can see what's coming next...Why can't I set up individual galleries for all the pupils and have a login for the adjudicator to view them?
So far I've set up an html block with a list of all the pupils, with each pupil's name a link to their individual gallery which is in a hidden section in the topics list. I'm stumped by the permissions/roles here. For the time being only the pupil to whom the gallery is assigned has permission to view and to make changes (though this last may be a dangerous step to take).
All help would be appreciated.
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers

I've just uploaded the latest version to the Modules and Plugins database wide eyes

Loads of new stuff (hopefully I've caught all the requests that have been posted here):

* Users can now upload their own images

Add image to gallery

Granting users the mod/lightboxgallery:addimage capability for a gallery will allow them to post their own images.

* Tagging and searching support

Image search

The Image Editor has a new Tag plugin, which allows you to tag images with keywords, which can then be used for searching, as well as image captions.

More:

  • Generate RSS media feeds
  • Backup and Restore
  • Automatically resize images, on screen and/or after upload
  • Lots more, plus many cosmetic and code clean-ups

If you're upgrading from a previous version remember to skim through the install.txt file for upgrade instructions!

Paul
 
Average of ratings: -
Lewis Carr
Re: Lightbox Gallery Resource
 
Great mod but I just upgraded to the latest version and lost the AJAX popup effect that was there prior to the install. Before I start sifting through the code to find a fix is there anything simple I must do to get this working again?
Many thanks in advance.
- Lewis
 
Average of ratings: -
Picture of Enrique Robredo
Re: Lightbox Gallery Resource
 
Hello, congratulations for your job.

This is the spanish language in es_utf8. Is an correction from original language pack.
 
Average of ratings: -
Picture of Nadav Kavalerchik
Re: Lightbox Gallery Resource
Group DevelopersGroup Particularly helpful MoodlersGroup TestersGroup Translators
attached here is the hebrew translation for this beautiful plugin !!!
for the latest release.

btw.

i tried to use the RSS with google rss reader and i get error
can you check this issue ?
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Thank you very much Nadav and Joan for your translations! smile

I've tried a feed with Google Reader, and it worked fine. Actual feeds won't be generated by Moodle until your cron script has been run (and then updated hourly), so give it a few minutes and try again.

You may be interested in the Firefox CoolIris plugin for viewing RSS media feeds on a "3D Wall" - really cool effects, there's a short video of it in action:
 
Average of ratings: -
1997年頃(結婚前)の写真です...
Re: Lightbox Gallery Resource
Group Translators

Hi Nadav and Paul.

The RSS error had been happened on my site, too.
Nadav, had you enabled Global Search function on your site?
This trouble will occur when global search function is enabled.

You need to modified mod/lightboxgallery/rsslib.php as follows;

<?php

//  require_once('lib.php');
    require_once($CFG->dirroot.'/mod/lightboxgallery/lib.php');

    function lightboxgallery_rss_feed($gallery) {
        global $CFG;

The parameter 'include_path' is changed by global search functions at running admin/cron.php. Then, the file 'search/lib.php' is included instead of mod/lightboxgallery/lib.php.

 
Average of ratings: -
1997年頃(結婚前)の写真です...
Re: Lightbox Gallery Resource
Group Translators

If you want to reappearance the error;

1) Enable Global Search
2) Execute admin/cron.php manually

Then, you can obtain the error message

Fatal error:  Call to undefined function lightboxgallery_directory_images()

on your Web browser.

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Thanks for reporting the problem Tatsuya, I'll include your fix in the next release approve
 
Average of ratings: -
Picture of Hellmuth Sole
Re: Lightbox Gallery Resource
 
Hi Paul, first thanks for this great plugin!! Definitely a must have on any Moodle site!!

Just a couple of items I was wondering about to make the most of the plugin.

1. Search: I don't have an option to search within my lightbox gallery with the latest version installed (this is a clean install, never had a previous install). Do I have to do something with my Moodle site to enable this (can't find any setting within the gallery itself).

2. Download: Does your plugin offer an option in which students can download the image either right clicking on it or through a button? This is something very important to my students.

3. Tags: I'm using jpg files which have been tagged using IPTC (industry standard) tags. Does your recent version read these tags, or do I have to go manually to each picture as you mention using the photo editor (sorry, but does moodle have a photo editor? Don't know where it is...) to tag them? FYI Windows Photo Gallery reads the image tags just fine, as well as other software such as Gallery2.

Again thanks for all of your help in this invaluable resource!!!
 
Average of ratings: -
Picture of Faren Heit
Re: Lightbox Gallery Resource
 

Hi

Ive installed the latest version and seem to have lost the popup effect on IE7 using moodle 1.9.2+ but it seems to be there on FF3.03.

Strange,,,

Any pointers...

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
I can't reproduce the problem in IE7 - has the Javascript finished loading when you try to view images? Perhaps a hard refresh might be needed in case the browser is loading outdated cached versions of the scripts.
 
Average of ratings: -
Picture of Faren Heit
Re: Lightbox Gallery Resource
 

Tried hard refresh, deleted all cookies, temp file and cache and still the same result. The images are opening in a seperate window, and i have to click back on the browser to get back to the gallery.

Ive noticed that when i use the formal white theme it fixes the problem. Strange, because i dont call the javascript files in the header file of the formal white theme.

So i guess its an issue with the theme but dont know where to start sad

Any pointers Paul?

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Which theme are you using? Could you make the gallery public (Update this Gallery > Make public > Yes) and send me the link via PM so I can have a look?
 
Average of ratings: -
Picture of Faren Heit
Re: Lightbox Gallery Resource
 
Is it possible to add a link to a repository for the images?
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource - 2.01
Group Particularly helpful Moodlers
I've just uploaded a new version (2.01), fixing a couple of minor bugs. Grab it from the usual place approve

Also, I've made a start on documenting some of the functionality. You can assign users the rights to own galleries (adding and editing images) with the roles and capabilities system of Moodle; see Gallery Owner Role
 
Average of ratings: -
Picture of adam palin
Re: Lightbox Gallery Resource - 2.01
 

Hello,

I was wondering if anyone could help me as I'm quite confuzzled about why it's not working...

I have Moodle version 1.8.5+ (Build: 20080528) (2007021550) and what I think is the latest Lightbox version, I downloaded it the other day. All installed correctly and lightbox files moved into the right locations on the server and the database was updated nice and smoothly.

The lightbox module now shows up as a resource and gives me the page to set it all up and such, finding the photo files in the correct folder location - but - once I click save and display or just save and go to view the resource it just displays a blank web page. No specific error (other than a 500 internal server error) and that's it....

Any ideas???
I really would like this to work and am at a bit of a standstill.

Thanks in advance,
Adam smile

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource - 2.01
Group Particularly helpful Moodlers
Hi Adam,

Can you check what version of GD you have installed? From the Site Administration block, select Server > System Paths > GD version.

Are there any errors printed in your php error log? You can turn up debugging by going to Server > Debugging.

Hopefully we can find the source of the problem from these.
 
Average of ratings: -
Picture of adam palin
Re: Lightbox Gallery Resource - 2.01
 

Hi Paul,

Thanks a lot for getting back to me!

We have GD version 2.x installed

I've just turned the debugging on and have acquired this result:

Fatal error: Call to undefined function build_navigation() in E:\Inetpub\wwwroot\studentintranet\mod\lightboxgallery\view.php on line 53

The code on Line 53 is:

 $navigation = build_navigation('', $cm);

Hope that helps and it's something we can fix! smile
Thanks again,
Adam

 
Average of ratings: -
Picture of adam palin
Re: Lightbox Gallery Resource - 2.01
 

Hi Paul/Everyone else,

Has anyone managed to crack this coding issue??
Desperate to use this Lightbox in the College, so all help would be very, very much appreciated!

Thanks
Adam

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource - 2.01
Group Particularly helpful Moodlers
Hi Adam,

Unfortunately build_navigation() was only added in Moodle 1.9 and breaks module compatibility with previous versions of Moodle, see this post.

If possible, I would suggest upgrading your Moodle install to the latest 1.9 build. Failing that, try to re-implement the function using Gary's suggestion in the forum post I've linked.

Hope that was somewhat useful smile

Paul
 
Average of ratings: -
Picture of Grzegorz Zajączkowski
Re: Lightbox Gallery Resource - 2.01
 
Hello.
I have two question smile
1.
How to use other standart blocks of moodle in lightbox Gallery wink
(i think about something like "html blocks" on left site of the page).
2. How to make desciption to simple image smile

I use this module on this site wink
Regards
Greg


 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource - 2.01
Group Particularly helpful Moodlers
Hi Grzegorz,

1. It's currently not possible to add blocks to a gallery page - although this is a nice idea for the future smile

2. You can add descriptions to individual images by clicking Turn editing on while viewing a gallery, and selecting the Caption option.
 
Average of ratings: -
Picture of Joan Queralt
Lightbox Gallery Resource - 2.01 Lang ca.utf8
 
I've been trasllating Lightbox Gallery into catalan (ca.utf8). You can fin the zipped directory in this link.

Great resource!
 
Average of ratings: -
Picture of Jit San Chia
Re: Lightbox Gallery Resource
 
Hi Paul,

Thanks for the great module.

I have discovered that you have hardcoded the prefix "mdl_" in line 77 of search.php. This may cause the search function not to work in some installations like mine : )

I have also made some modifications in search.php and view.php so as to display the captions under the thumbnails if available instead of displaying the filename. Some people may like it this way. I attach my modifications.

One question: Why is there a need for the condition "$image->metatype == 'caption'" in line 102 of search.php?

Thanks again

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Jit,

Thanks for catching the hard-coded strings in search.php blush

The $image->metatype comparison checks to see whether the current meta data being read is a caption, and if so assigns the description to the the title element of the image, and if not just uses the filename of the image (you'll see the relevant fields in the {prefix}lightboxgallery_image_meta table).
 
Average of ratings: -
Picture of Jit San Chia
Re: Lightbox Gallery Resource
 
Thanks Paul for the reply
 
Average of ratings: -
Weeping Woman
Re: Lightbox Gallery Resource
 
For some reason my Lightbox Gallery seems to have stopped working as it should. I can add it as an activity and select a folder of images, but when it comes to viewing the images as I click on an image I simply get taken to a static page containing a larger version of the image. It has been working correctly until recently. Any help would be appreciated

I am using Moodle 1.9.1+ (Build: 20080611) with the latest version of Lightbox.
and the only error message displayed is Notice: Undefined property: cm in X:\XXXXXXXX\lib\weblib.php on line 5464
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Zbysiu,

Have you recently switched to a new (or upgraded) theme? There are issues with themes such as EduMoodle, which use JavaScript libraries incompatible with the prototype library that lightbox gallery uses.

On which page do you get the "Undefined property" error?

Regarding your previous post, there's a page in Moodle docs with instructions for setting up such a role.
 
Average of ratings: -
Weeping Woman
Re: Lightbox Gallery Resource
 
I haven't changed the theme with which Lightbox originally worked, but what I have done is add the Accordion menu to the front page and this uses javascript. Not being a programmer I wouldn't know how this might affect anything else on the site.
The undefined property error appears on the thumbnail page.
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Cheers for that. The accordian menu uses jQuery which is incompatible with most other JavaScript libraries. However, they do provide a workaround smile

The changes you need to make are fairly simple, just one extra line and a few slight changes. I've attached the code to this post, just replace what you pasted into your theme's header with this version.
 
Average of ratings:Useful (1)
Weeping Woman
Re: Lightbox Gallery Resource
 
Hi Paul,
that worked a treat. Thank you once again.
z.
 
Average of ratings: -
Picture of Bruno Ferreira
Re: Lightbox Gallery Resource
 
Hi Paul

I´m here with a problem...
I try a couple of changes in the header.html , but i can´t do it works.... triste

Can you explain step by step how to do it ?

Thanks in advance !

 
Average of ratings: -
Picture of nikki jones
Re: Lightbox Gallery Resource
 
Hi,

I've really,really tried to fix this myself but after 10 hours solid of trying, i have got to ask for help as i am lost! I really want this mod as i think it looks really impressive!

I have a similar problem to this thread in that i use the menu from the newbury theme that uses jquery therefore the lightbox wont work - conflict i assume having googled it a lot! I've tried several different things to resolve this but none work, they either do nothing (the images load in a new window and ignore javascript) or the whole site doesn't load.

I've tried the work around provided in the link above and in my header file placed the following code:

<script type="text/javascript" src="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/js/jquery/jquery.js"></script>
<script type="text/javascript" src="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/js/styleswitch.js"></script>
<script type="text/javascript" src="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/js/jquery/jquery.dropdown.js"></script>


<script>
var $j = jQuery.noConflict()

$j(document).ready(function(){

$j("ul.dropdown li").hover(function(){
$j(this).addClass("hover");
$j('> .dir',this).addClass("open");
$j('ul:first',this).css('visibility', 'visible');
},function(){
$j(this).removeClass("hover");
$j('.open',this).removeClass("open");
$j('ul:first',this).css('visibility', 'hidden');
});

});
</script>

But it does not work - has anyone else got this to work with the newbury theme? Am i placing the script in the wrong place? I've tried the standard moodle theme and it works fine so know it is something within the newbury theme scripts but cannot figure out where.

I would really appreciate any help at all as i've ran out of ideas.

Thanks in advance
Nikki smile

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Nikki,

Do you get any script errors in your web browser after making the changes in the newbury theme header?
 
Average of ratings: -
Picture of nikki jones
Re: Lightbox Gallery Resource
 
Hi Paul

Thanks for your response. I have managed to get it to work using the jQuery lightBox plugin as this does not clash with menu system used in the Newbury Theme which uses jQuery. I tried to work with the workaround you linked to on the jquery web site but my programming knowledge is limited and could not fathom it out for love nor money!

I also had to change the config.php file to show
$THEME->standardsheets = array('styles_layout');

as in the Newbury theme this is set to false. This helped display the gallery properly.

I am however still working on it as i cannot see any options in my admin menu where to upload photo's to or use all the facilities like crop etc. these are not appearing in my menu options. An error message i am getting when viewing the gallery is:

'myLightbox' is undefined - but it refers me to the view.php file and i cannot see what the problem is. any help at all will be greatly appreciated. sorry for the long post but hopefully the above will help someone else working with the newbury theme.
 
Average of ratings: -
Picture of nikki jones
Re: Lightbox Gallery Resource
 
Hi,

It seems my problem with missing the editing buttons, etc was because i had deleted the breadcrumb navigation to make the design simpler (primary school users) - i have now restored them and all the add image, etc reappeared!

I cannot get the crop image facility to work though, does anyone have any ideas? All others options work but when clicking crop image, the page just goes blank thoughtful

Thanks,
Nikki.
 
Average of ratings: -
Picture of Nicolas B
Re: Lightbox Gallery Resource
 
Hi Nikki,

I have exactly the same problem but I don't know how to include the jQuery Lightbox plugin script in moodle to display the gallery. Can you help me sending me your code please ?
Thanx.
 
Average of ratings: -
Picture of José Ángel Polo
Re: Lightbox Gallery Resource
 

Me too, non compatible jquery libraries:

jixedbar

http://www.formacionyservicios.net/MANTENIMIENTO

lighbox gallery (many errors: style undefined, invalid js...)

http://www.formacionyservicios.net/MANTENIMIENTO/mod/lightboxgallery/view.php?id=2862

Anyone can help me, please?

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi José

Can you turn on debugging for your site - see Debugging in the docs - and post the output of any error messages you receive. There seems to be something preventing the script from finishing.

Did you try the fix I posted in this message? The code needs copying into your theme's header.
 
Average of ratings: -
Picture of José Ángel Polo
Re: Lightbox Gallery Resource
 

I have tried many different solutions.

Now I copied the script jquery jixedbar in my footer (previously been in the header), and I write the code below in view.php (I found on the forums, about non compatible jquery and javascript).

I do not have the error "is null or not an object" and get properly view lightbox gallery, but removing the footer of view.php and therefore I lost in this module jquery jixedbar.

<script>

var j = jQuery.noConflict();

j(document).ready(function(){

j("dd").hide();

j("dt a").click(function(){

if (j(this).parent().next().is(':visible')) {

j(this).parent().next().slideUp("slow");

}

else {

j("dd:visible").slideUp("slow");

j(this).parent().next().slideDown("slow");

}

return false;

});

});

</script>

 
Average of ratings: -
Picture of José Ángel Polo
Re: Lightbox Gallery Resource
 

Hi Paul.

Your fix in the post it´s OK for accordion menu ( see http://netfritz.com/APRENDIZAJE/ ), but I need fix gallery module for jixedbar. This jquery uses this script:

<!-- jixedbar starts here -->

<script type="text/javascript" src="<?php echo $CFG->themewww .'/'. current_theme() ?>/jquery-1.3.2.min.js"></script>

<script type="text/javascript" src="<?php echo $CFG->themewww .'/'. current_theme() ?>/src/jixedbar-0.0.3.min.js"></script>

<script type="text/javascript">

$(document).ready(function() {

$("#demo-bar").jixedbar({

hoverOpaque: false,

roundedCorners: true

});

});

</script>

<!-- jixedbar end here -->

For example: http://netfritz.com/APRENDIZAJE/mod/lightboxgallery/view.php?id=3

(I have removed print footer function because It cause error)

Can you help me, please?

Regards.

 
Average of ratings: -
Picture of Brian Schmidt
Re: Lightbox Gallery Resource
 
I'm having this same issue. I'm using a Newbury theme, but I'm not having any luck with trying to figure out what Nikki did. Anyone have ideas? I tried using the plug-in she linked to, but I haven't quite figured out where all that must need to be switched out because it doesn't seem to be working right.
 
Average of ratings: -
Picture of Brian Schmidt
Re: Lightbox Gallery Resource
 
Ah - figured it out. Works great now! I was using the same fix from the accordian_menu, but I didn't add the fix to my jquery.dropdown.js file. Adding it to that location fixed my problem.
 
Average of ratings: -
Weeping Woman
Re: Lightbox Gallery Resource
 
Hi Paul,
forgot to thank you for the link. Thanks.
 
Average of ratings: -
Picture of Anil Sharma
Re: Lightbox Gallery - How to insert into pages
 
Hi Paul

We would like to do the following :

1. Create lightbox gallery containing pictures like normal
2. Display the thumbnails of pictures inside forumposts / web pages etc. When users click on those thumbnails, the images should open like a normal gallery.

Would this be possible in some way ? What we need is some kind of a gallery filter that would display the gallery thumbnails inside forums posts etc


 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery - How to insert into pages
Group Particularly helpful Moodlers
Hi Anil,

I think you're probably right that this would need to be implemented as a filter - can you explain how you would expect to use it? Should the thumbnails link to the full image or back to the gallery page?
 
Average of ratings: -
Picture of Anil Sharma
Re: Lightbox Gallery - How to insert into pages
 
Paul

If the thumbnails can show the full images just as it shows in the gallery module, with the lightbox effect, it would be great.

If that's too difficult to implement, even linking back to the gallery would be nice. As users would be able to see the thumbnails in the resource page / forums posts etc, it would get them more interested in reaching the gallery
 
Average of ratings: -
Ravi Vare
Re: Lightbox Gallery - How to insert into pages
 

Hi, I want to sue Same Features !!

TIA

Ravi

 
Average of ratings: -
Picture of Ashley Holman
Re: Lightbox Gallery Resource
Group Developers
Hi Paul,

We noticed our database getting a lot of queries that look like this:

UPDATE mdl_config_plugins SET value = '' WHERE id = '92'

which is the "disabledplugins" setting for the lightboxgallery module.

As it turns out, every time the lightboxgallery module is included in a Moodle page (eg. viewing a course), that query gets ran.

It is due to a bug in lib.php which updates the setting whenever it is blank.

I've attached a patch which fixes the problem.

Thanks
Ashley
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Thanks Ashley - good catch! approve
 
Average of ratings: -
Picture of Paul Holden
Lightbox Gallery Resource 2.1
Group Particularly helpful Moodlers
I've just uploaded a new version to the Modules & Plugins database approve

It includes improvements to the tagging and searching system. The tag image editor plugin can now read and import tags that have been added to pictures by external tools such as Photoshop (clicking on the Import tags button also allows you to import tags from all images in the current gallery):

Version 2.1 tagging

Using the Add image option, you can now upload a zip file containing multiple images which will be extracted into the appropriate directory.

Also, lots of smaller improvements to the codebase and visual tweaks.

Available here, as soon as an admin has approved the changes approve
 
Average of ratings: -
Picture of Anil Sharma
Re: Lightbox Gallery Resource 2.1
 
Paul

any possibility of creating the option to integrate galleries into resource pages/forum posts etc ?

Look at the top most post you've made in this forum, you had to attach a screenshot of images. If the gallery was on this same moodle site, all we need is a way to display the gallery into forum posts or resource page so that it looks like your first post but the images can be clicked upon and seen in a larger size !


 
Average of ratings: -
Picture of Jaap Marsman
Re: Lightbox Gallery Resource 2.1
 
Hi Paul,

I've just upgraded the lightbox module without a hitch and things are running very smoothly. Thanks for such a fantastic addition to Moodle! In two weeks from now I'll be presenting a new Moodle-area in my school which will allow my colleagues to manage their own group-pages. I plan on using your module for the gallery-side of it.

However, with the new version an error has cropped up in the gallery as you can see in the attached picture. The direct link for this gallery would be: http://www.indegroep.nl/mod/lightboxgallery/view.php?id=1176

I would be very happy if the pictures once again formed rows instead of a very long list. Is there an easy way to configure this? (Which CSS-style should I tinker with, so to speak...)

 
Average of ratings: -
Jason's pic
Re: Lightbox Gallery Resource 2.1
 
Hi Jaap,

Had the same problem - thumbnails displaying in single column down the page instead of in columns across the page. Then I simply added a caption to the first image using the Turn Editing On feature and it all went into columns for me. Try that and see if that works. Is a bug though.

Thanks,

Jason
 
Average of ratings: -
Picture of Jaap Marsman
Re: Lightbox Gallery Resource 2.1
 
Hi Jason,

Thanks for the tip! I tried adding a caption but unfortunately the problem remained. I've tried tagging, cropping etc. but it hasn't changed the layout for me, unfortunately!
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource 2.1
Group Particularly helpful Moodlers
I've seen this on another website, and the problem was with the current theme rather than the lightbox gallery module.

The theme in question was czw_blue - the problem was that it wasn't including styles defined by modules and blocks (a recent update seems to indicate that the developer has fixed this theme now).

Which theme is it that you (and others) are using? Could you try and set the $THEME->standardsheets configuration option in the theme's config.php and see if that fixes it?

Cheers smile
 
Average of ratings:Useful (2)
Picture of Jaap Marsman
Re: Lightbox Gallery Resource 2.1
 
Hi Paul!

Thanks for your reply. Unfortunately, this doesn't solve the problem. sad

I'm using a customized version of the EduMoodle theme. The following options are defined in the config.php:

$THEME->sheets = array('styles_layout', 'styles_fonts', 'styles_color','trl');
$THEME->standardsheets = true;
$THEME->modsheets = true;
$THEME->blocksheets = true;
$THEME->langsheets = false;
$THEME->courseformatsheets = true;
$THEME->metainclude = true;
$THEME->standardmetainclude = false;
$THEME->parentmetainclude = false;

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource 2.1
Group Particularly helpful Moodlers
Hmm, that's a strange one - the styles should be loaded by the standard style sheets, can you check (in your web browser) what the content of http://[yourmoodle]/theme/standard/styles.php is?
 
Average of ratings: -
Picture of Higor Vaz
Re: Lightbox Gallery Resource 2.1
 
The bug regarding the single column and CZW_Blue Theme I solved just understanding this way that Paul gave.
I uploaded the styles.php from Standard Theme to CZW one.boca aberta and now all things are working well, Crop, Tags, Columns.
Here are the link of the gallery
Thanks for all.

 
Average of ratings: -
Picture of Jaap Marsman
Re: Lightbox Gallery Resource 2.1
 
Doh!

(Not the most intelligent of sounds to make, but still...)

I never knew you had to keep the standard theme in order for this to work. That's quite logical, seeing as "standardsheets: true" refers to this specifically.

I've long since deleted the standard theme because I don't use it. Now I've uploaded it again and the problem is solved! Is there an easy way to make the module independant from these sheets?
 
Average of ratings: -
Picture of Higor Vaz
Re: Lightbox Gallery Resource 2.1
 
Humm I wouldn't like to say but the bug remains.
It only show the columns on the CZW theme when I change it to Standard then to CZW, but when I hit F5 it shows only one column....
Any Help!
Thanks,
Higor
 
Average of ratings: -
Picture of Higor Vaz
Re: Lightbox Gallery Resource 2.1
 
First of all:
IM VERY SORRY FOR FLOODING bufão.
Id love to share the resolution!


The bug was on the config.php of CZW Theme.

line 9: the styles.php was missed, changed to:
$THEME->sheets = array('styles_variable', 'styles_layout', 'styles_fonts', 'styles_color','styles.php');

line 90: it was written:
$THEME->makenavmenulist = flase;
changed to:
$THEME->makenavmenulist = false;

NOW its working...Doooh
Can see here and here.
Bye,
Peace and Love from Brazil....
Higor
 
Average of ratings: -
Mt. Fuji
Re: Lightbox Gallery Resource 2.1
Group Particularly helpful Moodlers
Higor,

Just a note here. I tried this and it broke my theme (Custom Corners). The fix explained by Nicola here (the second part) however, fixed my issue and I now have the pictures in horizontal rows and my theme is in tact.

Just for reference for anyone that comes across this thread. smile

Jason
 
Average of ratings: -
Mt. Fuji
Re: Lightbox Gallery Resource 2.1
Group Particularly helpful Moodlers
Very strange!!! I posted the above message yesterday (here) and for some reason it is also showing up in this thread.

I had this thread open in a different tab in my browser when I posted the message (here) but it seems very strange that it would get posted in two different threads simultaneously...?

Jason
 
Average of ratings: -
Picture of Francesco Cortimiglia
Re: Lightbox Gallery Resource 2.1
 

Molte grazie Higor!

ho corretto $THEME->makenavmenulist = flase; nel mio tema

e tutto è andato a posto.

Un caro saluto

 
Average of ratings: -
Picture of Nigel Osborne
Re: Lightbox Gallery Resource 2.1
 

I see a few questions here about when this great module might be compatible with Moodle 2, but none of them (as far as I can see) have had an answer. Is there no chance that this will be done?

Thats would be sad, as the only alternative I can find is a beta attempt at integrating Gallery 2, and thats just way to big and complicated for our needs.

Perhasp just another reason why I'm so sorry I ever agreed to us upgrading to Moodle 2. What a disaster!!

 
Average of ratings: -
Picture of Higor Vaz
Re: Lightbox Gallery Resource 2.1
 
High Paul,
I tested changing the CZW to Standard theme as you can see on this and the album order worked well, columns!boca aberta

But no success triste on the Cropping tool. No "Cropper" are shown.

And the Rotate tool works only after page refresh, even if visiting another section and then go to the gallery, I get the rotated photo just after F5.

Thanks,
Higor
 
Average of ratings: -
Picture of Russ Lymer
Re: Lightbox Gallery Resource 2.1
 
hi did you get the refresh error sorted?
 
Average of ratings: -
Picture of anielka morales
Re: Lightbox Gallery Resource 2.1
 

hello Paul, I set  $THEME->standardsheets = true; and now the galery is in horizontal mode like I wanted, but the efect to see the picture in a popup with the exit, next an previous butom is not working.

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource 2.1
Group Particularly helpful Moodlers
Hi Anielka,

Which theme are you using? If it's one that includes its own Javascript libraries, you may need to modify it to stop it interfering with the Lightbox code. This issue has been reported a few times in this thread already - see this discussion for possible fixes.
 
Average of ratings: -
Picture of Paul Holden
Lightbox Gallery Resource 2.2
Group Particularly helpful Moodlers
Here's the latest version wide eyes

I've upgraded the prototype/scriptaculous libraries and also included a new script that adds another fancy touch to galleries.

Lots more smaller changes and maintenance work has gone into this version, which you'll notice as you use the plugin.

Please let me know if there is anything I've forgotten!

Modules & Plugins entry.
 
Average of ratings: -
larry's pix
Re: Lightbox Gallery Resource 2.2
Group Particularly helpful Moodlers
Paul

It does not appear to be in the Modules and Plugins directory. Is there a time lag?

L
 
Average of ratings: -
larry's pix
Re: Lightbox Gallery Resource 2.2
Group Particularly helpful Moodlers
I found it directly at http://moodle.greenhead.ac.uk/external/lightbox_gallery/

It still does not fix the showing of changes made (in the thumbnail) using the flip, resize or rotate options ..... without manually refreshing the page (at least in Firefox).
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource 2.2
Group Particularly helpful Moodlers
Hi Larry,

It depends on how you've got Firefox set up, specifically how it is reading files from it's cache.

If you want to shorten the image cache lifetime then you can lower $CFG->filelifetime in your config.php file or modify /mod/lightboxgallery/pic.php and lower the $lifetime variable manually.

Paul
 
Average of ratings: -
Picture of Mike Turpin
Re: Lightbox Gallery Resource 2.2
 

Hi,

I would love to be able to use this module but we are running 1.8.6 with GD version 2.

I have read the various posts that talk about a build navigation function that is part of 1.9 upwards.

the work around post  below would be great but I am not really sure how to implement it ie where to add the code shown below? Is there an idiots guide somewhere?.

Thanks

" limitation of using the build_navigation function is that it makes the code incompatible with versions prior to 1.9 (and will in fact lead to a fatal error because the function will not be found).

A work around is to call

if (function_exists('build_navigation'))
 


and use legacy code to produce the navigation element if the build_variable function is not available.

If your target version is only 1.9 or greater, this is, of course, not needed"

 
Average of ratings: -
Picture of Hellmuth Sole
Re: Lightbox Gallery Resource 2.2
 
Hi Paul... great job!!  Everything's working great!!  I'd just suggest one thing.  It turns out that when my IPTC tags have non english characters (for example I work in Spanish, so I use accent marks such as á and also the ñ) it cuts off the rest of the word (so for example transmissión only appears as transmissi).  If this minor detail could be fixed it would be great!!
 
Average of ratings: -
Picture of Ashley Holman
Re: Lightbox Gallery Resource 2.2
Group Developers
I got this error with version 2.1 and suspect it is still an issue with 2.2:

During cron:

PHP Fatal error: Cannot redeclare lightboxgallery_add_instance() (previously declared in /devapp/moodle/mod/lightboxgallery/lib.php:22) in /devapp/moodle/mod/lightboxgallery/lib.php on line 32

Fatal error: Cannot redeclare lightboxgallery_add_instance() (previously declared in /devapp/moodle/mod/lightboxgallery/lib.php:22) in /devapp/moodle/mod/lightboxgallery/lib.php on line 32

If you replace include() with require_once() in several places this fixes it.

Thanks
 
Average of ratings: -
Picture of Elena Ivanova
Re: Lightbox Gallery Resource 2.2
Group Particularly helpful MoodlersGroup Testers
Hi Paul,
Thank you for the module!
We have just installed v 2.2 on 1.9.4 and everything works great except cropping.
I am not even sure how it is supposed to work smile
I go to the cropping tab, and then I do not have any visible controls to crop the image with. I thought that may be I can jut select part of the image with the mouse, but it does not seem to be the case.
I am not getting any error messages either, but the browser complains that 'Draggable' is undefined and 'Copper.Img' is null or not an object. mixed
 
Average of ratings: -
Picture of Higor Vaz
Re: Lightbox Gallery Resource 2.2
 
Hello Elena, did you fix the problem of cropping, Im using 1.9.4+ and tested with FF3 and IE7 with no success.
The other functions are only showing updated when page refresh.
Thanks,
Higor
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource 2.2
Group Particularly helpful Moodlers
When I upgraded the javascript libraries for the last version, it seemed to break the image cropping tool - this has been fixed and will work again when I publish the next version soon approve There'll also be a new global module setting for configuring the image cache lifetime.

Higor - did you see my other post regarding the 'one-column' problem?
 
Average of ratings: -
Picture of Milan Jaroš
Re: Lightbox Gallery Resource 2.2
 
Hi, I'm excited there is movement on this extension. I tried to contact you some time ago but without success. Never mind. I did some modification of v1.3 and I wanted to share it with others. I really can't remember all of the changes there are some of them. I've added possibility to show subdirectories. I've added Czech translation too. I'm not PHP programmer so I'm not able to merge changes into your new version but I hope my my modified lightboxgallery v1.3 should help you to implement these changes.

FYI I've modified/added these files:
images\dir.gif
db\install.xml
lib.php
lang\cs_utf8\lightboxgallery.php
mod_form.php
db\upgrade.php
view.php

EDIT: I'm not sure if new version provides ability to hide extension or better: after uploading photos to adherent directory application should import captions from file name and than remove diacritics (File: žluťoučký kůň.jpg > Caption: žluťoučký kůň; File: zlutoucky-kun.jpg) and than auto-resize to wanted size (e.g. 1024x768). Thank you for your great job you've done!


With the best regards,
Milan.
 
Average of ratings: -
Picture of Milan Jaroš
Re: Lightbox Gallery Resource 2.2
 
Please let me know about your answer by Private message or e-mail (milan.jaros [difficult a char] gmail . com). Dunno how to watch just this thread. >mixed
 
Average of ratings: -
Picture of José Santos
Re: Lightbox Gallery Resource 2.2
 

hello,

I love your module and work fine, but i would like to know where  or how i hide the Display Name Picture in the gallery... i dont like the IMAGENAME.JPG.

Please Help me.

Thank you Very Much.

José

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource 2.2
Group Particularly helpful Moodlers
Hi José

If you want to remove the caption completely you'll need to edit some of the sourcecode.

In the file view.php, around line 114, change $imagelabel to whatever your preference is - presumable an empty string.
 
Average of ratings: -
Picture of Christian Pfisterer
Re: Lightbox Gallery Resource 2.2
 
HI,

I've just upgraded from 1.98 and 1.99. Now all the images in a gallery are only showing up on the left like this:

image
image
image
image
image
image
image

it used be like this

image image image image image image
 
Average of ratings: -
Picture of Greg Rodenhiser
Re: Lightbox Gallery Resource
 
Wow, looks like a great addition to Moodle. I was shown this by a few instructors and we'd love to use it on our Moodle 1.9.4+ install, however there's an issue. I installed the module by following the included install.txt file. This now shows as a resource in all my courses. I can create a new gallery and it shows up okay, BUT I cannot upload and images, the upload link doesn't even appear. I tried this as both Moodle admin and the teacher in the course, same thing, no upload link. I doublechecked the permissions in Moodle roles and teacher had all the rights. I tried several different themes, same issue, and also several different browsers (IE in Vista, Firefox 3 on Mac, and Safari on Mac).

I turned on debugging and got the following error on the Lightbox resource:

Invalid use of group function

SELECT description FROM mdl19dev_lightboxgallery_image_meta WHERE gallery = 2 AND metatype = 'tag' GROUP BY description ORDER BY COUNT(description) DESC, description ASC

line 686 of lib/dmllib.php: call to debugging()
line 966 of lib/dmllib.php: call to get_recordset_sql()
line 156 of mod/lightboxgallery/view.php: call to get_records_sql()

This Moodle is using MySQL 5.x and has no issues with any other Moodle modules. Thanks in advance!!!
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Greg,

Not sure why you're seeing that error mixed I've developed the module with MySQL 5.1.26-rc without problems! I don't suppose you have access to a mysql client with which you could debug the statement? Sorry I can't be of more help at the moment!
 
Average of ratings: -
Picture of Greg Rodenhiser
Re: Lightbox Gallery Resource
 
Okay, I found what's happening.... I installed the module then attempted to use it before creating a directory for the images in my course....

As soon as I created a directory using the files link in the course admin block and pointed by Lightbox gallery here instead of the root of the course directory everything was fine. I now have an upload images link at the bottom of my gallery.
 
Average of ratings: -
Picture of Paul Holden
Lightbox Gallery Resource 2.2.1
Group Particularly helpful Moodlers
I've posted a small update to the module, which includes the following fixes:
  • Image cropping tool works again
  • Improved IPTC tagging support
  • Column names updated for MSSQL support
There's also a new global module setting to control the length of time images should be stored in a browser's cache (make sure you check your current browser cache settings before reporting a bug!).

Modules & Plugins

Paul approve
 
Average of ratings: -
Picture of Higor Vaz
Re: Lightbox Gallery Resource 2.2.1
 
Hi Paul Holden,
Thanks for the update, the Cropping tool's working well, just a comment, it is necessary to page refresh to load the cropped photo.
But no Add image link is shown more!
 
Average of ratings: -
Picture of Paul Garratt
Re: Lightbox Gallery Resource 2.2.1
 

To All

Is there anyway of getting the Lightbox Gallery to look in sub folders as well for images?

Thanks

 
Average of ratings: -
Picture of Higor Vaz
Re: Lightbox Gallery Resource 2.2.1
 
Hello all,

Here I am to clarify the problem Im getting:

I tested the new version of the Lightbox (good Mod, thanks a lot Paul) and the previous bugs had been resolved: The Crop tool and Collumns layout are working almost well.
But now the Add Image link disappeared!surpreso

The tests were in two different installations and with two themes: CZW and Standard and the problem continue.
Here are the screens:
CZW Theme:
http://ead.colegiodosol.com.br/pix/czw_lightbox.jpg
Standard Theme:
http://ead.colegiodosol.com.br/pix/std_lightbox.jpg

 
Average of ratings: -
Picture of Christoph Ruda
Re: Lightbox Gallery Resource 2.2.1
 

Hi Paul,

Thanks for creating this resource. Unfortunately I have bee unable to get it to work so far. The installation results in some errors. The first 3 starting with

1050: Table 'mdl_lightboxgallery' already exists
1050: Table 'mdl_lightboxgallery_comments' already exists
1050: Table 'mdl_lightboxgallery_image_meta' already exists

They get resolved by the relevant table being altered by the script.

The last 3 can't be resolved:

1062: Duplicate entry 'lightboxgallery-update' for key 'mdl_logdisp_modact_uix'
1062: Duplicate entry 'lightboxgallery-view' for key 'mdl_logdisp_modact_uix'
1062: Duplicate entry 'lightboxgallery-comment' for key 'mdl_logdisp_modact_uix'

Please see the attached file for more details.

Lightbox Gallery Resource version 2.2.1

Moodle 1.9.4+ (20090204)

Any help would be much appreciated.

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource 2.2.1
Group Particularly helpful Moodlers
Hi Christoph,

The errors seem to suggest that you have a previously installed version of the module that hasn't been completely removed before installing it again.

1050: Table 'mdl_lightboxgallery' already exists, etc

Moodle shouldn't be trying to create tables if you were just upgrading - can you post more info about how you were installing/upgrading the module please? Which version from/to?
 
Average of ratings: -
Picture of Christoph Ruda
Re: Lightbox Gallery Resource 2.2.1
 
Hi Paul,
Thanks for your reply. I've had another look at this and I realised that my moodle user didn't have any permissions granted. I changed this and dropped the 3 tables I could associate with lightbox:
mdl_lightboxgallery
mdl_lightboxgallery_comments
mdl_lightboxgallery_image_meta

I also deleted the 3 entries in mdl_log_display (lightboxgallery-update, lightboxgallery-view' and lightboxgallery-comment) -and:

SUCCESS!

Many thanks for your help.

Christoph

 
Average of ratings: -
Frankie's the name, Moodle's my game!
Re: Lightbox Gallery Resource 2.2.1
Group Particularly helpful Moodlers

Hi Christoph!

I had a problem installing Lightbox Resource on my Moodle 1.9.9 site.

In searching moodle.org forums, I noticed that you had the exact same problem as I.
See: http://moodle.org/mod/forum/discuss.php?d=83599

I read that you solved your problem by dropping some tables and deleting the duplicate records from some MySQL table(s).

My problem is I don't know how to drop tables...I'm using WinXP and a FileZilla for FTP.
My Moodle site has been built-up from the stock version (created by my web host after I
registered my site) through downloads of mods and blocks and the Notification action.

So I am at a loss as to how to proceed to solve the 6 errors I am getting after doing the lightbox Gallery installation on my Moodle site. BTW, I am using a shared web hosting
plan. And lastly, my site is http://www.moodleace.com (it's 72 hours old!)

Regards
Frankie Kam
frankie[at]stamford[dot]edu[dot]my
Malaysia

 
Average of ratings: -
Frankie's the name, Moodle's my game!
Re: Lightbox Gallery Resource 2.2.1
Group Particularly helpful Moodlers

Hi Christoph! I had a problem installing Lightbox Resource on my Moodle 1.9.9 site. In searching moodle.org forums, I noticed that you had the exact same problem as I. See: http://moodle.org/mod/forum/discuss.php?d=83599 I read that you solved your problem by dropping some tables and deleting the duplicate records from some MySQL table(s). My problem is I don't know how to drop tables...I'm using WinXP and a FileZilla for FTP. My Moodle site has been built-up from the stock version (created by my web host after I registered my site) through downloads of mods and blocks and the Notification action. So I am at a loss as to how to proceed to solve the 6 errors I am getting after doing the lightbox Gallery installation on my Moodle site. BTW, I am using a shared web hosting plan. And lastly, my site is http://www.moodleace.com (it's 72 hours old!) Regards Frankie Kam frankie[at]stamford[dot]edu[dot]my Malaysia

 
Average of ratings: -
Picture of Christoph Ruda
Re: Lightbox Gallery Resource 2.2.1
 

Hi Frankie,

In order to manipulate tables directly you need access to you database. The best way to achieve this is to install the phpMyadmin plugin.

Once you have this installed you will find it under Admin > Server > Database. Select the table you want to drop from the list on the left and then click the 'Drop' tab on the right hand side of the screen (it's bright red!). Make sure you are careful to only drop the lightbox gallery tables, otherwise you could ruin your installation.

I also cleared out the lightbox gallery related entries from the 'mdl_log_display' table. To do this select the table and browse to the 'lightboxgallery' records. Click the red cross to delete the records.

As you have noticed I also changed my privileges on the database. My normal Moodle user (that is the mysql database user used by my Moodle site) had none and I think that had something to do with the lightbox gallery installation failing. You can adjust user permissions on the first phpMyadmin page. Unfortunately I can't tell you exactly what to do because I used another method to do this (direct access to the server).

Hope this helps. Please make sure you back up your database before you do this (also from within phpMyadmin) and proceed with caution.

All the best for your new installation.

 

Christoph

 
Average of ratings: -
Picture of David Rogers
Re: Lightbox Gallery Resource 2.2.1
 

Moodle 1.9.9 (Build: 20100609)
Good Day,

I am having a really obvious problem here but I can't see a solution at this point. I downloaded the .zip from the Moodle download site and extracted the module into the \mod folder.

There is a folder in \mod named lightboxgallery which contains four folders: db, edit, lang and scripts. There are 22 other files here.

I then logged into my Moodle site and went to the Administration -> notifications page - (http://mymoodlesite/admin/index.php) but no upgrade appeared to have happened - no "continue" button.

The only thing I see here is the standard release notes and the registration information.

There are no mdl_lighthouse tables in my database. Nothing new in the modules->Blocks->Manage blocks section.

 

Where am I going wrong?

DavidR

 
Average of ratings: -
Frankie's the name, Moodle's my game!
Re: Lightbox Gallery Resource 2.2.1
Group Particularly helpful Moodlers

Christoph

Many thanks for your speedy, excellent and detailed steps!

I will contact my Web hosting company and ask them about the phpAdmin plugin. I don't think that they can do all the steps for me, but after the thingy is installed by them, I'll give it a try. I'm new to CPanel and all that and my Moodle is installed on a Linux shared-host. The web host and CPanel has all the bells and whistles, but at this moment, I'm a newbie and I get by just nicely by FTP'ing with FileZilla.

Okay once again gracias amigos and I will get back ta ya.

Frankie Kam, Melaka, Malaysia, http://www.moodleace.com.

 
Average of ratings: -
Frankie's the name, Moodle's my game!
Re: Lightbox Gallery Resource 2.2.1
Group Particularly helpful Moodlers

Christoph, I was SO CLOSE to completing it.

I spend half a day trying to figure out what you meant, then it hit me that all I need to was to download the module from Moodle.org!!

Okay, then another two hours to slowing and carefully do the drop and removal of Lightbox Gallery records from the display table. After that I hit a BRICK WALL in that my user had the "red text NO PRIVILEGES" on the first page of phpMyAdmin. Another puzzle to unlock for a server newbie like me.

So, I spent another 1 hour crafting a detailed email message, complete with screen shots and sent it to my Web Host company, to see if they could understand that I wanted. Guess what? My Web Hosting company replied that "It show no privileges on shared hosting server setup. The full privileges can only get if you order dedicated or VPS server with Cpanel." Argrhhhhhh!!!!!!!!!

After composing myself, I sent off another email stating that all I wanted to do was to complete the installation of this Lightbox Gallery module thingy and that I had spent 1/2 a working day at my college trying to solve a series of difficult puzzles, only to have the "door slammed in my face". Not in those words of course, but I am hoping that they will be magnimanous enough to show me how to set my privilege to CREATE TABLE and to actually have Moodle's Notification command give me the good news of "tables created" so that I can use Lightbox in my Resources dropdown box.

Thanks for reading this, as for your last email, you aluded to the fact that you used another way to set your privileges...I'm not sure what you mean by that. Thanks anyway for your help. Closed door in my face.

But never mind, even if i can't get LightBox Gallery installed on my Moodle site, I've got tons of other blocks and modules installed already.

I guess I should be contented with that. But I spent all those hours trying to figure out a solution.....it's very frustrating.

Frankie Kam


 
Average of ratings: -
Picture of Glenn Sisson
Re: Lightbox Gallery Resource
 
Hi Paul,

Great module. Congrats!

I am relatively new to Moodle and I am a medical educator, not a programer, so please excuse me if there is an obvious solution to my problem.

I intend to use the gallery for clinicians to view and also download images for use in their own medical presentations. The gallery will be an educational resource to be shared.

Historically I have advised people to right click and save images once displayed full size.

Using your gallery this can be done at the thumbnail level but not at the full size, no doubt due to the code required for the transition etc. I did notice however that if I was really quick to right click as soon as the image appears (before the transition is complete) I was able to save image as...

Is there a solution to this, without having to be quick on the mouse?

Maybe a "Click here to download" option which would be visable at the thumbnail level.

Would appreciate your advice, or anybody else's for that matter.

Thanks, Glenn


 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Glenn,

Glad you're finding the plugin useful smile

The option to download gallery images already exists - when browsing through the gallery, clicking on the filename/caption in the lower-left corner of the image popup will open a download dialog box that allows you to save the original image.

 
Average of ratings: -
Picture of Gerrard Shaw
Re: Lightbox Gallery Resource
 
Plugin looks great but having the same problems with the Newbury theme, tried Nikki's fix but it doesn't seem to work for us for some reason?

Is the jquery lightbox plugin meant to be replacing the jquery the menu uses or am I geting a bit confused about what the plugin actually does?

Thanks,

Gerrard
 
Average of ratings: -
Picture of Glenn Sisson
Re: Lightbox Gallery Resource
 
Thanks Paul. Thought it would be simple.

Cheers
 
Average of ratings: -
Picture of Csaba Vágvölgyi
Tárgy: Re: Lightbox Gallery Resource
 
I have attached the Hungarian translation of Lighbox Gallery module.
Feel free to use it smile

Thanks: Csaba Vágvölgyi (Hungary)
 
Average of ratings: -
me
Lightbox Gallery Help
 
Hi

The links to your sites dont work.

I am having a problem with my lightbox gallery. I have attached a screenshot of how the images are displaying. When you click on them, they just open in a new IE window. Nothing flashy or anything.

Any help really would be appreciated

Thanks in advance
Sam

 
Average of ratings: -
Mary Cooch
Re: Lightbox Gallery Help
Group Documentation writersGroup Moodle Course Creator Certificate holdersGroup Moodle HQGroup Particularly helpful MoodlersGroup TestersGroup Translators
Are you using a customised theme? What happens if you switch to a standard Moodle theme - does it still not work?
 
Average of ratings: -
me
Re: Lightbox Gallery Help
 
I deleted the standard theme, as we built our own. Can this only be used with the Standard Moodle Theme?

Does anyone have the standard moodle theme in a zip that I could download and use?

Sam
 
Average of ratings: -
Picture of Jeff Wood
Re: Lightbox Gallery Help
 
Samantha,

I'm not sure if it needs the standard theme (but that is possible).

Try this http://moodle.org/mod/data/view.php?d=26&rid=234&filter=1

If that doesn't work... You could always download moodle, unzip it and zip the theme directory and upload it. I have done this before when i delete something by accident and it works fine. http://download.moodle.org/

Jeff


 
Average of ratings: -
Picture of Gerrard Shaw
Re: Lightbox Gallery Help
 

Hi Samantha,

The reason it isn't working is most likely the theme you're using... it looks like the Newbury one if I'm right?

We've got the same issue due to some jquery conflict in the Newbury theme but haven't had much luck fixing it (see some of my posts above). I think Nikki managed to get it working but haven't managed to replicate it on ours as yet sad

Hope this helps!

 
Average of ratings: -
Picture of Gerrard Shaw
Re: Lightbox Gallery Help
 

Hi Paul,

Been reading your posts about this jquery conflict and tried many ways of making this work but still no closer to a fix!

I've looked at the noconflict code but putting that in the header makes no difference... think it says the code needs to load after the 2nd library anyway (that would be scriptaculous.js \ lightbox.js?)

I've tried the jquerylightbox plugin, again not 100% sure how it's meant to work... is it meant to replace the standard lightbox.js and work via jquery instead of scriptaculous?

Tried calling the jquery plugin from the theme header but the lightbox plugin still wants to call the ones from the scripts folder, although I've got no idea where the code is that's trying to do it?

Hopefully you can shed some light on how the pages and scripts fit together and hopefully that might help to get a solution for this.

Cheers,

Gerrard

 
Average of ratings: -
Picture of Glenys Hanson
Re: Lightbox Gallery Help
 
Hello,

Can Lightbox Gallery be used to make a gallery of recent participants on a course? I mean, one like this one on Moodle.org: Recent Participants? Or is there another way to do that?

Cheers,
Glenys
 
Average of ratings: -
Picture of Paul Garratt
Re: Lightbox Gallery Help
 
You would need to put all the profile avatar in to one directory or copy the avatars yourself, you would also need to put a note on each to identify the image.


 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Help
Group Particularly helpful Moodlers
Hi Gerrard,

Which theme are you using (ah, just seen a previous post of yours - Newbury tongueout)

It seems Nikki got it working by using the jQuery lightbox plugin - although I've no experience with using it so I don't know if it's just a drop-in replacement for the scriptaculous version that lightboxgallery uses.

Do you still get errors in your web browser after you've modified the theme using the technique described here?
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Help
Group Particularly helpful Moodlers
Hi Samantha,

The lightboxgallery module will work with all themes, as long as they inherit from the standard theme - see this post where someone else fixed the problem you're having (see the $THEME->sheets and $THEME->standardsheets config settings).
 
Average of ratings: -
Wazza
Re: Lightbox Gallery Help
 

This doesn't fix the problem for us, we are still looking at one column even though we applied this fix.

Is there a way someone solved this in a stylesheet for the module or something?

 
Average of ratings: -
Picture of Nicola Fiori
Re: Lightbox Gallery Help
 
in config.php the line 16 would be

$THEME->standardsheets = true;

not false

and line 31

$THEME->parent = "standard";

 
Average of ratings: -
Picture of Vilca Bamba
Re: Lightbox Gallery Help
 
Hi,

I had the same problem with the single column (I use EduMoodle theme).
I copied the complete style code from /mode/lightboxgallery/styles.php and paste it into the styles_layout.css of the theme EduMoodle.
And now it works.
 
Average of ratings: -
Picture of Shane Symonds
Re: Lightbox Gallery Help
 
Paul : Nice work with the module, thanks, but I am having issues with some of the formatting. Like others, my gallery displays vertically but only the first time! If the user clicks on the breadcrumb link and goes in via that way, it displays horizontally, as it should. Is there a fix for this? If it was just the vertical displays I would look at some of the stylesheets in the standard theme but since it does display properly eventually, can that still be the issue? Any others with this issue? Thanks, Shane
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Help
Group Particularly helpful Moodlers
Hi Shane, it sounds much more likely that it's a problem with caching (either client- or server-side), so I would explore these options first. The CSS shouldn't change between requests wink
 
Average of ratings: -
Picture of M N
Re: Lightbox Gallery Resource
 

Nice plugin- but is there a way to disable the caption acting as a link to download the image?

Thanks!

 
Average of ratings: -
Picture of Richard Doel-Mackaway
Re: Lightbox Gallery Resource
 

I have successfully installed the Lightbox Gallery but nowhere can I find the Download image functionality that is meant to appear when you roll over the image caption. Has this feature been removed? Running Moodle 2.2 and the current version of Lightbox from https://github.com/netspotau/moodle-mod_lightboxgallery.

 
Average of ratings: -
Picture of Mark Picker
Re: Lightbox Gallery Resource
 

Hi Paul,

Great module and thanks for all the work putting it together.

I've just come across one issue while testing it.

On line 122 of search.php can I suggest changing the CONCAT line to instead use the library built into Moodle?

So the line would change from:

WHERE CONCAT(gallery, image) IN (' . implode(',', $imagesdisplay) . ')

to

WHERE ' . sql_concat('gallery','image') . ' IN (' . implode(',', $imagesdisplay) . ')

This change will make the search.php page compatible with other database platforms. For example, MSSQL uses a '+' instead of CONCAT but is also more strict about the types.  The library function sql_concat will CAST the values before they are concatenated.

Thanks again Paul.

Cheers
Mark Picker
www.wit.tafensw.edu.au

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Thanks for the report Mark approve - will be included as a fix in the next release.
 
Average of ratings: -
Picture of Simon Allison
Re: Lightbox Gallery Resource
 

just upgraded to new server and new moodle version 1.9.5+ and now get this when trying to add a new lightbox gallery:

Could not add a new instance of lightboxgallery

line 1664 of lib\deprecatedlib.php: call to debugging() line 286 of course\modedit.php: call to error()
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Simon,

You don't say which version of Lightbox Gallery you are using, it would be useful to know smile

Could you also turn on debugging in your site, so that we can see what the actual error was - cheers!
 
Average of ratings: -
Picture of Simon Allison
Re: Lightbox Gallery Resource
 

Thanks Paul

But I solved the problem, it seemed to be a permission issue on the mod folder.  Once I reset, it was all fine, some other modules also started working ;)

I was using the latest version and debugging was turned on, but only gave what I posted.

edit: before I changed permissions, I deleted the lightbox gallery module from the mod folder first and also in the database.

 
Average of ratings: -
Picture of Kelvin Bonaccord
Re: Lightbox Gallery Resource
 
Hey there -

I'm having a different issue w the lightbox thumbnails.

I'm using a smart board in the classroom, and have been uploading my desktop snapshots. The trouble is that when a student goes to look at the gallery of desktop snapshots, they often look (mostly) blank, since the board notes are at the top of a given image, while the thumbnail captures the bottom (and often blank) portion of the desktop snapshot.

This is because the default thumbnail size is closer to being square/landscape oriented than to the native size of my desktop snapshots, which are portrait orientation. The image below should help to illustrate what i'm talking about.
awkwardly cropped thumbnails

Which scripts or settings can i edit to change the default settings, site-wide?

This is something I need to look at correcting at the site-wide level because I will be uploading lots of images (btw, what's your favourite bulk upload method/tool?) and don't want to confuse students by having them look blank.

Thanks very much!




 
Average of ratings: -
Picture of Kelvin Bonaccord
Re: Lightbox Gallery Resource
 
Figured it out...

I changed line 86 of /lightboxgallery/imageclass.php from having offsety of 0 to -150. worked like a charm.

smile
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Kelvin,

Glad you got it working approve

By default the module will choose the centre of the image for the thumbnail, but you can also update each thumb manually by turning gallery editing on and selecting the Thumbnail option and playing with the Offset section - obviously this would have taken you a long time to do all your images! It might be useful if you now find strange looking thumbnails on differently sized images though.
 
Average of ratings: -
Picture of Amir Elion
Re: Lightbox Gallery Resource
Group Translators

Hi,

Installed latest lightbox version on moodle 1.9.5+

Installation went fine.
Added lightbox resource, and then uploaded an image to the courses file folder. When entering the Lightbox resource got this error (debugging is turned on):

Fatal error: Call to undefined function imagecreate() in /var/www/html/moodle/mod/lightboxgallery/imageclass.php on line 57
Then when re-entered the gallery got this with image not showing. (It is RTL beacuse site is in Hebrew).
Any ideas?
Thanks,
Amir

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Amir,

Lightbox Gallery requires the gd php extension to be installed on your server.

From your site administration panel, select Server > PHP Info and search for the gd section on this page, which will provide more info.

The image class should have caught that error though blush - will fix for next version.
 
Average of ratings: -
Picture of james yorke
Re: Lightbox Gallery Resource
 

Thansk for a great addition to moodle just have a little problem / question

Have installed the latest version on the server which seems to working fine but if i crop or rotate and image I find myself having to refresh the page to see the change in the thumbnail, now thats ok and the image in the image folder is edited but when the user click on the thumbnail is opens a copy of the image from "mod/lightboxgallery/pic.php/2/3107982535_02ce9f8570.jpg" not the changed one

Help! what have i got set up wrong ???

thanks

James

 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi James,

It sounds like your browser is caching old versions of the image - try modifying your browser cache settings or configure the module cache settings, like so:

From your Site Administration panel, select Modules > Activities > Lightbox Gallery. You'll see a field there labelled Image lifetime - set this value to the length of time in seconds you want images to be cached.
 
Average of ratings: -
Picture of emma yench
Re: Lightbox Gallery Resource
 
Hi folks

Undoubtedly stupid question, but I can't find the answer anywhere. Just wondering what filetypes are supported by the Gallery lightbox tool.

Cheers

Emma
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Emma,

Lightbox Gallery currently support JPG, GIF and PNG images wide eyes
 
Average of ratings: -
Picture of Gwynfor Rees
Re: Lightbox Gallery Resource
 

I've managed to install this mod but I do not know how to either upload pictures or point to a directory with picture in it. 

Can anyone give me a link to instructions or documentation..?

The 'Image Directory' field has just a roll down for Main Files directory

 
Average of ratings: -
Mary Cooch
Re: Lightbox Gallery Resource
Group Documentation writersGroup Moodle Course Creator Certificate holdersGroup Moodle HQGroup Particularly helpful MoodlersGroup TestersGroup Translators
Well there are various ways - put your images offline into a folder and zip/compress that folder. Then upload it into your course files (you can do this directly by clicking on the files icon in the course admin block of your course) Click the link to unzip the folder. Then when you go back to where you were - image directory - you will get the option to link to the folder you uploaded just now with your pictures in.
 
Average of ratings: -
Picture of Grant Harbor
Re: Lightbox Gallery Resource
 
I have just installed this and it works perfectly except that it only shows thumbnails for .gif images and all my .jpg or .png's thumnails are black?? (see attached)

Has anyone else had this problem??

Have I missed something?

Grant



 
Average of ratings: -
Picture of Grant Harbor
Re: Lightbox Gallery Resource
 
I've just figured this out myself.

I had not set the right GD version in the System Paths settings. (Some PHP image processing engine from what I can gather)

Funnily enough I only figure this out because my profile pictures were not showing either and this was a solution to that problem!

2 birds 1 stone!
 
Average of ratings: -
Picture of Jürgen Fabian
Re: Lightbox Gallery Resource - ownership and Update information
 
Hi Paul,

first of all, thank you very much for this excellent mod. It was really needed. lächelnd

We are using the moodle installation of a larger community and created a communications platform and "knowledge base" for a growing local non-profit group of amateur photographers. Of course those guys want to show their pics and be admired zwinkernd and so we were posting the fotos in a dedicated forum. Now that we found Lightbox Gallery, I created a gallery for every single member of the group.

By doing so, I encountered two topics I have no idea how to resolve.

  1. Having a single gallery for each single member, I wanted to grant every member the rights to add and manipulate pics exactly for her/his gallery. All other members should be able to see the pics and add comments.
    However I cannot grant rights to a single user. I can only grant these rights to the user role which in the end gives all the users the same rights in every gallery. I've read about adding a "gallery owner" role, but this seems to be the same result, isn't it?
    Did I miss some configuration?

  2. The gallerie titles on our starting page do not give any information about new entries in a gallery like a forum would do. This makes it kind of tiring for users, to check all galleries for new entries.
    Did I miss some configuration here or are there any suggestions for a work arround? How do other users of this mod inform about an updated gallery? Do you just post some news seperatly?
These are no show stoppers, as the gallery itself is so charming, but getting these topics solved would help a lot. Thanks.

Best wishes
Jürgen Fabian
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource - ownership and Update information
Group Particularly helpful Moodlers
Hi Jürgen,

Glad you've found some use from the module approve

For your first point - when you click Update this Gallery, select the Locally assigned roles tab and then add your student to the Gallery owner role. This should allow you to assign students their own galleries.

I'm not so sure about your second point though - the module doesn't currently publish when new images are added to the course, although this could be added if people would find it useful. It does publish when galleries are added or updated though, if you've got the Recent Activity block added to the course page.
 
Average of ratings: -
Picture of Chad Bergeron
Re: Lightbox Gallery Resource
 
Hmm. I think I've got a bug. I had three courses that weren't backing up properly. Backups were backing up the backupdata folder, so they were doubling in size every backup.

I tracked it down to the lightbox gallery. In each of these three courses, an instructor had added a gallery unintentionally, and used it like a web page. The gallery itself was left pointing to the main file directory, and there were no images in the gallery.

I think, somehow, in the backup process, the scripts for backing up galleries is grabbing the whole main directory.
 
Average of ratings: -
Picture of Paul Holden
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers
Hi Chad,

Thanks for the report - this is indeed a bug, and has been reported in the tracker at CONTRIB-1561.

The next version will prevent the course root directory from being selected as the image directory. I'm working on it on and off and will hopefully release something over the summer... approve
 
Average of ratings: -
Picture of Steven A.
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers

Yes, the double sized backups are a concern.  I mentioned this before in a private message to Paul.

Also, I have recently noticed that the Lightbox Gallery Module and Recent Activity Block do not play nicely together.  When a course has a Lightbox Gallery activity, if there is no recent activity, then the Recent Activity block is blank when it really should be displaying, "Nothing new since your last login."  Delete the Lightbox Gallery and the message comes back.  It's definitely repeatable.  Moodle 1.9.10+

 
Average of ratings: -
Picture of T Strait
Re: Lightbox Gallery Resource
 
Thanks for this great resource!

However, I cannot see the option to add files to the gallery, or choose any folder other than "Main files directory" which renders the module unusable.

For some reason none of my user classes can add images. I have attached an image of the panel shown when trying to create/edit a lightbox gallery.

I have checked permission levels for Administrators and verified that all Lightbox permission sets are set to Allow. I have checked that the user(s) I have tested this with are assigned as Administrators. I have even used the Override permissions tab for the lightbox resource to try and force it to allow my Admins the ability to add images or set the directory. No luck.

I have changed themes to explore the possibility of a javascript collision, with no success.

Are there any possible solutions to this issue?

I am using Moodle 1.9.9. Thanks in advance!

 
Average of ratings: -
Mary Cooch
Re: Lightbox Gallery Resource
Group Documentation writersGroup Moodle Course Creator Certificate holdersGroup Moodle HQGroup Particularly helpful MoodlersGroup TestersGroup Translators
So what happens when you click the arrow next to "main files directory"? Do you have any other folders in your course files area that could be chosen there?
Can you upload a zipped folder of images directly into course files in the site admin block, unzip it and have it appear in that drop down by"main files directory"?
 
Average of ratings: -
Picture of T Strait
Re: Lightbox Gallery Resource
 
Hi Mary,

Thanks for the reply! The pulldown by default only has one option - "Main files directory."

However, creating a new directory and putting images in it DOES result in a new matching option in the pulldown. This then successfully acts a lightbox. I'm glad that it works, at least. But for the less technically inclined, it would be nice if the file manager worked directly from the module. Any thoughts?
 
Average of ratings: -
Picture of Glenn Sisson
Re: Lightbox Gallery Resource
 
Hi Paul,

Great module. Noted above you were working towards a summer release of your next version, will this be compatible with Moodle 2.0?
 
Average of ratings: -
Picture of Jim Eckhardt
Re: Lightbox Gallery Resource
 

I just upgraded my site to 2.0  (without checking if lighbox was compatable sad

I will need to do someting a little diferent until a 2.0 lightbox comes out.  Thanks for the great module!

I will be back to look for it in the future smile

 
Average of ratings: -
Paul
Re: Lightbox Gallery Resource
 

Does anyone know if lightbox is working yet for 2.0?  I didn't see any posts confirming that it is yet.

 
Average of ratings: -
Picture of Heinz Schmolke
Re: Lightbox Gallery Resource
 

I'm using moodle2.0 and I tried lightbox. I get an error on admin/notification page. Does anyone know if lightbox is working with 2.0?

 
Average of ratings: -
Picture of Michael Mollard
Re: Lightbox Gallery Resource
 

I'm also testing our upgrade from v1.9 to v2.

Lightbox crashes out the upgrade process.  I've installed the latest lightbox module, not working.

 

Here's the output from the upgrade:

Plugin "mod_lightboxgallery" is defective or outdated, can not continue, sorry.

More information about this error

Debug info: Plugin is not compatible with Moodle 2.x or later.
Stack trace:
  • line 456 of /lib/upgradelib.php: plugin_defective_exception thrown
  • line 265 of /lib/upgradelib.php: call to upgrade_plugins_modules()
  • line 1425 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 311 of /admin/index.php: call to upgrade_noncore()

Any news if this is being looked at, or if there's something I need to do?

Cheers.

 
Average of ratings: -
Picture of Ali Hastie
Re: Lightbox Gallery Resource
 

Would be nice to know if there is an upgrade for Moodle 2?

 
Average of ratings: -
Picture of Anthony MOUCHERE
Re: Lightbox Gallery Resource
 
Hello, What can I do for use lightbox Gallery with Moodle version 2.0 ? Is there another plugin for insert pop up ? Thank you for your help,
 
Average of ratings: -
Picture of Aleksandrs Lubinskis
Re: Lightbox Gallery Resource
 

Hi all!

Sorry for my english.

Is there good way to use Lightbox gallery in moodle blog also? Our teachers want to put posts with lightbox gallery. Is it possible to use this module to manage pictures in blog post?

Thanks'

 
Average of ratings: -
Frankie's the name, Moodle's my game!
Re: Lightbox Gallery Resource
Group Particularly helpful Moodlers

This script generated 6 warnings - Scroll to the first warning ...

1050: Table 'mdl_lightboxgallery' already exists

1050: Table 'mdl_lightboxgallery_comments' already exists

1050: Table 'mdl_lightboxgallery_image_meta' already exists

1062: Duplicate entry 'lightboxgallery-update' for key 2

1062: Duplicate entry 'lightboxgallery-view' for key 2

1062: Duplicate entry 'lightboxgallery-comment' for key 2

lightboxgallery tables could NOT be set up successfully!

---------------------------------------------------

I installed the module found at http://moodle.greenhead.ac.uk/external/lightbox_gallery and I received 6 errors when running the Notification.

This isn't supposed to happen. What is the problem? How do I solve this?

Frankie (Malaysia)

 
Average of ratings: -
Picture of drew mortensen
Re: Lightbox Gallery Resource
 

I'm using the ltbluehover theme and having difficulty with the Lightbox module. For some reason I don't get the nice smooth popup window with darkened background. When I change my theme to standard, everything works fine. Why might this be?

 
Average of ratings: -
Picture of Glenn Pillsbury
Blank index page
 

Thanks for the plugin, Paul.  Really cool.

I was able to install it and create a test gallery that displays fine.  However, in the Activites list on the left menu of my course, there is a link for "Lightbox Galleries".  This should pull up a centralized page of all the galleries present on my site.  Unfortunately, in my case it's a completely blank page below my regular header and breadcrumbs.  On a <br> tag in the HTML.

Any ideas?

 
Average of ratings: -
Picture of Paul Holden
Re: Blank index page
Group Particularly helpful Moodlers

Hi Glenn,

Any chance you could temporarily turn on debugging so we can see what is going wrong?

 
Average of ratings: -
Picture of Glenn Pillsbury
Re: Blank index page
 

Here's the output with debugging turned on:

Notice: Undefined offset: 0 in /var/data/moodle/mod/lightboxgallery/lib.php on line 340

Notice: getimagesize() [function.getimagesize]: Read error! in /var/data/moodle/mod/lightboxgallery/imageclass.php on line 26

Warning: Division by zero in /var/data/moodle/mod/lightboxgallery/imageclass.php on line 67

Warning: Division by zero in /var/data/moodle/mod/lightboxgallery/imageclass.php on line 68

Warning: Division by zero in /var/data/moodle/mod/lightboxgallery/imageclass.php on line 77

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/data/moodle/lib/gdlib.php on line 37

Fatal error: Call to undefined function imagerotate() in /var/data/moodle/mod/lightboxgallery/lib.php on line 357

 
Average of ratings: -
Picture of Valerie Brown
Re: Lightbox Gallery Resource
 

Flash gallerie become more and more popular recently and I should say that Lightbox is really cool but it's not for free and this [http://www.1331media.com flash photo gallery] is absolutely freeware

 
Average of ratings: -
Picture of Nadav Kavalerchik
Re: Lightbox Gallery Resource
Group DevelopersGroup Particularly helpful MoodlersGroup TestersGroup Translators

Bug / Backup Issue...

When setting Lightboxgallery to use the course's main folder, the backup process backup the course's backupdata folder (if exists) thus, causing exponential growth of the backup zip.

See issue : http://tracker.moodle.org/browse/MDL-27437

 
Average of ratings: -
Picture of Anthony MOUCHERE
Re: Lightbox Gallery Resource
 
Hello, What can I do for use lightbox Gallery with Moodle version 2.0 ? Is there another plugin for insert pop up ? Thank you for your help,
 
Average of ratings: -
Picture of Alexander Dold
Re: Lightbox Gallery Resource
 

Like most people here, I'd like to know if there will be an upgrade that is compatible with Moodle 2.  What's the word?  Thanks.

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Hi there,

We've done some work getting lightbox gallery working for Moodle 2. It's almost 100% complete.
https://github.com/netspotau/moodle-mod_lightboxgallery

List of Issues can be found here:
https://github.com/netspotau/moodle-mod_lightboxgallery/issues?sort=created&direction=desc&state=open

The 1.9 -> 2.0 upgrade code and backup/restore code still requries testing. All image manipulation works except for Crop.

As this isn't 100% yet, make sure to try it out in test environments before deploying it on a production instance.

 
Average of ratings: -
Picture of Heinz Schmolke
Re: Lightbox Gallery Resource
 

Can you explain how to install? I tried with moodle 2.0 putting the "netspotau-moodle-mod_lightboxgallery-5d52cb6"-Folder in the mod-Folder but I only get an error.

Thank you

 
Average of ratings: -
Picture of Heinz Schmolke
Re: Lightbox Gallery Resource
 

I solved this problem by myself (I renamed the folder in "lightboxgallery") but now I tried to work with. When I choose "add a lightbox gallery" I can make some settings and give a name to the resource but when I try to save, I got an error:"Error when wiriting the Database" with a link to "error/moodle/dmlwriteexception"

In debugging-mode I got: "Notice: Undefined property: stdClass::$introeditor in /Applications/MAMP/htdocs/moodle20/course/modedit.php on line 404"

I run moodle on my computer with MAMP. Can somebody help me?

Thank you

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Sorry about that, grab the latest code from github, it doesn't have that issue anymore.

 
Average of ratings: -
Picture of Heinz Schmolke
Re: Lightbox Gallery Resource
 

Thank you very much. Now it works great!

 
Average of ratings: -
Picture of Nigel Osborne
Re: Lightbox Gallery Resource
 

Adam, so pleased you have taken on the task of getting this working in 2.0/

Unfortunately it looks like you have started from a higher level of 2.0 than we are using, and we don't do upgrades until the end of the school year (December). Here's our error:

Plugin "mod_lightboxgallery" (2011071100) could not be installed. It requires a newer version of Moodle (currently you are using 2010112400, you need 2010122500).

More information about this error

Stack trace:

  • line 423 of /lib/upgradelib.php: upgrade_requires_exception thrown
  • line 265 of /lib/upgradelib.php: call to upgrade_plugins_modules()
  • line 1352 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 290 of /admin/index.php: call to upgrade_noncore()

 

Is there an easy mod I can do to get it working for now?

 Nigel

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Hi Nigel,

If you open the version.php for the plugin, if you change:

$module->requires = 2010122500;

to

$module->requires = 2010112400;

You should be able to install it.

 
Average of ratings: -
Picture of Nigel Osborne
Re: Lightbox Gallery Resource
 

Wow, that was even simpler than I thought smile

Thanks.

It works great.

Nigel

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Glad to hear it.

If you notice any bugs or what not, please make note of them at:

https://github.com/netspotau/moodle-mod_lightboxgallery/issues

I'll try to get them fixed up as soon as possible. Note however that I'm on vacation for the next week and a half. So any fixes likely won't be available till after then.

 
Average of ratings: -
Picture of Eleanor Ramsay
Re: Lightbox Gallery Resource
 

I would love to get this working at my Live 2.0 site.

I have tried installing it in Moodle 2.0.4 After fixing the version requirement, receiving this error. :

-------

Table "lightboxgallery" does not exist

More information about this error

Stack trace:
  • line 146 of /lib/ddl/database_manager.php: ddl_table_missing_exception thrown
  • line 198 of /mod/lightboxgallery/db/upgrade.php: call to database_manager->field_exists()
  • line 526 of /lib/upgradelib.php: call to xmldb_lightboxgallery_upgrade()
  • line 265 of /lib/upgradelib.php: call to upgrade_plugins_modules()
  • line 1421 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 311 of /admin/index.php: call to upgrade_noncore()
-----
 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Looks like it didn't install properly. Are you able to delete the module from moodle via "Site Admin > Plugins > Activity Modules > Manage activities"?

Assuming you keep the code there, the next time you view notifications it should ask you to upgrade moodle (as it wants to reinstall lightbox).

 
Average of ratings: -
Picture of Eleanor Ramsay
Re: Lightbox Gallery Resource
 

It was detritus from earlier failed install. Got it working but had to remove the reference to lightboxgallery in mdl_modules first. Thanks.

Do you know if there will be the ability to either point to an existing folder of images or process a .zip file in the future? That is what made this resource so great before. It made converting bulky powerpoints to nice slide shows a breeze.

 
Average of ratings: -
Picture of Katja Krüger
Re: Lightbox Gallery Resource
 

Thank you very much !!! I upgraded copies of courses with galleries inside in my testing environment from 1.9.12 to 2.1 and everything works fine. This is for what we waited to upgrade our installations to Moodle 2 but ... is it possible to add the possibility to upload zip files? Or to choose an existing repository? Like this where you have to add one image after another it is not usefull for what we do. 

Viele Grüße katja

 
Average of ratings: -
Picture of Ali Hastie
Re: Lightbox Gallery Resource
 

Excellent work on the Lightbox gallery for Moodle 2, thanks!

I have installed for Moodle 2.0.3+ and when I try to upload images using IE 8 it wont allow me, as all I see is a blank image trying to load even though there no images uploaded. I can upload images with Firefox though.

It would be good to select a folder within Legacy Course Files which contain the images at least (like we do with the Moodle 1.9 version) or Katja above says uploading and chossing a zipped folder.

Thanks for the progress smile

 
Average of ratings: -
Picture of Dennis Hilgers
Re: Lightbox Gallery Resource
 

Hi there,

Thanks for this great module.

It's still what i'm searching for. Everything works very great except the close button in the lightbox view and the keyboard navigation.

When i press the close button i get a javascript error saying "B.get is not a function".

I am using the latest version from github and Moodle 2.1.2

Hope you can help me.

regards
Dennis

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Hi Dennis, Thanks for letting me know of the issues, I've logged them on the github issue tracker. I hope to be able to get the time to address at least a few of them on there (that close button one seems like a likely candidate, thats for sure).

Regards,

Adam.

 
Average of ratings: -
Picture of Laura Haselum
Re: Lightbox Gallery Resource
 

Hey all,

I've tried installing the 2.0 version on 2.2 and had no problems installing it.

However, when trying to add an image, I get a white screen. I've turned on debugging and get the following error

"Fatal error: Out of memory (allocated 46923776) (tried to allocate 17280 bytes)"

I've tried doing the suggestions here http://docs.moodle.org/22/en/Errors_FAQ#Fatal_error_allowed_memory_size_exhausted._How_do_I_increase_my_php_memory_limit.3F but they haven't worked.

I can get a very small image to upload (a few kb) but when i try and view it it will only let me download it - very strange!

Has anyone else had this problem?

Thanks in advance!

 
Average of ratings: -
Picture of Adam Blake
Re: Lightbox Gallery Resource
 

I managed to insall Light box properly and it seems to work.

I need to delete the album now. but i get a fatal error that i can't see, to find the debugging for.

"Coding error detected, it must be fixed by a programmer: PHP catchable fatal error"

thats all i get

 

any help? Thanks.

 

I can get around this if i can "stack" albums up 

so i would have a label called photo galleries than once clicked on it displays the list of galleries (kinda like how you need to click site admin to get anythere) is this possible in the mainmenu block.

 
Average of ratings: -
Picture of Sara Cenni
Re: Lightbox Gallery Resource
 

Hi Paul!

I'm getting an error when I try to insert a comment. I'm using Oracle and "comment" is a  reserved word.  I wonder if changing the column name could be the only possible solution for this problem....

Thanks!!

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Hi Sara, are you using the Moodle 1.9 version or the Moodle 2 version?

 
Average of ratings: -
Picture of Sara Cenni
Re: Lightbox Gallery Resource
 
I'm using Moodle 1.9.11
 
Average of ratings: -
Picture of Paweł Suwiński
lack of visibility checking in view.php
 

Hidden galleries still can be viewed.

Here is a patch:

--- /tmp/lightboxgallery/view.php 2011-11-16 13:12:44.000000000 +0100
+++ lightboxgallery/view.php 2011-12-09 14:20:52.000000000 +0100
@@ -47,11 +47,15 @@
require_capability('mod/lightboxgallery:edit', $context);
}

+ if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $context)) {
+ notice(get_string("activityiscurrentlyhidden"),$CFG->wwwroot . '/course/view.php?id=' . $course->id);
+ }
+
lightboxgallery_config_defaults();

 
Average of ratings: -
Picture of min cris
Re: lack of visibility checking in view.php
 
Hi I'm new and I have a problem installing the gallery but what happens is when you want to add picture or comment appears a black screen as if you were charged and will not let me do anything I am using moodle 2.1, internet explorer 8, and I have a xampp with phpmyadmin I can do and other questions where the patch should be placed in that file?
I added a picture with the problems I have
thanks for your help
mixed
 


 
Average of ratings: -
Picture of min cris
Re: lack of visibility checking in view.php
 
please help someone with a solution to my problem
 
Average of ratings: -
Picture of Adam Olley
Re: lack of visibility checking in view.php
Group Developers

Hi min cris,

Try out the latest version from github. I've just patched this problem. Hopefully it'll work for you smile

 
Average of ratings: -
Picture of Harald Torbjørnsen
Re: lack of visibility checking in view.php
 

I have installed your patch, but it is still possible for guests to see hidden galleries. Can you help me?
We are currently using Moodle 2.2.6 an Lightbox version 2012052500

 
Average of ratings: -
Picture of Susana L.
Re: Lightbox Gallery Resource
 

Hi,
I'm using thar lightbox gallery on moodle 2.2. Everything was working fine until I checked the reports page. I get following error:

For instance:http://moodle.xxx/report/outline/user.php?id=19&course=8&mode=complete

get_records() not available anymore

More information about this error
Debug info: error() is a deprecated function, please call print_error() instead of error()
Stack trace:

    line 831 of /lib/deprecatedlib.php: moodle_exception thrown
    line 1822 of /lib/deprecatedlib.php: call to error()
    line 175 of /mod/lightboxgallery/lib.php: call to get_records()
    line 132 of /report/outline/user.php: call to lightboxgallery_user_complete()

Moodle 2.2 (lightbox version: 2011111600) (should I upgrade to latest?)

Thank you!

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Hi Susana,

Thanks for the report, I've now fixed this. Grab the latest version from github.

Cheers!

 
Average of ratings: -
Picture of mike smith
Re: Lightbox Gallery Resource
 

It works for me now.

Thanks

Video Chat

 
Average of ratings: -
Picture of Conn Warwicker
Re: Lightbox Gallery Resource
 

Hi,

I've been trying to use the "Edit" features of the Lightbox gallery, such as crop, rotate, resize, etc... (Moodle 1.9) but none of them seem to be working, apart from the basic ones like "Caption".

When I save the changes I've made in a crop or a resize, etc... the page gives me the "Continue" link, then reloads with no changes having been saved.

I've got debugging on but there are no error messages being displayed.

I'm assuming that maybe we don't have the correct php extension installed to manipulate images.. Do you think that would be the case? Or any other ideas?

 

Cheers.

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Moodle 1.9, so which version are you using, Paul Holdens lightboxgallery, or Andrew Hancox's jQuery version? (a quick look in any README file or version.php should be able to tell you this).

The extension you'd want would be GD (package "php-gd" on fedora, presumambly similarly named on other distro's). Although if you didn't have GD, I'd imagine your pages would come up blank from a fatal error (missing functions).

 
Average of ratings: -
Weeping Woman
Re: Lightbox Gallery Resource
 

Using Moodle 2.2 on IIS7 and getting the following error message -

Notice: Undefined property: stdClass::$intro in D:\IIS\FPHS-VLE\Public-Data\mod\lightboxgallery\view.php on line 117

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Hi Zbysiu,

Did you upgrade from a previous version, if so what one. The intro property should definitely be available at that point in the code, which makes me think that maybe the table in your database is wrong.

If you know how, could you provide the table schema for the mdl_lightboxgallery table in your database?

 
Average of ratings: -
Picture of Tam Nguyen
Re: Lightbox Gallery Resource
 

Great resource! The transition effect is really nice.

I am experiencing a strange problem though. Some of our users can view the gallery fine, but some are being prompted to download the image when they click on the thumbnail version (instead of going to the larger view with transition effect). Is this a browser issue?

Moodle version 2.2, tried both IE 9 and Firefox 14

 
Average of ratings: -
Picture of llywelyn morgan
Re: Lightbox Gallery Resource
 

hi

how do i download a folder of images that have been uploaded to the lightbox gallery?  is this possible?

thanks

 
Average of ratings: -
Picture of llywelyn morgan
Re: Lightbox Gallery Resource
 

bump!  any help out there?

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Currently, there is no such option.

Well, technically you could make a backup of the activity and the file would contain the images inside the files folder in the backup. But they wouldn't have the same names or extensions that you might expect (as they'd be in moodles internal file api naming scheme).

 
Average of ratings: -
Picture of llywelyn morgan
Re: Lightbox Gallery Resource
 

thanks. i'll put in a request for it in future developments.

 
Average of ratings: -
Picture of Anil Sharma
Re: Lightbox Gallery - importing from 1.9 to 2.3
 

Hello!

We have lots of lightbox galleries on a moodle 1.9 in various courses. Is there a way to move them to moodle 2.3?  We don't want to upgrade the moodle 1.9 site as too many plugins need updates, we've managed to move most of the course content to m2.3.

Taking course backups from 1.9 and restoring in 2.3 does not work, the course restore happens but lightbox gallery is not restored.

 Any inputs ?

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery - importing from 1.9 to 2.3
Group Developers

Hi Anil,

As you've already discovered, currently the lightboxgallery module doesn't support restoring 1.9 content into 2.x. It'd definitely be something useful to a lot of people, so I'll see if I can't get to adding support for that sometime this week.

 
Average of ratings: -
Picture of David O'Brien
Re: Lightbox Gallery Resource
 

Hello

I have used this lightbox gallery ok from about Moodle 1.8 onwards. Now on Moodle 2.3.2+ (Build: 20120920) and lightboxgallery 2012061900 I have a problem with the resize on upload feature not working. If I set the gallery Automatically resize - Upload to Resize (upload) - 800x600 then the resize does not work, nor do any of the other sizes.

I can resize an image to any of the preset sizes once the image has been  uploaded. I googled around and found https://github.com/brum1975/moodle-mod_lightboxgallery and put that on my dev moodle but with no improvement. I have also updated GD on the server.

All image edits (resize, crop, rotate etc) work OK.

Is anybody else experiencing this and is there a work around?

Many thanks

 
Average of ratings: -
asd
Vastus: Re: Lightbox Gallery Resource
Group DevelopersGroup Translators

Im experiencing the same issue, youre not alone.

I did a quick nasty hack at my institutions moodle to temporarly fix it, but would be nice if the modules maintainers would look into it.

(for what i understood from the code, that the gallery-lightbox-min.js need some fixing related to the automatic resize to screen resolution if image is 3000x4000px for example)

 
Average of ratings: -
Picture of David O'Brien
Re: Vastus: Re: Lightbox Gallery Resource
 

Hi Tonis,

I am glad I am not alone smile Would you care to share your quick nasty hack?

Regards

 
Average of ratings: -
Picture of Adam Olley
Re: Vastus: Re: Lightbox Gallery Resource
Group Developers

Hi Tonis,

https://github.com/netspotau/moodle-mod_lightboxgallery/issues/18

That's where the issue is documented, just haven't had time to look into it. In the meantime, if you have a working fix that you'd like to share, feel free to make a pull request on the github repo (https://github.com/netspotau/moodle-mod_lightboxgallery). If you don't like github or don't know how to use it, a patch file or something similar will be fine as well smile

This issue along with being able to restore 1.9 backups of galleries seems to be two of the most requested items. So I'll be aiming to have them worked on and hopefully fixed some time this week.

 
Average of ratings: -
Picture of Adam Olley
Re: Vastus: Re: Lightbox Gallery Resource
Group Developers

You'll all be glad to hear that I've just pushed a commit onto the master branch (https://github.com/netspotau/moodle-mod_lightboxgallery) that adds the backend support to make the images resize on upload.

Now when adding files, they will resize based on what the user selects, or the autoresize value if one is set in the gallery settings.

The one thing missing right now is screen resizing (resizing inside the browser because the users screen is too small).

If any of you get the chance to test it out, let me know if you run into any issues! (Either here or in github smile )

 
Average of ratings: -
Picture of David O'Brien
Re: Vastus: Re: Lightbox Gallery Resource
 

Hi Adam

Thank you for getting to this so quick. I downloaded from github and the resize on uploads works great smile

Brilliant!

Cheers

 
Average of ratings: -
Moodler
Re: Vastus: Re: Lightbox Gallery Resource
 

Hi Vastus, I am trying to load the lightboxgallery fix for the image resize. I have moodle 2.3 but I am having a problem when I try to install. I downloaded the version of the software for moodle 2.3 I place the renamed folder in the mod folder. When I sign in to my moodle site I see the plugin and the message to be upgraded on the screen.  At the bottom it says

You must solve all the plugin requirements before proceeding to install this Moodle version!

In a separate column under required is Moodle2012062500. I'm guess this means I have the wrong version of moodle but I am running moodle 2.3.  I have also tried the version for moodle 2.2. Can you help me. thanks

 
Average of ratings: -
Moodler
Re: Vastus: Re: Lightbox Gallery Resource
 

I was just now able to install the software for moodle 2.2 but the images will not resize on upload. thanks for any help or suggestions.

 
Average of ratings: -
asd
Vastus: Re: Vastus: Re: Lightbox Gallery Resource
Group DevelopersGroup Translators

Hi Adam,

I dug once again into the YUI lightbox code and came up with a fix, related to the automatic resize. Although, now its always switched on.. :p

https://github.com/t6nis/moodle-mod_lightboxgallery

Try it out and let me know, if its alright.

 
Average of ratings: -
Picture of Kerry Moralee
Re: Vastus: Re: Vastus: Re: Lightbox Gallery Resource
 
I'm still experiencing the same issues. I've tried the fixes listed, but they haven't worked here. Can anyone help?
 
Average of ratings: -
asd
Vastus: Re: Vastus: Re: Vastus: Re: Lightbox Gallery Resource
Group DevelopersGroup Translators

Did you replace the gallery-lightbox-min.js from my git address?

You might wanna try to clear the moodle caches too, the javascript changes wont take effect immediately after the replace..

 
Average of ratings: -
Picture of Kerry Moralee
Re: Vastus: Re: Vastus: Re: Vastus: Re: Lightbox Gallery Resource
 

Thanks, I'll give that a go later on today (I did try replacing the JS from your git, but not the cache part).

 
Average of ratings: -
me
Lightbox Gallery Resource
 

Hi.

I am using 2.1.1 version of Moodle. I tried to use the .zip file on https://github.com/netspotau/moodle-mod_lightboxgallery but when I installed it, it says:

Plugin "mod_lightboxgallery" (2012061900) could not be installed. It requires a newer version of Moodle (currently you are using 2011070101, you need 2012062500).

More information about this error
Stack trace:

line 463 of /lib/upgradelib.php: upgrade_requires_exception thrown
line 265 of /lib/upgradelib.php: call to upgrade_plugins_modules()
line 1460 of /lib/upgradelib.php: call to upgrade_plugins()
line 317 of /admin/index.php: call to upgrade_noncore()

Do you know where I can get a copy of the correct version?

Thank you in advance,
Sam

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Hi Sam,

Yes, you'll want to use the 2.1 version on the 2.1 branch, here's a link to the zip:

https://github.com/netspotau/moodle-mod_lightboxgallery/zipball/MOODLE_21_STABLE

 
Average of ratings: -
me
Re: Lightbox Gallery Resource
 

Thank you very much. Will give it a try now :D

Sam

 
Average of ratings: -
Picture of C R
Re: Lightbox Gallery Resource
 

Hi, i've just upgraded to moodle 2.4 and the lightbox gallery is not working properly. The thumbnails show, when you click on to a view a picture, the screen goes black as expected, and a white box appears with the spinning loading image, and no picture is shown.

How can this be resolved? thanks

 
Average of ratings: -
Picture of Nick Gault
Re: Lightbox Gallery Resource
 

If you are having this problem try turning off 'YUI Combo loading' in the AJAX settings. 

The JS console reports 'Uncaught ReferenceError: YAHOO is not defined' in the gallery-lightbox-min.js 

 

 
Average of ratings: -
Picture of Laura Brunning
Re: Lightbox Gallery Resource
 

Hi,

We are using Moodle 2.2 and recently installed Lightbox.

We tried both the plugin given on the Moodle Docs page and then tried the github.com one (as a previous post said it was newer)

With both installs, we get no error messages and the ability to add a Lightbox is there in the "Add a Resource" drop down menu on the course page. 

However, there is no drop down box the "Image Directory" - so there appears to be no way of adding pictures.  All the other settings are there.

Has anyone else had this problem?  Can you help to fix it?

Cheers, Laura

This is what we see, no Image Directory under the description box

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Hi Laura,

The old 'image directory' made use of Moodle 1.9's way of storing files (now called legacy files). You no longer do that from the add/edit screen you've screen shot there. Go ahead and save/add the resource. Once you click on it to view it, you'll see on the view page a link to "Add images".

Clicking that allows you to then upload a file. Either a single image or a zip file full of images. These are then added into the gallery. (When I get time one day, I'll update that file selector to allow you to upload multiple images without needing to zip them up...)

I hope that covers it for you smile

 
Average of ratings: -
Picture of Laura Brunning
Re: Lightbox Gallery Resource
 

That's fantastic - thank you - I have it working.

I never thought to save it first

Cheers, Laura

 
Average of ratings: -
Picture of Sara Cenni
Re: Lightbox Gallery Resource
 
I'm using the last version of Lightbox Gallery in Moodle 2.4, clicking on Popular tags I get the following error:
 
Can not find data record in database.

More information about this error

Debug info: SELECT cm.*, m.name, md.name AS modname
FROM {course_modules} cm
JOIN {modules} md ON md.id = cm.module
JOIN {lightboxgallery} m ON m.id = cm.instance

WHERE cm.id = :cmid AND md.name = :modulename

[array (
'cmid' => 4,
'modulename' => 'lightboxgallery',
)]

Error code: invalidrecordunknown

Stack trace:
line 1385 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1508 of /lib/datalib.php: call to moodle_database->get_record_sql()
line 35 of /mod/lightboxgallery/search.php: call to get_coursemodule_from_id()
 
 
Does anyone know how to fix this error?
 
 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Hi Sara,

I've fixed this issue just now for you. You can get the latest copy with this fix from github:

https://github.com/netspotau/moodle-mod_lightboxgallery/archive/master.zip

If you run into any further problems, either post here or file a bug on the github project, thanks!

 
Average of ratings: -
Picture of Sara Cenni
Re: Lightbox Gallery Resource
 

Thank you very much, we're currently testing your new version and it seems to work properly so far!

 


 
Average of ratings: -
Picture of Sara Cenni
Re: Lightbox Gallery Resource
 

Using Oracle there is still a problem with popular tags. Description is a clob so the query must be modified adding alias for that field:

$sql = "SELECT $desc_compare as description

FROM {lightboxgallery_image_meta}
WHERE gallery = {$gallery->id}
AND metatype = 'tag'
GROUP BY $desc_compare
ORDER BY COUNT($desc_compare) DESC,
$desc_compare ASC";

 

 

 
Average of ratings: -
Picture of Matteo Ricci
Re: Lightbox Gallery Resource
 

Hi,

I'm using lightbox in 2.4.3 with Oracle,

when I try to add a comment the system returns error because the name of the column in LIGHTBOXGALLERY_COMMENTS "comment" is an Oracle-reserved word.

Which is the best way to avoid this problem ?

I have tried to rename the column after and before the installation but the error still remains

Thank you in advance

 

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

Ah oracle. Always the odd one out. I'll take a look at getting this and the other oracle related issue with tags dealt with on Monday, I'll post here once a fix is available on github.

 
Average of ratings: -
Picture of Adam Olley
Re: Lightbox Gallery Resource
Group Developers

I've now updated the master branch at github with a fix for each of these two issues.

The one for comments requires a plugin upgrade to rename the comment field to commenttext.

 
Average of ratings: -
Picture of Micah Flint
Re: Lightbox Gallery Resource
 

I uploaded Lightbox on to my Moodle site.  I see in in my Plugins Overview as enabled but I can't not find it on the resource bar when editing a page.  Any suggestions?

 
Average of ratings: -
Picture of Micah Flint
Re: Lightbox Gallery Resource
 

I uploaded Lightbox on to my Moodle site.  I see in in my Plugins Overview as enabled but I can't not find it on the resource bar when editing a page.  Any suggestions?

 
Average of ratings: -
Picture of Blair F.
Re: Lightbox Gallery Resource
 

Good day!

I'm wondering if there's a way of connecting the lightbox gallery functionality to the TINYMCE editor, so that a page can include thumnails within the page content, that open up individually, when clicked.

I found this article, that kind of explains what I'd like to be able to do, but those directions don't apply to the lightbox gallery plugin:  https://drupal.org/node/252153

Thanks,

Blair

 
Average of ratings: -