Download & Extend

Flash Gallery with Image Modul - Flash Gallery only uses the .preview Files - How to change this to original??

Project:Flash gallery
Version:5.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:fierceworxx
Status:active

Issue Summary

Hi,

i have drupal 5.5 with Image Module and Flash Gallery (Simpleviewer) installed.
The Gallery works fine, but the xml file that is created by Flash Gallery Module only contains the preview.jpg files.

Result: All images that are shown in the gallery are sized as the preview size of the Image Modul configuration.

I´m using the Image Modul for other parts of my site and i need to set the preview size to a smaller value.

How can i switch the Flash Gallery Modul to use the original files?

An answer will oblige.

Sven

Comments

#1

I am also having the same problem, let me know if you find a fix.
cheers

Bec

#2

Hey, I know it's D6 and you're on D5, but it should be very similar.

- Important Notice 1 : Don't HACK module.
- Important Notice 2 : I give you this "tips" but it's NOT AT ALL a solution, use it at your own risk. :D

<?php
    $images
= $node->images;
    if (
flash_gallery_is_jpg(file_create_path($images['_original']))) { // it was '_preview' before
     
$xml .= '<image><filename>';
     
$xml .= basename($images['_original']); // => it was '_preview' before
     
$xml .= '</filename><caption><![CDATA[';
      if (
variable_get('xml_display_title', 1)) {
       
$caption[] = $node->title;
      }
?>

:')