Allow to choose image size

Edith Illyes - December 10, 2006 - 00:20
Project:Slideshow-Box
Version:4.7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

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

Many thanks.

#1

phildu - December 10, 2006 - 13:47

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);

#2

Edith Illyes - December 10, 2006 - 21:53

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.

#3

UnderDesign - January 9, 2007 - 17:24

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

#4

sun - October 3, 2007 - 13:50
Status:active» needs review

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()
AttachmentSize
slideshowbox.patch 3.39 KB

#5

sun - October 3, 2007 - 13:57

New patch using file_create_url() to support private files.

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

AttachmentSize
slideshowbox_0.patch 3.37 KB

#6

sun - May 3, 2009 - 22:10
Status:needs review» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.