Hello,
Anybody have any ideas to add support for gallery items that aren't originally uploaded as (gif, jpg, png) format. The ecard thing is cool but it doesn't work for pdf. I think I might be able to modify this to get it to work for me.
Quote:
function getItemLinks($items, $wantsDetailedLinks, $permissions) {
$links = array();
foreach ($items as $item) {
//if (isset($wantsDetailedLinks[$itemId])) {
if (GalleryUtilities::isA($item, 'GalleryPhotoItem')) {
if (!isset($permissions[$item->getId()]['ecard.send'])) {
continue;
}
$params['view'] = 'ecard.SendEcard';
$params['itemId'] = $item->getId();
$params['return'] = 1;
$links[$item->getId()][] =
array('text' => $this->translate('Send as eCard'),
'params' => $params);
}
//}
}
I tried commenting out this
Quote:
if (GalleryUtilities::isA($item, 'GalleryPhotoItem'))
but I get this error
Quote:
Fatal error: Call to undefined function: getwidth() in /Library/WebServer/Documents/gallery2/modules/ecard/classes/EcardHelper.class on line 57
I think that if I can get call the resized version then it might work, but I don't know how to do that. Any help would be cool.
Thanks
Gallery version = 2.1-rc-2a core 1.0.34
PHP version = 4.3.2 apache
Webserver = Apache/1.3.29 (Darwin) PHP/4.3.2
Database = mysql 4.1.9-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, Thumbnail, ImageMagick
Acceleration = none, none
Operating system = Darwin jeremy.local 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power Macintosh
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Posts: 8601
http://gallery.menalto.com/node/36557?from=50#comment-178065