Hello, I am also having problems trying to install an advanced ddblock slideshow. I followed the tutorial and the video but haven't been able to make it work.

I'm not getting anything after I uncomment those lines in the template.php file of my theme Galaxy (in drupal, the theme name is adt_prt_galaxy, as can be seen in attached image).

I get this error: warning: Invalid argument supplied for foreach() in /home/content/p/a/l/palacio1000/html/new/themes/adt_prt_galaxy_d6/custom/modules/ddblock/ddblock-cycle-block-content-upright20.tpl.php on line 47.

I selected the upright20 theme but what I see is a white space and the two lines of the pager (prev and next, at top of the block) and no images displayed.

When I preview the view (named news_items), I can see the images and the query:
SELECT node.nid AS nid,
node.title AS node_title,
node_data_field_pager_item_text.field_pager_item_text_value AS node_data_field_pager_item_text_field_pager_item_text_value,
node.type AS node_type,
node.vid AS node_vid,
node_data_field_pager_item_text.field_slide_text_value AS node_data_field_pager_item_text_field_slide_text_value,
node_data_field_pager_item_text.field_image_fid AS node_data_field_pager_item_text_field_image_fid,
node_data_field_pager_item_text.field_image_list AS node_data_field_pager_item_text_field_image_list,
node_data_field_pager_item_text.field_image_data AS node_data_field_pager_item_text_field_image_data,
node_revisions.body AS node_revisions_body,
node_revisions.format AS node_revisions_format,
node.created AS node_created
FROM node node
LEFT JOIN content_type_ddblock_news_item node_data_field_pager_item_text ON node.vid = node_data_field_pager_item_text.vid
LEFT JOIN node_revisions node_revisions ON node.vid = node_revisions.vid
WHERE (node.status <> 0) AND (node.type in ('ddblock_news_item'))
ORDER BY node_created ASC

I selected to display the view as a block but have also created a node for test purposes, by adding the php code:

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

I'm attaching my template.php file. This is the link to this node: http://microaxiom/new/node/29

I'd appreciate any help, as I've spent almost a week trying to figure it out.

Let me know if you need more details.

Thanks

CommentFileSizeAuthor
screenshot.JPG23.18 KBcandres0115
template.php_.txt41.11 KBcandres0115

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

From what I can see in the link to the site given, your theme_name is:

adt_prt_galaxy_d6

In the template.php file you use:

function adt_prt_galaxy_preprocess_ddblock_cycle_pager_content(&$vars) {

This needs to be:

function adt_prt_galaxy_d6_preprocess_ddblock_cycle_pager_content(&$vars) {

also for the other preprocess function

Can you first change this and see if it works then.

Hope this helps you further, please let me know.

candres0115’s picture

hi,
I tried changing the theme name in the preprocess functions to "adt_prt_galaxy_d6" and nothing happened...what else can I do?

ppblaauw’s picture

First try to clear your cache at: administer > Site configuration > Performance.
If this does not help have a look at the faq question: warning: Invalid argument supplied for foreach() in... solution?

Hope this helps you further, please let me know.