Photo Gallery Format

Photo Gallery Format

by Mike Churchward -
Number of replies: 90
Picture of Core developers Picture of Plugin developers Picture of Testers
I have attached a new format for the glossary module that I use to implement photo galleries.

This format uses the glossary module to allow users to upload images, provide them with a title, description and keywords, and put them in categories. Each image that is uploaded is automatically given a thumbnail image to use in a summary display (using the PHP image functions). As well, the glossary comments and ratings can be applied to each image.

This first version has a summary display, that shows 100x100 thumbnails of each image in rows of six images. Each thumbnail shows the title, the author and the most recent modified date. Clicking on the entry brings up a larger version of the image (limited to no larger than 800x600), the full description, any comments and ratings. Clicking on the larger image will open just the image in a separate window in its full size.

The summary displays show each image title in a maximum two line display. This format will truncate the tile by words anc characters to limit this display to 2 lines of 12 characters. If it is shortened, it will add '...' to the end.

I also recommend that you configure this format, using the glossary module configuration screen, to default to date ordering and not include group breaks.

I have added a couple of CSS classes to make the display look better. I recommend you add these to your theme stylesheet to make it look a little nicer. They are:

.glossarytable a {
color: white;
}
.glossarysummary {
font-size: 9pt;
}
.glossarysummary a {
color: #0000CC;
font-size: 9pt;
}
.generaltab a {
color: #0000CC;
}
You can change these to suit your theme. The font size ones are probably the most important. They make the summary display a little more manageable.

Things yet to do:
1) Create language strings - right now, the custom terms are hard-coded.
2) Allow row size configuration - allow the user to choose how many thumbnails are displayed in a row.
3) Add more style classes.
4) Allow summary title size configuration - currently locked at 2 lines by 12 characters.

Give it a try and let me know what you think.

mike
Average of ratings: -
In reply to Mike Churchward

Re: Photo Gallery Format - Thumbnails Screen Grab

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Here's an example of the thumbnail/summary screen.

mike
Attachment gallery-tn.jpg
In reply to Mike Churchward

Re: Photo Gallery Format - Thumbnails Screen Grab

by Ger Tielemans -

I like it!
Again a tool for the student. (up and running in 1.4.4)

In reply to Mike Churchward

Re: Photo Gallery Format - Thumbnails Screen Grab

by Darren Smith -
This looks great and appears easy to install but I may have done something slightly wrong!

I just unzipped it to moodle/mod/glossary/formats and it created a new folder called gallery and put the two files in there. Makes sense. visited the admin page and nothing happens which, actually, also makes sense. Did the style sheet thing.

To add the photo I just added it as an attachement and put the description in the standard html editor and all seemed fine. The image was shown with the description. When I clicked on the image a full screen version was shown.

Problem: I left the glossary and came back in and the thumbnails aren't showing (1.4.4) - see pic. Clicking on the thumbnails takes me to moodle/mod/gallery/discuss.php?d= which is obviously not quite right and the browser just tells me object now found.

Did I do something silly?

Darren
PS - this was on our moodle front page.
Attachment gallery.jpg
In reply to Darren Smith

Re: Photo Gallery Format - Thumbnails Screen Grab

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
It looks like you aren't able to create thumbnails. And it looks like my code that handled that has a problem...

Try replacing your gallery with the attached, and let me know how it goes.

There may be a problem with it being in the front page. I'm not sure if everyone can create files in the home page file directory - that may be limited to teachers. Try it in a course and see if it behaves better.

mike
In reply to Mike Churchward

Re: Photo Gallery Format - Thumbnails Screen Grab

by Darren Smith -
Thanks for the prompt reply, mike big grin

Just a quick test as it is 1:15am here! I replaced the files with the new zip and everything obvious seems to work great on the front page. Thanks for that. I'm sure this will be a great addition. It's screaming out 'field trip images' to me but I'm sure I / the kids will find lots of valuable uses.

