Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Image Gallery Extension: Testers Needed

Discuss all other Modules here.

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

Go to End
Author Topic: 76097 Views
  • Pranil
    Avatar
    Community Member
    17 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Sure, just create your own ImageGalleryPage_album.ss 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"

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

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

  • Pranil
    Avatar
    Community Member
    17 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

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

  • Pranil
    Avatar
    Community Member
    17 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    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: http://www.silverstripe.org/dataobjectmanager-module-forum/show/264716?showPost=264716 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...

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    @Anatol
    Dit you (or anyone) ever get the Static Publisher to work for the ImageGallery pages? (as posted in this thread, 21 March 2009,
    http://www.silverstripe.org/all-other-modules/show/250910?start=160)

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

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

  • WalterW
    Avatar
    Community Member
    18 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    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?

    76097 Views
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.