Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Gallery module v 0.2.2 has been released


Go to End


17 Posts   65194 Views

Avatar
The Frenchy

Core Development Team, 40 Posts

9 November 2007 at 4:47pm

Edited: 09/11/2007 4:53pm

This version has been made to fix the bugs that the SilverStripe users have noticed.

So I thank all the persons which take the time to inform us about the bugs present in this module.

You will also find in this version a new functionality which is the sorting of the files in the gallery.

To download the version 0.2.2, click here.

For more informations about the sort functionality, check the documentation.

Important Notice : Most of the problems here have been fixed in the SilverStripe 2.2.0 which means that you have to download it to see the changes (its coming out in a few days).

As for the problems which have been fixed :

1. GalleryPage Saving Problem
An error was happening on some computers where users could not save a Gallery. Now it's fixed.

2. Image Border In The Gallery And The Lightwindow
Everybody was having a grey border around the images of the gallery which was breaking the layout. Now it's fixed.

3. Upgrading from version 0.1 Problem
Some users have noticed that the folder location was not saved when you upgraded the version 0.1 of the gallery. Now it's fixed.

4. GalleryPage Delete Problem
There was a Javascript error and also an error due to the Extensions table. Now it's fixed.

5. Default Image Remove Deletes The File From The Assets
When you wanted to remove the default image, the program was actually also deleting the image from the assets. Now it's fixed.

6. GalleryPage Template
Some users were a little bit upset by the fact that you needed to edit or create a ss file to put the code

<% include GalleryPageContent %>
to see your gallery. A default template has been added now. Now it's fixed.

7. GalleryPage Extensions Problem
Another problem that some users have had to face was the extensions table. Actually most of them wanted the Images extensions auto-selected at the creation. Now it's fixed.

I hope you will enjoy this module.

Continu to write on the forums all the errors that you notice on this module.

Avatar
ilivewithian

1 Post

22 January 2008 at 5:46am

I've found a bug in the gallery, it only seems to happen in IE7/Vista, but when viewing a gallery, the first time you view and image the image does not display full size, but rather shows really small. The second time I visit the image, it shows full size. I've attached a partial screen shot showing what I mean.

Also, if i clear out my cache and go back to the image, again the image is small the first time I rty to view it.

Avatar
m_eiman

Community Member, 2 Posts

26 January 2008 at 9:56am

I have the same problem, but it's the same in IE6/XP as well and not just IE7/Vista.

Also, for some reason the images are scaled wrong sometimes - it's the same way on the Gallery demo page, so I'm guessing it's not some config thing I've done wrong?

Avatar
m_eiman

Community Member, 2 Posts

26 January 2008 at 10:51am

Aha! Found a fix for the IE problem: http://forum.stickmanlabs.com/viewtopic.php?pid=1172#p1172

There's also another IE bug that's fixed in the same part of lightwindow.js, see http://forum.stickmanlabs.com/viewtopic.php?id=309

I added both fixes, and it seems to be ok now.

Perhaps something to include in the next version?

Avatar
MIke

Community Member, 7 Posts

9 June 2008 at 5:18am

Hi guys,

I have 2 issue with lightwindows. Fist it does not work properly on IE6 I have add the fixes

lightwindows.js line 1245 :

$('lightwindow_image_'+i).setStyle({
								height: '100%', width: '100%'
							});

Works fine in IE7 but does not work in IE6 still reduice to max (I means that the boxes load but dispear on the left, like out of screen or no size)
(I do not worry about IE 6 display ...strart to be used to surpirses with IE6.... but if someone fixed it.. :-) )


AND MY MAIN ISSUE CONCERN THE PAGING , for me it works only with FF, ((i have setup only 3 pict by lines and pages) ; when i change of page and click on the pictures O have an error on prototypes and the pictures load is alwways the last one (so for me the third) of the first pagation of the galiery ...

For exemple I click on my pictures 4 of 8, prototypes will throw a Js error first, then the lightwindows will show up with the pictures 3 of 8... And it's works fine on FF...

Weird...
I am sure someone has already got the same issue...

And the forum of http://forum.stickmanlabs.com seems to have several issues...

Thanks ,

Avatar
Jarri

Community Member, 10 Posts

15 June 2008 at 11:38pm

Hi - Hope this helps... I have just solved what I think was the same/simaler problem -
IE6 and IE7 seemingly randomly load an image as a tiny thumbnail the first time - but show it correctly on a second attempt. On FFox the problem did not occur. I found the same issue on the Silverstripe demo gallery.
The Lightwindow forums have been discussing this issue and offered various solutions. The most recent of which worked fine for me:
http://discuss.stickmanlabs.com/forums/2/topics/812I have been experiencing a number of problems viewing the lightwindows forums - so in case you can't view this the fix (by someone going by the name Jaryl - thanks Jaryl!) points to some code at
http://pastie.caboo.se/175637 I found and replaced this in the gallery/javascript/lightwindow.js and the problem has now gone away - at least in IE6. Really saved me from alot of trouble!!
If this sounds relevant could someone try this - if it is seen to work then we can suggest that it is included in Gallery 0.2.3
I have not tried current daily of 0.2.3 - but the lightbox.js does not include this code.

Avatar
cmingster

Community Member, 2 Posts

16 June 2008 at 10:55am

Edited: 16/06/2008 11:20am

The paging in the Gallery module doesn't work properly. If i click on an image on the second page it shows me the wrong picture, this only happens in IE6 and IE7. Only the first page of Gallery works properly. This also happens in the demo page of Silverstripe. Anyone got a clue on how to fix this? Thanks

Avatar
Jarri

Community Member, 10 Posts

17 June 2008 at 9:46am

I noticed the same problem - I think something very simaler has been logged as a bug: http://open.silverstripe.com/ticket/2440 .
I have tried to contact the developer Romain to see if there has been any progress with this. I'm guessing not yet as this behaviour still exists on the demo site. I suppose a temporary, (though clearly not ideal) workaround is to create galleries of just one page.

Go to Top