I created an advanced Dynamic display block witch works perfectly when i place it in a block region, but when i place the block in a panel or in a node( $block = module_invoke('ddblock', 'block', 'view','[BLOCK_NUMBER]');print $block['content'];) it stops working after the first slide.What could be the problem?

Comments

ppblaauw’s picture

Status: Active » Needs review

You need to change [BLOCK_NUMBER] to the block number of the dynamic display block. You can find the number by hovering the configuration link of the dynamic display block.

If the block_number is 2, the code would become:

<?php
$block = module_invoke('ddblock', 'block', 'view','2');print $block['content'];
?>

Hope this helps you further, please let me know.

pankrator’s picture

I changed the block number. The slideshow starts but after the first slide it stops. When i put in a normal block it works perfectly. The problem is that i want to put it in a panel, and it doesn't work there either.

ppblaauw’s picture

You need to set input type to PHP if you want to put the block in a node or a panel this way.

In panels you don't need the to add the block via PHP, You can directly choose the block itself.

Hope this helps you further, please let me know.

pankrator’s picture

For a better understanding of my problem here is a link with a page on my website: www.partytude.ro/testa

ppblaauw’s picture

Status: Needs review » Postponed (maintainer needs more info)

When I look at the page I get some JavaScript errors and also: [cycle] unknown transition: zoom.

zoom works at our server, but to pinpoint where the issue is, could you set the transition to: fade

Maybe the issue is caused by the other JavaScript errors in the function

function onload(event) {
  NcodeImageResizer.createOn(this);
}

Error: NcodeImageResizer is not defined

This code is not dynamic display block related.

pankrator’s picture

Thank you. I changed the zoom efect to fade and also set the display block to use imagechase preset, and the slideshow works perfectly. Thanks again.

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Fixed
Issue tags: +panels, +Advanced slideshow

Looks great on your site.

Also good to see that the dynamic display block module, views slideshow and views rotator can all work on one page.

Set status to fixed.
Add tags

jimebob’s picture

I have not been able to put my ddblock in a page. it works fine in the block but i can't get it in my page. it just shows the php code nothing more. the block no. is 1. my site is at www.dropship-wholesale.net.

ppblaauw’s picture

Status: Fixed » Postponed (maintainer needs more info)

You need to set input type to PHP for the page.

Hope this helps you further, please let me know.

jimebob’s picture

I have been selecting the input as php, it still doesn't work. not just on the site I mentioned, I'm also installing it on another site and I get the same result, both are hosted on godaddy. I am simply copying and pasting the short snippet of code that is mentioned, into the page. I have version 6.12 of Drupal, on both sites.

ppblaauw’s picture

@ jimibob

When I look at the site via the link you send, I see a ddblock working on the page.
I don't see anything showing the php code.

I don't know where to look at.
Can you send the page where you put the dynamic display block slideshow with php.

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Fixed

@jimebob
Set status to fixed.
Assume poster solved the issue.
Hope poster shares his solution with other users.

Status: Fixed » Closed (fixed)
Issue tags: -panels, -Advanced slideshow

Automatically closed -- issue fixed for 2 weeks with no activity.