Would be nice if we could choose which version to slide: thumbnail, preview, or one of the custom image sizes...

Many thanks.

CommentFileSizeAuthor
#5 slideshowbox_0.patch3.37 KBsun
#4 slideshowbox.patch3.39 KBsun

Comments

phildu’s picture

change "_original" by the kind of image size you want ex:thumbnail on line 368:

$file = $path.'system/files/'.($image->slideshow ? $image->slideshow : $image->_original);

Anonymous’s picture

Are you the maintainer of this module? I know how to change the code, I meant an option to choose image size for each slideshow separately. It's a FEATURE REQUEST.

Patrick Nelson’s picture

phildu,

Even though EVERYBODY MAKES MISTAKES, I found it really useful that you published that snippet of code - very helpful indeed, so thank you for that.

Apologies for the capitals - I realise that it is the equivalent of shouting and is actually quite rude.

Regards

Patrick

sun’s picture

Status: Active » Needs review
StatusFileSize
new3.39 KB

I second this. Attached patch introduces a new configuration setting to choose the slideshow image size.

I left the box width and height settings so that the size of the slideshow box is independent from the chosen image size which is a valuable feature for themers.

Additionally, this patch fixes:

  • Proper usage of db_query_range() instead of PostGreSQL-non-compliant 'LIMIT' statement.
  • Proper usage of url().
  • Proper cleaning of image title and description using check_plain().
  • Overall coding style in slideshowbox_getTermImages()
sun’s picture

StatusFileSize
new3.37 KB

New patch using file_create_url() to support private files.

Additionally fixes private files issue in http://drupal.org/node/102298

sun’s picture

Status: Needs review » Closed (won't fix)