Without succes I have followed the steps using the advanced slide show video.

I do have a block (my slide show) that is displayed however, there are no pictures in it.

To test i have activated the News item slideshow block that is created by its view as well.
This block does display the images, however not in a slideshow. which should be that way i guess.

The page where the block (my slidshow) should appear is: http://vso.heldencafe.nl/

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

I don't see any dynamic display block functionality on the page you provided a link for.

Did you place the ddblock instance, created for the news_items views block, which is probably named ddblock_news_items in a region?

This block has ddblock in the link when you hover the configuration link in the Drupal blocks configuration page.

Your template.php file looks ok.

Hope this helps you further, please let me know.

held69’s picture

Thanks for your swift reply.

"Did you place the ddblock instance, created for the news_items views block, which is probably named ddblock_news_items in a region?"

I have added a instance called 'vso my slideshow'. Having the select box 'block type' on 'views- News item slideshow'.
The block, that was created due to this instance is placed on http://vso.heldencafe.nl/ called 'VSO my slideshow'
Placed in the content region.

Now i have added the other block (created by the view:news_items (slideshow) this one has pictures, it can be seen here now as well.
http://vso.heldencafe.nl/
Placed in the content region as well.

I guess i must oversee something here.....still hope to find what it is.

Thanks

ppblaauw’s picture

Still don't see any dynamic display block functionality on your page.

Did you give permissions for anonymous users to view ddblock slideshows?
Did you copy the custom folder with ddblock themes to your theme?
Can you uncomment the drupal_set_message lines in both preprocess function?

Hope these checks help you further, please let me know.

held69’s picture

StatusFileSize
new11.61 KB

"Did you give permissions for anonymous users to view ddblock slideshows?"

Aaargh forgot that one. Shoul be good now.

"Did you copy the custom folder with ddblock themes to your theme?"
Yes

Can you uncomment the drupal_set_message lines in both preprocess function?

Yes, my template.php now looks like (see attachment)

ppblaauw’s picture

Your template.php file looks good and the result of the debug lines also.
I see you use the gradient-blue30p ddblock theme in the results of the debug lines, but don't see a CSS file for this theme in the page source. Probably can not find the ddblock theme

The ddblock themes need to be placed in:

/sites/all/themes/vso/custom/modules/ddblock/

We you did this clear your cache at Administer > Site configuration > Performance

Can you also check if the nodes you use in the slideshow are published.

You can also have a look at the trouble shooting part of the FAQ for more things to check.

Hope this helps you further, please let me know.

held69’s picture

Thanks very much for your help.

It works!

By mistake i have placed the wrong dd block theme.

ppblaauw’s picture

Title: Emtpy block display using advanced slideshow » Emtpy block display using advanced drupal ddblock slideshow (Fixed)
Status: Postponed (maintainer needs more info) » Fixed

Great it works now!!!

Changed issue title.
Set status to fixed

Revenge Gym’s picture

StatusFileSize
new3.97 KB

I have this same problem of an empty grey box that many on the forum have seemed to have remedied with the fantastic help they have received. I have check over all the solutions from the view panel to the php in the template.php file for my theme and everything seems to be in order. All four reasons given for the grey box I have checked and the seem to be correct.

Attached to this comment is a text file the ddblock's template php that I pasted into my template.php (acquia slate) and the jquary copied from the view.

Here it is in this body:

/*!
* Dynamic display block preprocess functions
* Copyright (c) 2008 - 2009 P. Blaauw All rights reserved.
* Version 1.6 (01-OCT-2009)
* Licenced under GPL license
* http://www.gnu.org/licenses/gpl.html
*/

/**
* Override or insert variables into the ddblock_cycle_block_content templates.
* Used to convert variables from view_fields to slider_items template variables
*
* @param $vars
* An array of variables to pass to the theme template.
*
*/
function acquia_slate_preprocess_ddblock_cycle_block_content(&$vars) {
if ($vars['output_type'] == 'view_fields') {
$content = array();
// Add slider_items for the template
// If you use the devel module uncomment the following line to see the theme variables
// dsm($vars['settings']['view_name']);
// dsm($vars['content'][0]);
// If you don't use the devel module uncomment the following line to see the theme variables
// drupal_set_message('

' . var_export($vars['settings']['view_name'], true) . '

');
// drupal_set_message('

' . var_export($vars['content'][0], true) . '

');
if ($vars['settings']['view_name'] == 'news_items') {
if (!empty($vars['content'])) {
foreach ($vars['content'] as $key1 => $result) {
// add slide_image variable

if (isset($result->node_data_field_pager_item_text_field_image_fid)) {
// get image id
$fid = $result->node_data_field_pager_item_text_field_image_fid;
// get path to image
$filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid));
// use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes)
if (module_exists('imagecache') && is_array(imagecache_presets()) && $vars['imgcache_slide'] <> ''){
$slider_items[$key1]['slide_image'] =
theme('imagecache',
$vars['imgcache_slide'],
$filepath,
check_plain($result->node_title));
}
else {
$slider_items[$key1]['slide_image'] =
'Only local images are allowed. '" alt="' . check_plain($result->node_title) .
'"/>';
}
}
// add slide_text variable
if (isset($result->node_data_field_pager_item_text_field_slide_text_value)) {
$slider_items[$key1]['slide_text'] = check_markup($result->node_data_field_pager_item_text_field_slide_text_value);
}
// add slide_title variable
if (isset($result->node_title)) {
$slider_items[$key1]['slide_title'] = check_plain($result->node_title);
}
// add slide_read_more variable and slide_node variable
if (isset($result->nid)) {
$slider_items[$key1]['slide_read_more'] = l('Read more...', 'node/' . $result->nid);
$slider_items[$key1]['slide_node'] = base_path() . 'node/' . $result->nid;
}
}
}
}
$vars['slider_items'] = $slider_items;
}
}
/**
* Override or insert variables into the ddblock_cycle_pager_content templates.
* Used to convert variables from view_fields to pager_items template variables
* Only used for custom pager items
*
* @param $vars
* An array of variables to pass to the theme template.
*
*/
function acquia_slate_preprocess_ddblock_cycle_pager_content(&$vars) {
if (($vars['output_type'] == 'view_fields') && ($vars['pager_settings']['pager'] == 'custom-pager')){
$content = array();
// Add pager_items for the template
// If you use the devel module uncomment the following lines to see the theme variables
// dsm($vars['pager_settings']['view_name']);
// dsm($vars['content'][0]);
// If you don't use the devel module uncomment the following lines to see the theme variables
// drupal_set_message('

' . var_export($vars['pager_settings'], true) . '

');
// drupal_set_message('

' . var_export($vars['content'][0], true) . '

');
if ($vars['pager_settings']['view_name'] == 'news_items') {
if (!empty($vars['content'])) {
foreach ($vars['content'] as $key1 => $result) {
// add pager_item_image variable
if (isset($result->node_data_field_pager_item_text_field_image_fid)) {
$fid = $result->node_data_field_pager_item_text_field_image_fid;
$filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid));
// use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes)
if (module_exists('imagecache') &&
is_array(imagecache_presets()) &&
$vars['imgcache_pager_item'] <> ''){
$pager_items[$key1]['image'] =
theme('imagecache',
$vars['pager_settings']['imgcache_pager_item'],
$filepath,
check_plain($result->node_data_field_pager_item_text_field_pager_item_text_value));
}
else {
$pager_items[$key1]['image'] =
'Only local images are allowed. '" alt="' . check_plain($result->node_data_field_pager_item_text_field_pager_item_text_value) .
'"/>';
}
}
// add pager_item _text variable
if (isset($result->node_data_field_pager_item_text_field_pager_item_text_value)) {
$pager_items[$key1]['text'] = check_plain($result->node_data_field_pager_item_text_field_pager_item_text_value);
}
}
}
}
$vars['pager_items'] = $pager_items;
}
}

