Photo Gallery Format

Photo Gallery Format

от Mike Churchward -
Количество ответов: 90
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

Re: Photo Gallery Format - Thumbnails Screen Grab

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя Testers
Here's an example of the thumbnail/summary screen.

mike
Приложение gallery-tn.jpg
В ответ на Mike Churchward

Re: Photo Gallery Format - Thumbnails Screen Grab

от 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.
Приложение gallery.jpg
В ответ на Darren Smith

Re: Photo Gallery Format - Thumbnails Screen Grab

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

Re: Photo Gallery Format - Thumbnails Screen Grab

от 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
Приложение working.jpg
В ответ на Mike Churchward

Svar: Re: Photo Gallery Format - Thumbnails Screen Grab

от Anders Berggren -
I seem to have the same problem as
Darren. The new .zip didn't do it.
В ответ на Anders Berggren

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

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

Svar: Re: Svar: Re: procedure description 1

от 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...
Приложение tiger_1.jpg
В ответ на Anders Berggren

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

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя Testers
That's odd. The 'Description' area should be below the picture. Are you using a custom theme of some sort?

mike
В ответ на Mike Churchward

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

от 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.
В ответ на Anders Berggren

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

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

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

от Roland Gesthuizen -
Are there any plans to include this Album code in a future moodle release version? Just curious.
В ответ на Roland Gesthuizen

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

от Eloy Lafuente (stronk7) -
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Moodle HQ Изображение пользователя Peer reviewers Изображение пользователя Plugin developers Изображение пользователя Testers
If it's working and people loves it, I think it would be a great idea to add the gallery format, Mike?

Ciao улыбаюсь
В ответ на Eloy Lafuente (stronk7)

Re: 1.5 Photo Gallery Format

от Helen Foster -
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Moodle HQ Изображение пользователя Particularly helpful Moodlers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя Translators
Yes, great idea Eloy! approve

Mike, I'll send our 1.5 version of the photo gallery format for you to check. smile
В ответ на Mike Churchward

Re: Photo Gallery Format - Thumbnails Screen Grab

от 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

В ответ на Mike Churchward

Re: Photo Gallery Format - Version 3

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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.
В ответ на Mike Churchward

Svar: Re: procedure description 2

от 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.
Приложение tiger_2.gif
В ответ на Anders Berggren

Re: Svar: Re: procedure description 2

от Genner Cerna -
В ответ на Anders Berggren

Re: Svar: Re: procedure description 2

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя Testers
No. You can upload an image without the library. It just won't create a nice looking thumbnail.

mike
В ответ на Mike Churchward

Re: Svar: Re: procedure description 2

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

В ответ на Anders Berggren

Re: Svar: Re: procedure description 2

от 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.)
В ответ на Mike Churchward

Re: Photo Gallery Format - Version 3

от 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
В ответ на Darren Smith

Re: Photo Gallery Format - Version 3

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

Re: Photo Gallery Format - Version 3

от 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




В ответ на Mike Churchward

Re: Photo Gallery Format - Version 3

от 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
В ответ на George Harrison

Re: Photo Gallery Format - Version 3

от 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

В ответ на George Harrison

Re: Photo Gallery Format - Version 3

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

Re: Photo Gallery Format - Version 4 in CVS

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

Re: Photo Gallery Format - Version 4 in CVS

от 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

В ответ на Al Ortiz

Re: Photo Gallery Format - Version 4 in CVS

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

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

от 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

В ответ на Joyce Smith

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

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

Photo Gallery

от 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

В ответ на Mike Churchward

Re: Photo Gallery Format

от Helen Foster -
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Moodle HQ Изображение пользователя Particularly helpful Moodlers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя 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
В ответ на Helen Foster

Re: Photo Gallery Format

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя Testers
Hey! Weren't you "Wild Girl"?

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

mike
В ответ на Mike Churchward

Re: Photo Gallery Format

от Helen Foster -
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Moodle HQ Изображение пользователя Particularly helpful Moodlers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя Translators
Yes! You recognised my photo? wink I'm aka wild girl!

Thanks again for your photo gallery format! big grin
В ответ на Helen Foster

Re: Photo Gallery Format

от 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!
В ответ на Mike Churchward

Re: Photo Gallery Format

от 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!
В ответ на Sarah Woods

Re: Photo Gallery Format

от Ralf Hilgenstock -
Изображение пользователя Core developers Изображение пользователя Particularly helpful Moodlers Изображение пользователя 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

В ответ на Ralf Hilgenstock

Re: Photo Gallery Format

от 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!

В ответ на Sarah Woods

Re: Photo Gallery Format

от warmac - -
use this one http://jalbum.net/ its free and it works perfectly in moodle улыбаюсь
В ответ на warmac -

Re: Photo Gallery Format

от 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

В ответ на warmac -

Jalbum and Moodle

от 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.
В ответ на Andrew T

Re: Jalbum and Moodle

от 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.
В ответ на Simon Bryan

Re: Jalbum and Moodle

от 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)
В ответ на Sarah Woods

Re: Photo Gallery Format (TOO LATE)

от 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 улыбаюсь:

<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>
В ответ на Mike Churchward

Re: Photo Gallery Format

от 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

В ответ на Clarence Prudhoe

Re: Photo Gallery Format

от 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.

В ответ на Jan Dierckx

Re: Photo Gallery Format

от 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..)
В ответ на Clarence Prudhoe

Re: Photo Gallery Format

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

Re: Photo Gallery Format

от William Lu -
Изображение пользователя 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.
В ответ на William Lu

Re: Photo Gallery Format

от William Lu -
Изображение пользователя 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.
В ответ на William Lu

Re: Photo Gallery Format - language files

от 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.

В ответ на Ian Usher

Re: Photo Gallery Format - language files

от Helen Foster -
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Moodle HQ Изображение пользователя Particularly helpful Moodlers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя Translators
Hmm, it seems that your language pack is missing some strings. thoughtful Please replace glossary.php in lang/en with the attached file.
В ответ на Helen Foster

Re: Photo Gallery Format - language files

от 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
В ответ на Heather P

Re: Photo Gallery Format - language files

от 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
В ответ на Mike Churchward

Re: Photo Gallery Format

от 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

В ответ на Mike Churchward

Re: Photo Gallery Format

от Mike Churchward -
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя 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
В ответ на Mike Churchward

Re: Photo Gallery Format

от N Hansen -
You mean:

contrib/glossary/formats/gallery/gallery-v1.5
В ответ на N Hansen

Re: Photo Gallery Format

от 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
В ответ на Mike Churchward

Re: Photo Gallery Format

от 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".
В ответ на Yew Hong Ng

Re: Photo Gallery Format

от Helen Foster -
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Moodle HQ Изображение пользователя Particularly helpful Moodlers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя 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.
В ответ на Helen Foster

Re: Photo Gallery Format

от Yew Hong Ng -
i managed to do this by adding a conditional statement "if ($glossary->displayformat=='gallery')".
В ответ на Mike Churchward

Re: Photo Gallery Format

от 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.
В ответ на Mike Churchward

Re: Photo Gallery Format

от 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!
В ответ на Philip Norton

Re: Photo Gallery Format

от Helen Foster -
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Moodle HQ Изображение пользователя Particularly helpful Moodlers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя 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!
В ответ на Mike Churchward

Re: Photo Gallery Format

от 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