I will let you know if anything pops up when I test it further but I think this is a great addition.

Regards and stuff

Darren
Attachment working.jpg
In reply to Mike Churchward

Svar: Re: Photo Gallery Format - Thumbnails Screen Grab

by Anders Berggren -
I seem to have the same problem as
Darren. The new .zip didn't do it.
In reply to Anders Berggren

Re: Svar: Re: Photo Gallery Format - Thumbnails Screen Grab

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Hi Anders -

The clue in Darren's post that showed me what was wrong was that his thumbnails were attempting to link to an URL with 'discuss.php' in it. If you are seeing the same thing, then you are using the old code still. Can you check this?

If this is not the case, can you provide me with details of your problem and installation? Do you have a GD library installed?

mike
In reply to Mike Churchward

Svar: Re: Svar: Re: procedure description 1

by Anders Berggren -
I followed the install instructions.
  • Unzipped in mod/glossary/formats, 
  • got new folder 'gallery',
  • Changed module settings could see this - configwarning,
  • Created new entry,
  • uploaded image.
To be continued...
Attachment tiger_1.jpg
In reply to Anders Berggren

Re: Svar: Re: Svar: Re: procedure description 1

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
That's odd. The 'Description' area should be below the picture. Are you using a custom theme of some sort?

mike
In reply to Mike Churchward

Svar: Re: Svar: Re: Svar: Re: procedure description 1

by Anders Berggren -
Foot up my face rodnar?
Seems not to do with
my custom theme.
I can now see the thumbnails
if I attach them instead of
inserting them with the image
icon. But then I can only
have one image per entry.
How do I get an album? 
Descriptions come below now.
In reply to Anders Berggren

Re: Svar: Re: Svar: Re: Svar: Re: procedure description 1

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Yes. Sorry. Each image should be an attachment to the entry.

An album displays all of the entries in the thumbnail form. Try it. Add a couple of more entries.

mike
In reply to Mike Churchward

Re: Svar: Re: Svar: Re: Svar: Re: procedure description 1

by Roland Gesthuizen -
Are there any plans to include this Album code in a future moodle release version? Just curious.
In reply to Roland Gesthuizen

Re: Svar: Re: Svar: Re: Svar: Re: procedure description 1

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
If it's working and people loves it, I think it would be a great idea to add the gallery format, Mike?

Ciao smile
In reply to Eloy Lafuente (stronk7)

Re: Svar: Re: Svar: Re: Svar: Re: procedure description 1

by Tim Allen -
Hear, hear!  smile
In reply to Eloy Lafuente (stronk7)

Re: 1.5 Photo Gallery Format

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Yes, great idea Eloy! approve

Mike, I'll send our 1.5 version of the photo gallery format for you to check. smile
In reply to Helen Foster

Re: 1.5 Photo Gallery Format

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
s'ok by me. Helen, if you've done the upgrade, I'd love to have it. Thanks.

mike
In reply to Mike Churchward

Re: Photo Gallery Format - Thumbnails Screen Grab

by Mark Davies -

Hi Mike,

The addon is fantastic and I have been using it in 1.4. I've upgraded to 1.5.4 and unfortunately it no longers allows me to add photo's. It says I can insert the record in the DB.

Maybe when I upgraded to 1.5.4 I reinstalled and incorrect version. Could you please tell me where I can find the latest.

Regards,

Mark

In reply to Mike Churchward

Re: Photo Gallery Format - Version 3

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Attached is version 3 of the gallery format for glossaries.

This one allows you to use 'Include Group Breaks' with the gallery. The previous version broke on the thumbnail page when this was used.

mike

P.S. - I forgot to credit Global NetCorps for aiding the development of this format.
In reply to Mike Churchward

Svar: Re: procedure description 2

by Anders Berggren -
Then all I get is screen below i.e. no thumbnails,
no error messages.
Isn't GD library necessary for image upload in general,
like in profile? Then I do have GD library.
Attachment tiger_2.gif
In reply to Anders Berggren