Jquary copied from the View Preview:

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

Thank you so much in advanced, I have tried to figure it out on my own before I asked for help.

Cheers
Todd

PS If you need admin access I can email you a password.

mybinaryromance’s picture

i have another issue corresponding to this thread: i have a dd-slideshow set up which works perfectly for admin. however, other users don't really get to see anything. actually, other users get to see a blank area (ie) or just the overlayed text (ff), but no image and no pagination. the source code is correct and no difference to what admin gets.

i have set the rights to 'view dd-slideshow blocks' to anonymous.
the rights to view imagecache presets are set to 'anonymous', too.

any ideas?

thanks a lot!
bonzo

drup975’s picture

I have the same issue on my website. It seems it is because the cache is enabled.
Do any of you know how to be sure that the block appears without disabling cache ?
Thank you very much in advance for the help!

ppblaauw’s picture

Status: Fixed » Postponed (maintainer needs more info)

#8 send an email to you
#9 and #10
Do you maybe have the content permissions module enabled and did not give permissions for fields.
Can you send a link to your Internet site, so I can help you better.

You can also check the troubleshooting part of the FAQ at http://ddblock.myalbums.biz/faq

Hope this helps you further, please let me know

sam.paranjape’s picture

Hi I am also learning drupal to build my site..
I also came across same situation before, but it got solved now.will tell you how..

