Postponed (maintainer needs more info)
Project:
Views Slideshow: Dynamic Display Block
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2011 at 15:21 UTC
Updated:
23 Mar 2011 at 10:06 UTC
Comments
Comment #1
ppblaauw commentedYou 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?
Comment #2
T-MaK commentedYou 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? ==>
Did you enable the PHP filter? ==> yes
Did you set input type to PHP? ==> yes
Comment #3
ppblaauw commentedDid 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:
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:
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.:
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']);
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.
Comment #4
ppblaauw commentedTested 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.
Comment #5
T-MaK commentedI 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...)
Comment #6
ecj commentedI 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...
Comment #7
ppblaauw commented#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?
Comment #8
ecj commentedWell, 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:
I take my words back, now I am happy with my bought code.. Forwards we go!
Hope this also helps other folks here...
Comment #9
ecj commentedEverything 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)
Comment #10
ecj commentedaddition: the problem already occurs when trying to "view" the view-generated page (in the views page: Export|Clone|View "...mentioned-page"