Re: Svar: Re: procedure description 2

by Genner Cerna -
Can we use imagemagik instead of GD?
In reply to Genner Cerna

Re: Svar: Re: procedure description 2

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
I only use the image library to create the thumbnails. If I can't create a thumbnail, I just display the original image at 100x100. It won't look as nice.

mike
In reply to Anders Berggren

Re: Svar: Re: procedure description 2

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
No. You can upload an image without the library. It just won't create a nice looking thumbnail.

mike
In reply to Mike Churchward

Re: Svar: Re: procedure description 2

by Genner Cerna -
I dowloaded the said file and install like it said, but i notice [display...] and conf... appeared in configuring the module.

In reply to Genner Cerna

Re: Svar: Re: procedure description 2

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
I haven't added a language file yet - on my To Do list - so you will see those odd strings in the configuration screen.

mike
In reply to Anders Berggren

Re: Svar: Re: procedure description 2

by Kent Bergstrom -
I've tried to load the stuff directly from the updated CVS, zips, etc about what seems like 10 different ways but I still only get the screen with no thumbnail like Mr Berggren gets. I definitely do have GD library installed.
Is there something someone can help me with what I'm missing here?
Kent

(I'm not attempting this on the first page, it's deeper in the site.)
In reply to Mike Churchward

Re: Photo Gallery Format - Version 3

by Darren Smith -
A student uploaded a photo of yoda to my test gallery and I can't work out how to approve or delete it. The approve tab works as you would expect it to but once in there I can't see anything else I can do!

Am I just being dim? I haven't used the glossary much before now. I haven't installed version 3 yet blush - would this fix it?

Thanks

Darren
In reply to Darren Smith

Re: Photo Gallery Format - Version 3

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
All of that is standard glossary stuff...

I haven't played with the approval yet. I'll have to take a look.

To delete it, click on the thumbnail to get to the entry. Below the image, you will see an 'X' for deleting the entry. That should do it.

mike
In reply to Mike Churchward

Re: Photo Gallery Format - Version 3

by Darren Smith -
Thanks for the response. I felt a bit silly reading that as I never noticed it was there but it's not ..... kinda of!

Looking at the ones I added - when I click the thumbnail it shows the comments, keywords, the X link and so on.

When I click on the thumb of yoda I am taken to the Browse by alphabet tab without any of the alphabet selected mixed. Yoda thumb points to:

moodle/mod/glossary/view.php?id=2230&mode=entry&hook=157

.. and the thumbs I added point to similar (just the hook number is slightly different).

HTH

Darren




In reply to Darren Smith

Re: Photo Gallery Format - Version 3

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Hi Darren -

Found the problem. The latest version in CVS fixes the approval operation. It is located in '/contrib/glossary/formats/gallery'.

mike
In reply to Mike Churchward

Re: Photo Gallery Format - Version 3

by George Harrison -
Hi, Mike.

Is there a way to upload photo gallery files that have already been unzipped?

I tried to upload the zip file to my server, but I'm not allowed to unzip files there (don't have that privilege). So, I unzipped it on my home computer and FTP transfered the files to the correct directory, but noticed no new options in the glossary activity.

The CVS upload looks like a good idea, but I'm a newbie at this and have limited knowledge of unix, so cannot understand how I can get my unix terminal to communicate with my moodle site from my home computer (unless normal webhosting service often has its own terminal).

George
In reply to George Harrison

Re: Photo Gallery Format - Version 3

by W Page -

Hi Mike C!

Is the most recent version of the "Gallery" you posted present in CVS with all the updated files included?

Thanks in advance for your response.

WP1

In reply to George Harrison

Re: Photo Gallery Format - Version 3

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Hi George -

When you create an entry and are adding the photo, instead of uploading a file, browse to the one you want. This means that you will need to have unzipped your archive of photos in a directory accessible to the gallery/glossary you are using.

