Hello,

When I use view reference to display slideshow ddblock in node, images doesn't displayed (white area with both arrow prev/next), but they was loaded (actually display:none is status of images). I tried with block reference too but failed too.

It works only when I display block like other block (in blocks list).

So I tried to display the block via blocks list AND view reference & both display white area instead of images.

What's wrong? (please don't tell me :"YOU" ^^)

Thanks
T-Mak

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

You mean adding the slideshow block in a region it works.
When adding the slideshow block to a node with PHP code it does not.

What do you mean with: when I use view reference?
What do you mean with: I tried with block reference?
What PHP code do you use?
Did you enable the PHP filter?
Did you set input type to PHP?

Can you explain more what steps you did, what code you used, and give other relevant information?

T-MaK’s picture

You mean adding the slideshow block in a region it works. ==> yes
When adding the slideshow block to a node with PHP code it does not. ==> nothing appears

What do you mean with: when I use view reference? ==> I tried http://drupalmodules.com/module/view-reference
What do you mean with: I tried with block reference? ==> I tried http://drupalmodules.com/module/block-reference
What PHP code do you use? ==>

$block = module_invoke('menu', 'block', 'view', 'block_7');
print $block['content'];

Did you enable the PHP filter? ==> yes
Did you set input type to PHP? ==> yes

ppblaauw’s picture

Did not know about the block-reference and view-reference modules
Will try them later and let you know if that will work.

--

In your php code you invoke the menu module

function module_ invoke
module_invoke($module, $hook, arguments);

1 variable - the module to invoke
2 variable - the hook to invoke
3 arguments - for hook_block you heve an operator like ('list','config','save','view'), and a block delta

Where did you get this php code you use, to invoke a views_slideshow_ddblock slideshow?

using module_invoke
A views_slideshow_ddblock views block display can be embedded with:

$block = module_invoke('views', 'block', 'view', '[VIEW_NAME]-[BLOCK_DISPLAY_NAME]');
print $block['content'];

replace [VIEWS_NAME] including the brackets with the name of the view
replace [BLOCK_DISPLAY_NAME] including the brackets with the block display name of the view

eg:

$block = module_invoke('views', 'block', 'view', 'vsd_slideshow_items-block_1');
print $block['content'];

Note:
When the name of the view is longer than 32 character views will make a hash of the [VIEW_NAME]-[BLOCK_DISPLAY_NAME]
the code will then be eg.:

$block = module_invoke('views', 'block', 'view', 'ccbebc00e818ccf425e64caa4bb0b3ab');
print $block['content'];

Using views_embed_view
another way to embed a views_block display is using the function views_embed_view

use views_embed_view('[VIEW_NAME]','[BLOCK_NAME']);

print views_embed_view('vsd_slideshow_items', 'block_1');

Note:

Embedding the same 'views block display' on the same page or embedding the same 'views block display' already added in a region will not work.
A new 'views block display' would need to be made to have more slideshows on one page.

Hope this helps you further, please let me know.

ppblaauw’s picture

Tested the blockreference module and the viewreference module with the views_slideshow_ddblock module.
They both work with views_slideshow_ddblock "views block displays".

Probably your issues is that you use the same "views block display" more then once on the same page.

Hope this helps you further, please let me know.

T-MaK’s picture

I use one time the block & it doesn't works if I invoke by php or if I use viewreference (or blockreference) Always same problem with both solution : Image loading but not displaying (I see just next/prev arrow...)

ecj’s picture

Status: Postponed (maintainer needs more info) » Active

I have the same issue. Trying to generate a block with VSD 2.x. (views 2.12, viewsslideshow 2.3)

The VSD generated slideshow works fine when used/placed as a block. However, when making a reference from within a node to the block, either with embedded PHP or with insert_block, there is a problem with VSD 2.x:

The pager with item images show, the main image does not show, the pager remains frozen, and no active image (there is no ;) ) is not highlighted.

I recall with VSD 1.1 it ran fine. I will reconstruct with 1.1 to verify.

But I need VSD2.x as I bought a VSD ddblock recently, which only runs under 2.x.. whilst I thought to have someting up&running quickly by buying something...

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

#5, #6

What php code is used to embed the slideshow?
Do you have javascript errors on the page with the slideshow?
Do you have a link to the slideshow on your Internet site?

ecj’s picture

Well, I started to clean the site to make presentable for research, and now it works!
I am not sure what blocked it, I suppose it was one of the input filters...

After some testing the following results:
- the input filter for URLs seams to be the great devil here...
- insert_block and VSD 2.x are not a happy couple
- but the php as follows does work:

$block = module_invoke('views', 'block', 'view','Collection-block_1');
print $block['content'];

I take my words back, now I am happy with my bought code.. Forwards we go!
Hope this also helps other folks here...

ecj’s picture

Everything worked fine until...
Added a new node (expanded the list of nodes to be selected by views).. and the trouble came back.
The slideshow froze after adding the slide - the pager with the items, including the newly added does show proper, but not the active marker, not the main image - alike previous problem...

Switched over to another viewsslideshow - thumbnailhover - no problems.
All input filters turned off (except php evaluator)

ecj’s picture

addition: the problem already occurs when trying to "view" the view-generated page (in the views page: Export|Clone|View "...mentioned-page"