While configuring this ddblock slideshow, if you miss even a single setting, it may not give you intended results..

I follwed steps at http://ddblock.myalbums.biz/node/749
check this out and follow regorously all these steps... right from installation-through-display of advance ddblock slideshow (which is 2nd last step)
Because last step has some critical settings, but even after This 2nd last step , you will see the display.

That was just sharing of my experience.. Hope it will help you.

I am also looking to have that kind of outline (pink outline, onw which you have put in your layout)

Can you just tell me how to get that?

Thanks.

ppblaauw’s picture

#12

"I am also looking to have that kind of outline (pink outline, onw which you have put in your layout)"

What are you referring to? Can you give an example?
Do you have a link to the slideshow on your Drupal site?

sam.paranjape’s picture

Hi philip. thanks for responding..

the link i was referring to the site construction at... http://vso.heldencafe.nl/

In this site, they have tried to create Pink Outline and I also like those Bold Tabs in pink color at the top..

What module/process should I use to have this 1. Pink ourline to box
2. Tabs on top.

thanks in advance..

please reply as soon as possible if you can.

ppblaauw’s picture

#14 posted a reply on your contact form.
Your questions are not really ddblock related, so did not reply on them here.

sam.paranjape’s picture

thats perfect! thanks.

S H Prasath’s picture

StatusFileSize
new8.15 KB

i got a error called ''warning: Invalid argument supplied for foreach() in C:\wamp\www\Advanced\sites\all\themes\mygarland\custom\modules\ddblock\ddblock-cycle-block-content-upright50.tpl.php on line 47.''

what is the solution for this problem........
help me... i am too new to drupal
here is my template file

ppblaauw’s picture

#17

You can have a look at the faq question: warning: Invalid argument supplied for foreach() in... solution?

Hope this helps you further, please let me know.

ngudiono’s picture

halo, i have same problem (Emtpy block display using advanced drupal ddblock slideshow)

here is my template file

please help me

ngudiono’s picture

StatusFileSize
new7.08 KB

ooppss...here is my template file

ppblaauw’s picture

#20

Please attach also the results of the drupal_set_message debug lines when you uncomment them in the proprocess functions.
Do you have a link to your Internet site?

ngudiono’s picture

hi ppblaauw, thanks for reply, this is my website link : http://jago-rumah.com/

ngudiono’s picture

btw, im using acquia_slate theme, but when im using garland theme its working