mike
Average of ratings: Useful (1)
In reply to Mike Churchward

Re: Photo Gallery Format - Version 4 in CVS

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
I have placed version 4 of the photo gallery format into CVS, at '/contrib/glossary/formats/gallery'.

This version has two updates:
  1. Fixes a problem that prevented PHP versions older than 4.3 from creating thumbnails.
  2. Adds approval functions to the "waiting approval" thumbnails.
mike
In reply to Mike Churchward

Re: Photo Gallery Format - Version 4 in CVS

by Al Ortiz -

Hi Mike,

Is it possible to use the images from the User profiles rather than having to load new ones? (Maybe a nice to have for version 5!).

Thanks,

Al

In reply to Al Ortiz

Re: Photo Gallery Format - Version 4 in CVS

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Hi Al -

I'm not quite sure what you mean... The gallery format is designed to provide a mechanism to display uploaded images with thumbnails.

It sounds like you are looking for a way to display all of the user pictures. You can already do this using the participants link in the people block, or by using the userpix index function (go to [your site]/userpix/index.php).

mike
In reply to Mike Churchward

Re: Photo Gallery Format - Version 4 in CVS

by Al Ortiz -

Hi Mike,

Thank you very much for the info.  I'm still learning my way around Moodle.  The Gallery works great, our professors are already taking advantage of this feature. 

Al

In reply to Mike Churchward

Re: Photo Gallery Format - Version 4 in CVS

by William Lu -
Picture of Particularly helpful Moodlers
Version4 doesn't work for me.
Version3 does, only approval button disapperd.

I Do want the approval function, but version4 shows a lot of links about CVS, and all links are go to nowhere.
In reply to Mike Churchward

Re: Photo Gallery Format Thanks Mike and a report on how I went with the Gallery

by Joyce Smith -

Thanks heaps big grin!! to Mike Churchwood  for supplying the mod http://moodle.org/mod/forum/search.php?search=gallery&id=5

and ShaneElliot  big grin at Pukunui for adding it to my site , I am really delighted withthe outcome of a photo gallery in the Glossary module !!


I thought perhaps it would be helpful for some ,if I documented how I managed to get it working , after making a couple of silly mistakes.

Attached pdf with some screen shots

Joyce big grin

Average of ratings: Useful (1)
In reply to Joyce Smith

Re: Photo Gallery Format Thanks Mike and a report on how I went with the Gallery

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Thanks for you observations, Joyce. I have uploaded a new version of the entry editor to CVS that moves the upload image input to the top of the edit screen. This should help stop the confusion that you noticed.

mike
In reply to Mike Churchward

Photo Gallery

by Clarence Prudhoe -

Mike, I see that you have developed a photo gallery for Moodle.  However, I can't find the latest script in CVS that you said you uploaded on April 25.  I am new to Moodle so any help with the photo gallery you could give me would be appreciated.

Clarence

In reply to Mike Churchward

Re: Photo Gallery Format

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Mike,

Thanks for your photo gallery format - it's great! big grin

However we found that the call to userdate in gallery_format.php

echo userdate($entry->timemodified, '%b. %e, %Y');

returns an incorrectly formatted date e.g. Jul. , 2005 instead of Jul. 8, 2005.

It seems this is due to a bug in the Windows time libraries, as noted in the comments for the userdate function (in moodlelib.php).

echo userdate($entry->timemodified, '%b. %d, %Y');

(replacing e with d) works correctly. smile
In reply to Helen Foster

Re: Photo Gallery Format

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Hey! Weren't you "Wild Girl"?

Thanks for the problem fix. If you didn't already, I'll fix it in CVS.

mike
In reply to Mike Churchward

Re: Photo Gallery Format

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Yes! You recognised my photo? wink I'm aka wild girl!

Thanks again for your photo gallery format! big grin
In reply to Helen Foster

Re: Photo Gallery Format

by John Ryan -
This looks very good Mike.

