I found a rather strange bug while implementing the advanced display block. I had assigned the advanced display block to my footer's block region to test it, and when it was working, I added the php code in my page-front.tpl.php file to put the block on my front page. Then I removed the block from the footer region.

At that point, the front page block did not display correctly, just the fields for each news item sequentially. To fix this problem, I reassigned the block to the footer region and then did not print $footer in my footer div (since I won't have anything in the $footer region on this site anyways), and it works fine now.

Not a critical issue with my site, but thought it would be good to point this out. The site this happened on is not yet live. If more information is needed, please let me know.

Comments

ppblaauw’s picture

Category: bug » support
Priority: Minor » Normal
Status: Active » Postponed (maintainer needs more info)

What code did you use to add the advanced ddblock slideshow to the footer region in the page-front.tpl.php template file?

It should work by adding the code to include a block in a page-front.tpl.php file.

When you say that you reassigned the block to the footer region but you don't print the $footer variable in the page-front.tpl.php to fix the issue, this should not work at all. It is strange that you have a slideshow in the footer region while the footer region is not printed.

Looks like this is more a support request, what code to use to add a block to a template file for a page.
Set category to support request and priority to normal.

Do you have a link to the Internet site?

lionsharz’s picture

I'm having the same display issue. I have pasted the code from the preprocess download template.php.txt to the template.php of my theme. Then, as per the advanced video tutorial set up I have removed <?php tag. The images and their fileds (title, slide text, image body etc) appear sequentially without any "sliding" effect at all - they are just pasted like static content with no style and no jquery-type movement.

I have tried...
1) Permissions - both Drupal (basically gave permissions for all items and users under ddblock, cck fields (all including news_item), views) and System to 755 (files and folders in my theme and on throughout the site itself).
2) changed the theme to Garland and adding the same code (obviously updating the two [THEME NAME] bits to the Garland.
3) I have put the block on a page on its own but didn't alter anything.

Also I have the basic DDBlock working fine or pretty much fine - the slideshow works and appears in a block without difficulties. Could this be causing some conflict?

Can you think of any other reasons why the slideshow isn't animated at all?

Thanks for any help you can give!

ppblaauw’s picture

#2 Thanks for the detailed information.

It sounds like you use the block created by the views block display instead of the ddblock instance you need to make of this block.

After you have the block from the view, you need to:

Create and configure instance (http://ddblock.myalbums.biz/node/754)
Install the upright slideshow themes (probably you did this)
Copy the preprocess function (probably you did this)
Display advanced Dynamic display block slideshow (you need here to choose the ddblock instance and not the block created by the views display. The ddblock instance has "ddblock" in the link when you hover the configure link in the blocks configuration page)

Hope this helps you further, please let me know.

solona’s picture

I am having the same problem.

I have a page-front.tpl.php and was trying to embed the ddblock instance using:

$block = module_invoke('ddblock', 'block', 'view', 1);
print $block['content'];

The transitions don't work, nor does the pager.

It works if I assign the block to a region and set it to only show on the front page. I may just take this route.