Download & Extend

include imageflow in other nodes like page.tpl.php ? (formated text)

Project:Views Slideshow: ImageFlow
Version:6.x-2.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hello dear Aaron Hello drupaler,
At first thanks Aaron for the good job that you do for us :)

I found this modul and read the open issues about imageflow and advomatic homepage on your website. I found it looks really nice.
So i tried it out.

And immediately I run in problems :

my first question is ,links the picture from image flow only to the original image or to the content?
My imageflow links only to the orginal image !

To fix this I replace the code in your modul( views_slideshow_imageflow.theme.inc) on line 21-to-32 with the following code

preg_match('/href=\"(.*)\"/Uis', $item, $matches_link);
$image_links=$matches_link[1];
$url = $base_url.$image_links;

now the pictures links to the content.
Did I run with tis in problems that I can't see?

The second Question is, I will use the imageflow on sites like:
function mytheme_preprocess_page(&$vars, $hook) {}

at first I created a views named myviews to test it :
function mytheme_preprocess_views_slideshow__myviews(&$vars) {code from imageflow modul}
and it works really nice.
But if I created a views like for example named:
mytheme_preprocess_views_view__myviews(&$vars) {}
it does not work.

And I get the error with foreach, which comes from the variable $raws.
So I found out that on
function mytheme_preprocess_views_slideshow__myviews(&$vars) {}
the raws variable is an array and on
mytheme_preprocess_views_view__myviews(&$vars) {}
the raws variable is an string.

Can you teach me which content of your slideshow module I have to copy to my template file to get it working.

Third question is, it is possible to get the imgeflow working on a site like
mytheme_preprocess_page(&$vars, $hook) {}
and printing there out dynamic content from views.

I now many letters but I hope that you and other drupaler have a look on my issues.

I thank for all comments.

Comments

#1

Title:include imageflow in other nodes like page.tpl.php ?» include imageflow in other nodes like page.tpl.php ? (formated text)

Hello dear Aaron Hello drupaler,
At first thanks Aaron for the good job that you do for us :)

I found this modul and read the open issues about imageflow and advomatic homepage on your website. I found it looks really nice.
So i tried it out.

And immediately I run in problems :

my first question is ,links the picture from image flow only to the original image or to the content?
My imageflow links only to the orginal image !

To fix this I replace the code in your modul( views_slideshow_imageflow.theme.inc) on line 21-to-32 with the following code

<?php
     preg_match
('/href=\"(.*)\"/Uis', $item, $matches_link);
    
$image_links=$matches_link[1];
    
$url = $base_url.$image_links;
?>

now the pictures links to the content.
Did I run with tis in problems that I can't see?

The second Question is, I will use the imageflow on sites like:
function mytheme_preprocess_page(&$vars, $hook) {}

at first I created a views named myviews to test it :
function mytheme_preprocess_views_slideshow__myviews(&$vars) {code from imageflow modul}
and it works really nice.
But if I created a views like for example named:
mytheme_preprocess_views_view__myviews(&$vars) {}
it does not work.

And I get the error with foreach, which comes from the variable $raws.
So I found out that on
function mytheme_preprocess_views_slideshow__myviews(&$vars) {}
the raws variable is an array and on
mytheme_preprocess_views_view__myviews(&$vars) {}
the raws variable is an string.

Can you teach me which content of your slideshow module I have to copy to my template file to get it working.

Third question is, it is possible to get the imgeflow working on a site like
mytheme_preprocess_page(&$vars, $hook) {}
and printing there out dynamic content from views.

I now many letters but I hope that you and other drupaler have a look on my issues.

I thank for all comments.

#2

#3

Version:6.x-1.0-beta1» 6.x-2.x-dev
Category:feature request» support request
Assigned to:karl2011» Anonymous

Sorry; I wasn't subscribed to the issue queue, so hadn't seen this post. I'm writing up a series of tutorials at http://advomatic.com/ this month, which will hopefully answer some of your questions.

Thanks!

nobody click here