One problem I had when I first used it was that I inserted my photo as an image in the editor and didn't upload a file (Silly me!!).

This meant that the thumbnail was blank so I couldn't click on it to get to the page where I could delete or edit the entry.

Great work Thanks!
In reply to John Ryan

Re: Photo Gallery Format

by Ralf Hilgenstock -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Translators
Hi Mike,

with the import2.php file it is possible to import a txt-file in a glossary. Is there an option to add the link for a picture in the import process.

Ralf
In reply to Mike Churchward

Re: Photo Gallery Format

by Sarah Woods -
Is there any plan to allow multiple images to be uploaded? This module is really useful but most of my teachers have many, many photos!
In reply to Sarah Woods

Re: Photo Gallery Format

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
You mean at one time right?

Because its a glossary format, it uses the glossary engine. I don't believe that the glossary engine allows more that one upload at a time.

mike
In reply to Sarah Woods

Re: Photo Gallery Format

by Ralf Hilgenstock -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Translators

Hi Sarah,

you can upload lots of zipped pictures directly in the course folder in the course administration and unzip them.  Then you can link in the glossary to this pictures.

Ralf

In reply to Ralf Hilgenstock

Re: Photo Gallery Format

by Sarah Woods -

Yes, but I'd still have to add them to the gallery one by one?

I'm thinking the glossary module just isn't going to suit my Gallery needs. Back to working on integrating Gallery with Moodle!

In reply to Sarah Woods

Re: Photo Gallery Format

by warmac - -
use this one http://jalbum.net/ its free and it works perfectly in moodle smile
In reply to warmac -

Re: Photo Gallery Format

by Clarence Prudhoe -

Could you please tell me if JAlbum will ftp files from my C: drive to the server or do I have to ftp them then access them with JAlbum on the server.  I have read their site and they don't say much about the process of loading pictures into JAlbum.

Thanks,

Clarence

In reply to warmac -

Jalbum and Moodle

by Andrew T -
Jalbum .. it works perfectly in moodle

Could you please elaborate ? I just have started using Moodle and today discovered Jalbum ( and looks very nice ) so was wondering how I could integrate them .. basically, where would my Moodle users be uploading their albums and where would they appear in Moodle.

Generally I understand how Jalbum is to work with a normal website, or even personal web pages hosted on my webserver - it is when it comes to Moodle I am not sure where it would fit. I would like students to be able to maintain individual galleries and maybe teachers to maintain galleries per course .. or something like that.
In reply to Andrew T

Re: Jalbum and Moodle

by Simon Bryan -
My process is to:
1.create the album using Jalbun
2.Zip the album created
3.Upload the zip to relevant course file section
4.Unzip the album
5.Add a Resource to appropriate Topic - Link to file or Website, select the index.html file in the upladed jalbum folder.

Done.
In reply to Simon Bryan

Re: Jalbum and Moodle

by Katja Leesemann -
Thanks. This is really an easy way to show your pictures. Thanks for the easy instructions.

Katja
In reply to Simon Bryan

Re: Jalbum and Moodle

by L Uvin -
Hi

I followed your instructions but I seem to have trouble with broken links. The page contains no thumbs although the links appear when moving the mouse and when I click I get a 'this page cannot be found' error.

Any ideas?

Lieven
In reply to Simon Bryan

Re: Jalbum and Moodle

by Heinz Krettek -
Hello Simon,

thanks for your instaltionsguide for jAlbum..

i think i did everything right, when looking at the index.html file it seems ok, if i call it outside moodle my browser opens and i can see the thumbs. i uploaded the album and ad the resource .... if i call it now i see only the link for jAlbum as footer. Any ideas?

here ist the genereated index.html file

<table>

<tr>

<td width="120" valign="bottom">
<a href="slides/DSCN0915.html">

<img class="image" src="thumbs/DSCN0915.JPG" width="120" height="90" border=0 alt="DSCN0915"><br>

</a>
</td>

<td width="120" valign="bottom">
<a href="slides/DSCN0916.html">

