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.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Image Gallery Extension: Testers Needed


417 Posts   77879 Views


26 August 2009 at 10:54am Community Member, 17 Posts

Hey i was wondering if anyone knew how to make the gallery link through to the non-resampled images? I've done all the resizing/cropping/adjusting locally. Resampled images look a bit grainy, and i don't really want to have to upload massive photos.


26 August 2009 at 11:29am 4085 Posts

Sure, just create your own in your mysite folder and customize it as you like.

Instead of:
                  <a id="ViewLink-$ID" rel="$RelAttr" class="$ClassAttr" title="$Caption" href="$ViewLink"><img src="$ThumbnailURL" alt="$Title"/></a>

You could change the href to "$Image.URL"


26 August 2009 at 11:30am 4085 Posts

But I would start with GD::set_default_quality(100);


26 August 2009 at 11:38am Community Member, 17 Posts

Thanks for your quick reply, I'm new to Silverstripe so still learning some stuff. Had already set the GD quality, cheers!


26 August 2009 at 4:26pm Community Member, 17 Posts

Ok so i've run in to another problem. We've got out own server with a hosting company, and on this the image gallery module works fine.
We're developing another site for a client that's on shared hosting, so the server config is a bit different. I also don't have ssh access for this server so it makes dev a bit trickier. I can install the module fine, but in the backend i get an error of the images not uploading. Initially i was getting these alerts (using the swfuploader in the backend): "An error occurred in the upload. Try again later." in a window.alert, and then "An error occurred in the upload. Try again later."
So i followed this fix: and no longer got the alerts.
BUT, now i'm getting a different problem. The upload completes, but there's no files created in the backend. Looking at the site via ftp shows that no folder named 'image_gallery' is even created in the assets/ folder. So all the images are just blank.
Had a look at the phpinfo on each of the sites (our server and the shared hosting server) and noticed that the upload_tmp_dir was set to /var/www/tmp on the shared hosting, and /chroot/apache/tmp on our server. The max file size and stuff is fine. Would this impact on how the script runs? I'm running out of ideas on this one...


16 September 2009 at 5:31am Forum Moderator, 1091 Posts

Dit you (or anyone) ever get the Static Publisher to work for the ImageGallery pages? (as posted in this thread, 21 March 2009,


16 September 2009 at 6:52pm (Last edited: 20 September 2009 1:26am), Forum Moderator, 1091 Posts

Please ignore this post. found out the site I'm referring to was using an older version of the imagegallery, that still had the Static Publisher issue. Sorry about that...


12 October 2009 at 5:52am (Last edited: 12 October 2009 5:53am), Community Member, 18 Posts

We use this extension and like it very much.
But sometimes (maybe once a month) we got error emails by users, as:
SELECT `ImageGalleryAlbum`.*, `ImageGalleryAlbum`.ID,

if(`ImageGalleryAlbum`.ClassName,`ImageGalleryAlbum`.ClassName,'ImageGalleryAlbum') AS RecordClassName FROM `ImageGalleryAlbum` WHERE (ImageGalleryPageID = 45 AND SortOrder < ) ORDER BY SortOrder DESC LIMIT 1 You have an error in your SQL syntax

you sere that the sortorder is not set in the statement "SortOrder < " !

this emergs from

# DataObject::get_one(ImageGalleryAlbum,ImageGalleryPageID = 45 AND SortOrder < ,,SortOrder DESC)
Line 337 of ImageGalleryPage.php
# ImageGalleryPage_Controller->adjacentAlbum(prev)
Line 347 of ImageGalleryPage.php

someone has an idea?