after i istulled ImageFlow module it runing but the reflection Does not appear

CommentFileSizeAuthor
reflection-Does-not-appear.jpg198.56 KBmsoltan

Comments

ccleveland’s picture

Issue tags: -imageflow, -reflection, -photo

same as above..

whats really disappointing is that the 'sample' photo for this module shows photos aligned on a flat 'horizon'
(vertical align bottom) with reflections..

image:
http://drupal.org/files/images/imageflow.thumbnail.png

which looks really nice !
after following the install instructions what you actually get is no option to toggle reflections (therefore no possibility of reflections) and no options for object alignment (forced center align) which just looks ugly by comparison to the photo of how it should look (and how it does look outside of Drupal)

i do also have the jQuery EyeCandy reflections plugin installed correctly but ImageFlow is not using this (presumably has an internal version it uses - or not in this case)

sorry to be so negative, i don't mean to be ungrateful, and props should go to the module developer for implementing something like ImageFlow, just don't use the ImageFlow photo because people who download it will expect it to look like that =)

maybe i am wrong and i just don't know how to configure this module correctly, then i should ask..

is it possible to produce output in Drupal which looks exactly identical to the sample image on the Views Slideshow: ImageFlow project page ?

regards

[edit]
quote from imageflow.js credits:
The reflections are generated server-sided by a slightly hacked version
of Richard Daveys easyreflections [2] written in PHP.
[/edit]

ccleveland’s picture

Issue tags: +imageflow, +reflection, +photo
Militopedia’s picture

Issue tags: +imageflow, +reflection, +photo

Hello,

I have the same problem. I guess that basically it would be possible to add reflection (looking at the plugin files) but I think there is no interface in the administer pages to turn on this feature.

Does anybody know how to manually activate this feature?

Same question for features like alignment and transparency.

This is a great module but would even be greater if all features are available.

Cheers,
Roger

SchwebDesign’s picture

subscribing

eme’s picture

Priority: Critical » Normal

You can use imagecache and imagecache effect to get the reflection.

eme’s picture

Status: Needs work » Closed (duplicate)

Duplicate, see here : http://drupal.org/node/426312

Militopedia’s picture

Hi eme,

Thanks a lot! That solved the problem :-D

Cheers,
Roger

treehacker’s picture

I changed the modul a little bit to at least give the feature to set the alignment. Anyway, I couldn't get working the reflection with the imageflow reflect.php . But I think its an issue with that file.

For the allignment option simply add following code somewhere at about line 67 in views_slideshow_imageflow.views_slideshow.inc:

  $form['imageflow']['reflectionp'] = array(
    '#type' => 'textfield',
    '#title' => t('Image alignment'),
    '#description' => t('Alignment of the images. 0.0 = bottom base alignment.'),
    '#default_value' => $view->options['imageflow']['reflectionp'],
  );  

Then update to the theme.inc of imageflow modul the $settings array with:

'reflectionP' => $options['imageflow']['reflectionp'],

so it looks like:

  $settings = array(
    'aspectRatio' => $options['imageflow']['aspect_ratio'],
    'imagesHeight' => $options['imageflow']['images_height'],
    'reflectionP' => $options['imageflow']['reflectionp'],
    'imageCursor' => $options['imageflow']['image_cursor'],    
    'sliderCursor' => $options['imageflow']['slider_cursor'],
    'startID' => $start,
    'slider' => $options['imageflow']['slider'],
    'captions' => $options['imageflow']['captions'],
    'imageFocusM' => $options['imageflow']['imageFocusM'],
    'scrollbarP' => $options['imageflow']['scrollbarP'],
    'imageFocusMax' => $options['imageflow']['imageFocusMax'],
  );

and finally add to the imageflow js (the one which comes with the modul) following code:

      reflectionP: flow['reflectionP'], 

just below

      reflections: false,

thats it.. now you can change the allignment value directly in the imageflow views settings.

treehacker’s picture

Hey guys...

I got the reflection working with the internal reflect2.php. Reflect3.php ist outputting only the reflection without the source image.. No idea why...

Its a quick and dirty solution:

First you need to change the "views_slideshow_imageflow.js" inside the views image flow module.

Add following lines to the javacript imageflow.init() function:

      reflections: true,
      reflectionGET: '&bgc=ffffff&fade_start=20%',
      reflectPath: '/sites/default/themes/your_theme/',

download the current reflect_v2.php from http://reflection.corephp.co.uk/v2.php
Put it into your themes directory (same path as the javasript above). Rename it to reflect2.php.

Now edit the reflect2.php file. Change following line:

$source_image = str_replace('://','',$source_image);

to

$source_image = str_replace('http://your_domain','',$source_image);
$source_image = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $source_image;

As I said, its quick and dirty. The problem seems to be, that drupal passes the complete url together with "http://domain_name/" to the reflect2.php and the reflect2.php just replaces "://" so the url to the file is not correct.
Would be better to do some stripping to the img_url var in order to use it for any domain.

No you just have to play arround with the ajustments of the aspect ratio and so on inside views:imageflow configuration. I think this is not so well working .. but I there seems not to be another solution than working with aspects instead of specific sizes....

Hope this helps!

treehacker’s picture

BTW, my little hack with the aligment of the picture doesn't work together with the reflection hack. Anyway, if you just take out the line with "reflectionP" out of the modules javascript file, then the images will be aligned perfect if you use the reflection hack.

alvinlb’s picture

Firstly, thanks to the contributor for the great module!

I'm not so worried about the reflection, but the horizontal alignment. After removing the reflectionP line, the images are perfectly aligned, only at the top of the
slide! Anybody have any idea how to correct this?

treehacker’s picture

I had the same problem... but I don't remember how I solved it. I think I wrote 0.5 in the reflectionP. Look at the lightbox page and use these values with no change... Maybe this helps.

brcxdok’s picture

#8 - I followed these instructions (very clear, thanks), and was able to change the alignment settings in Views. I set it to 0.0, but nothing happened - images still aligned centrally.

Any ideas?