<img class="image" src="thumbs/DSCN0916.JPG" width="120" height="90" border=0 alt="DSCN0916"><br>

</a>
</td>

<td width="120" valign="bottom">
<a href="slides/DSCN0918.html">

<img class="image" src="thumbs/DSCN0918.JPG" width="120" height="90" border=0 alt="DSCN0918"><br>

</a>
</td>

<td width="120" valign="bottom">
<a href="slides/DSCN0907.html">

<img class="image" src="thumbs/DSCN0907.JPG" width="120" height="90" border=0 alt="DSCN0907"><br>

</a>
</td>

<td width="120" valign="bottom">
<a href="slides/DSCN0908.html">

<img class="image" src="thumbs/DSCN0908.JPG" width="120" height="90" border=0 alt="DSCN0908"><br>

</a>
</td>

</tr>

<tr>

<td width="120" valign="bottom">
<a href="slides/DSCN0910.html">

<img class="image" src="thumbs/DSCN0910.JPG" width="120" height="90" border=0 alt="DSCN0910"><br>

</a>
</td>

<td width="120" valign="bottom">
<a href="slides/DSCN0911.html">

<img class="image" src="thumbs/DSCN0911.JPG" width="120" height="90" border=0 alt="DSCN0911"><br>

</a>
</td>

<td width="120" valign="bottom">
<a href="slides/DSCN0912.html">

<img class="image" src="thumbs/DSCN0912.JPG" width="120" height="90" border=0 alt="DSCN0912"><br>

</a>
</td>

<td width="120" valign="bottom">
<a href="slides/DSCN0913.html">

<img class="image" src="thumbs/DSCN0913.JPG" width="120" height="90" border=0 alt="DSCN0913"><br>

</a>
</td>

<td width="120" valign="bottom">
<a href="slides/DSCN0914.html">

<img class="image" src="thumbs/DSCN0914.JPG" width="120" height="90" border=0 alt="DSCN0914"><br>

</a>
</td>

</tr>

</table>

<!-- Include footer.inc from image directory if present -->


<p>
<a href="http://jalbum.net" target="_blank"><small>JAlbum 7.0</small></a>
</p>
</center>

kindest regards

Heinz

(black forest, germany)
In reply to Andrew T

Re: Jalbum and Moodle

by Just H -
Hi Andrew

May be worth taken a look at the Gallery module - integrates Gallery2 (not the latest version unfortunately).

Regards
H
In reply to Sarah Woods

Re: Photo Gallery Format (TOO LATE)

by Ger Tielemans -
Because I do not have anyway to keep overview of all these discussions, I see it only now for the firts time (sept 2005).

I think that you need an import for bulk-upload of photos that accepts XML? files of the form (or something like this smile:

<photoset>
    <photo>
            <picture>YOUR .jpg</picture>
            <title>TITEL</title>
            <alias>alias 1</alias>
            <alias>alias 2</alias>
                      .
                      .
            <category>groep</category>
            <autolink>yes</autolink>
            <casesensitive>yes</casesensitive>
            <partsof wordsalso>yes</partsofwordsalso>
            <altlabel>description 508</altlabel>
            <description>blabla</description>
    </photo>
    <photo>
            <picture>YOUR .jpg</picture>
            <title>TITEL</title>
            <alias>alias 1</alias>
            <alias>alias 2</alias>
                      .
                      .
            <category>groep</category>
            <autolink>yes</autolink>
            <casesensitive>yes</casesensitive>
            <partsofwordsalso>yes</partsofwordsalso>
            <altlabel>description 508</altlabel>
            <description>blabla</description>
    </photo>
</photoset>
In reply to Mike Churchward

Re: Photo Gallery Format

by Clarence Prudhoe -

Mike,

Where can I download the latest version of your Photo Gallery?  I can't use CVS so I need to download a .zip version.  The latest gallery.zip I can find was posted last April. 

Also, I am trying to install the Blocks_Picture_Random in Moodle latest version 1.5.2 and I get the following warning message:

Warning: file(/home/telleven/public_html/blocks/block_picture_random/block_block_picture_random.php): failed to open stream: No such file or directory in /home/telleven/public_html/lib/blocklib.php on line 21

I wonder if Blocks_Picture_Random requires your Gallery Module?

Thanks,

Clarence

In reply to Clarence Prudhoe

Re: Photo Gallery Format

by Jan Dierckx -

To answer your last question:

No, the random picture block doesn't need Mike's Photo Gallery Format.

I already posted a solution to your problem with the block here.

If no one objects, I plan on changing the random glossary block (included in Moodle 1.5.x) to enable it to publish random pictures from Mike's Photo Gallery Format. See bug 3921.

In reply to Jan Dierckx

Re: Photo Gallery Format

by Ger Tielemans -
Jan,
is there already a version of "random glossary" where I can see the pictures from a picture glossary and not only the description? (yes, I know a workaround, but..)
In reply to Ger Tielemans

Re: Photo Gallery Format

by Jan Dierckx -

No Ger, you still have to use the workaround.

The only way I know of fixing it for the picture glossary format, will break the display of other glossary formats.

In reply to Clarence Prudhoe

Re: Photo Gallery Format

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Hi Clarence -

Helen's updated it to 1.5, so when she sends it to me I'll post it for you.

You can also get it from the CVS archive at http://cvs.sourceforge.net/viewcvs.py/moodle/contrib/glossary/formats/.

You'll need to download each file, but there's only three. You just create a new format directory in '/mod/glossary/formats/' called 'gallery', and then copy those three files there.

mike
In reply to Mike Churchward

Re: Photo Gallery Format

by William Lu -
Picture of Particularly helpful Moodlers
Hi Mike,
I like you Gallery format, but, this new 1.5 version only display CVS info, not my gallery.
Would you please upload this new version to this forum as .zip, like you did before?
Thanks.
In reply to William Lu

Re: Photo Gallery Format

by William Lu -
Picture of Particularly helpful Moodlers
Hi Mike, I am sorry about my last request.
It is so easy to download your great contribution. I was stupid.
I attached .zip for other lazy users.
In reply to William Lu

Re: Photo Gallery Format - language files

by Ian Usher -

Hi William, Mike et al,

This is a very worthwhile addition to the Glossary and does exactly what one of my schools has been looking for...

thank you! cool

however when I install (successfully in that it works) I get the Glossary Type listed as displayformatgallery in the drop-down list and on going to Admin > Config > Modules > Glossary Settings > displayformatgallery > Settings I get variables like:

listed as my settings options... is this a problem on my part or a lack of a language pack? If it's the latter, how do I sort it? mixed

Any help appreciated...

Ian.

In reply to Ian Usher

Re: Photo Gallery Format - language files

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hmm, it seems that your language pack is missing some strings. thoughtful Please replace glossary.php in lang/en with the attached file.
In reply to Helen Foster

Re: Photo Gallery Format - language files

by Heather P -
Hi Helen
My language pack was missing too and I have now added the one you attached - Thanks. I can now see Photo Gallery instead of something in square brackets and the thumb nails page looks fine.
However if you click on a thumb nail the next screen has all the stuff in square brackets, for example description or categories and the best one is ([clicktoretrievefullsizeversion]).
Now I've checked in the glossary.php as attached to your message and these items were not in there so I have added them and they still do not appear on screen. Do you think I have put them in the wrong language pack and if so any ideas where I should have put them instead?
Thanks
In reply to Heather P

Re: Photo Gallery Format - language files

by Heather P -
I finally engaged brain this morning and it is now working. I somehow failed to notice that I needed to copy the gallery.php file into the Lang/en directory as well as updating the glossary.php in the Lang/en directory in order to get the display output not to have square brackets everywhere.
Things always work better in the morning don't they!
Happy Moodling smile
In reply to Heather P

Re: Photo Gallery Format - language files

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Heather,

I'm pleased to hear you've resolved the problem as I didn't know what else to suggest! wink You're right about taking a break helping with problem solving. smile
In reply to Mike Churchward

Re: Photo Gallery Format

by Clarence Prudhoe -

Thanks Mike,

I figured that out.  I thought I had to use Shell to access CVS but when I went there and clicked download, I got the code which I copied and pasted into the appropriate files.  It worked very well.

The Gallery is a great addition to my project.

Thanks again,

Clarence

In reply to Mike Churchward

Re: Photo Gallery Format

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Thanks to Helen's work, the version 1.5 gallery format is now in CVS. You can find it in the 'contrib/gallery/formats/gallery-v1.5' directory.

mike
In reply to Mike Churchward

Re: Photo Gallery Format

by N Hansen -
You mean:

contrib/glossary/formats/gallery/gallery-v1.5
In reply to N Hansen

Re: Photo Gallery Format

by Kent Bergstrom -
I want to thank everyone for this thread and especially to Joyce for the .pdf file that she provided.
After changing codes and successfully lousing up some stuff, backtracking after emailing Mike Churchward privately and remailing him that I fixed another problem I created, and discovering the initial problem with the minor install thumbs weren't working because I was installing the pictures into the wrong section, (I was putting the pic into the definitions and loading via "insert image", I found the wonderful solution in Joyces pdf.
Now everything seems to be working fine and am looking forward to loading up stuff for the students to look at from each of the intensives when we meet.
Thanks everyone for providing all this great info, and it reminds me to read everything in depth before freaking out...
Kent
In reply to Mike Churchward

Re: Photo Gallery Format

by Yew Hong Ng -
hi, i like this module, but i wonder whether there is a way to customise the terms used when users are submitting a photo? For example, instead of "Concept", I'd like it to say "Photo Name", instead of "Definition", I'd like "Description".
In reply to Yew Hong Ng

Re: Photo Gallery Format

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi,

You may change the terms in your language pack however, since the photo gallery is a glossary format, any changes will be reflected in other glossary formats.
In reply to Helen Foster

Re: Photo Gallery Format

by Yew Hong Ng -
i managed to do this by adding a conditional statement "if ($glossary->displayformat=='gallery')".
In reply to Yew Hong Ng

Re: Photo Gallery Format

by Chad Evans -
I think the add on is great! Can any one tell me how to change the bg image colour behind each photos and thumbnail, mine is a nasty lime green, even when I select a different site theme.
In reply to Mike Churchward

Re: Photo Gallery Format

by A. H. -
Hi Mike,
I am unable to change the background color. The default is green. Where can i change it from?
One other question, where can i edit the name which appears in the dropdownmenu?
Great tool!
Thank you lots for the help.
In reply to A. H.

Re: Photo Gallery Format

by Ali Hastie -

Hi

I am also unable to change the green background colour.  Did you find out where to change it from.

Many thanks,

Ali.

In reply to Mike Churchward

Re: Photo Gallery Format

by Philip Norton -
Good Day,

Will this format work with version 1.6 of Moodle? Is there a reason this has not been included as one of the standard Moodle formats?

Many thanks!
In reply to Philip Norton

Re: Photo Gallery Format

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Philip,

The reason why the photo gallery glossary format is not included as standard is because of the database module. I recommend that you try it instead!
In reply to Helen Foster

Re: Photo Gallery Format

by Ali Hastie -

Hi Helen

Im wandering if you know how to change the background colour displayed within attached image.

Many thanks,

Ali.

Attachment gback.jpg
In reply to Mike Churchward

Re: Photo Gallery Format

by khadija altahira -
HI Mike, this is interesting...I am wondering though, what sorts of upgrades or improvements have you made to this module since 2005 and is it possible to upload video clips?

Also, how do you control for the size of image and make sure that students do not saturate the server with photo storage?

Khadija