Hello,

I have a little problem with Dynamic Display Block. I am using version rc6 on drupal 6.8.

The ddblock that I would like to use doesn't work. The problem is that the block doesn't show up on my website. When i add a block through everything seems normal. After i have set this configuration i went to . There i bring the dynamic display block that i just have made to the header position (i am using the Giordani template). When i save this option and then look on my frontpage, i wont see the dynamic block! The strange thing about this is that when i go back to and i choose to delete the block, the block suddenly appears even with pictures. But it is only for a while, because when i go to it disappears immediately. I hope someone can help me with this problem.

Ferdy

Comments

ppblaauw’s picture

Assigned: raama004 » Unassigned
Status: Active » Postponed (maintainer needs more info)

What functionality are you using: basic or advanced slideshow?
Do you have a link to the Internet site?

raama004’s picture

Thanks for the quick reaction! I have made some faults in the text of the post, so here is the right one, with the answers to your questions.

-----

I have a little problem with Dynamic Display Block. I am using version rc6 on drupal 6.8.

The ddblock that I would like to use doesn't work. The problem is that the block doesn't show up on my website. When i add a block through /site-configuration/ /dynamic-display-block/ everything seems normal. After i have set this configuration i went to /siteconstruction/ /blocks/. There i bring the dynamic display block that i just have made to the header position (i am using the Giordani template). When i save this option and then look on my frontpage, i wont see the dynamic block! The strange thing about this is that when i go back to /site configuration/ /dynamic display block/ and i choose to delete the block, the block suddenly appears even with pictures. But it is only for a while, because when i go to /site construction/ /blocks/ it disappears immediately. I hope someone can help me with this problem.

----

I am using the basic functionality. And the link to my website is www.monteurwinkel.nl

Ferdy

ppblaauw’s picture

I don't see the block in the Internet site you send. Can you place the block again in a region.

raama004’s picture

I have placed the block in the region, now it is visible on the website. But this is after I have deleted the block under /site configuration/ /dynamic display block/, because else you won’t see anything.

ppblaauw’s picture

Did you set permissions to view the ddblock blocks for other users at: Administer > User management > Permissions?

raama004’s picture

Yes, i did. But the problem still remains. The block wont be vissible.

ppblaauw’s picture

We have to focus first on the issue that the block is not visible when you place it in a region.
That the block becomes visible when you delete it in the ddblock configuration page is strange and another issue.

Do you have any restrictions on the block?
What is the Download method: at Admininister > Site configuration > File system?
Do you use image cache or not?

Link to site not working anymore?

Anandyrh’s picture

Hi i am facing the same problem

raama004’s picture

Sorry for my late reaction. The good news is that i have solved the problem. The .htaccess file on my server, stored in the Dupal directory Files, in which my pictures for de Dynamic Dsiplay Block are saved was creating the problem as a discirbed before. Simply comment out the three lines inside the .htaccess file will solve this problem. Now Dymanic Display Block works fine. I hope this will help other people in the futere.

wwwoliondorcom’s picture

Hello,

I have the same problem and using Giordani theme also, could it be related ?

What to do to see the easy slideshow block ?

Thanks for help.

ppblaauw’s picture

@ wwwoliondorcom

I don't think it is theme related. It looks like it is more the permissions to view files.
what is your download method at Administer > Site configuration > File System?
(don't change it. It's just a question, read the comment under the download method)

Do you have a link to the Internet site?

D3m3ntiy’s picture

Dear All,

Please describe the solution to this problem. Which fields (in the .htaccess) do I need to comment out?

Thanks

ppblaauw’s picture

@ D3m3ntiy

I think raama004 means the three lines in the .htaccess file in the directory sites/default/files.

I don't think this is the right solution ( see first line)

For you the same question: What is your download method at Administer > Site configuration > File System?

D3m3ntiy’s picture

ppblaauw,

I have the same result with Public download method as with Private.

Kind regards

ppblaauw’s picture

@D3m3ntiy

You need to give some more information about your issue, so I can help you better.
Have a look at the other comments what questions I ask.

scribe27’s picture

I'm having the same issue. I've installed ddblock, checked my file settings, checked my user permissions & made sure my block is correctly assigned to a region. Nothing show's up until I delete the block - this it shows up until I refresh the page a few times - then its gone.

rajaoa’s picture

Title: Dynamic Display Block doens't work » Dynamic Display Block doens't appear at all
StatusFileSize
new99.27 KB

Hello ,
Thanks for a fantastic job done on this module. I thinks it is one of the coolest modules ever and it is very practical in a usability sense. I am using ac equally cool Theme called Arthemia. (I think ur module and this theme should win this years award) my site is. www.ohmeslogistics.com/aau. Unfortunately nothing seems to be working. i have been through all the bug complaints and reports, have imported views and content type files, worked on the pre-processor,---- but my regions are unable to display anything :( . What could the problem be?

I noticed that after going through the process the ff was noticed:

1. The template.php file was not totally cohrently coloured in Dreamweaver.(I removed the <?php > tag) from the txt file.

2. The Block module has two blocks after importing views and cck files and creating instances they are-
(a) News item slideshow and (b) ddblock-News item slideshow - could this be a problem?

I have attached a screen shot of the homepage and region.
SOMEONE PLEASE HELP ME, I DONT WANT TO BE BEHIND SCHEDULE ON THIS PROJECT!!! :(

ppblaauw’s picture

@ scribe27

Can not replicate the issue on my system. Similar issue can be found at: http://drupal.org/node/491876

@ Rajaoa

Thanks for making a new issue.
Answered your issue there: http://drupal.org/node/493588#comment-1710326

Luijten’s picture

@ppblaauw
First of all, I want to say 'dankjewel' for your great module. It looks amazing.
Unfortunately I face the same problem. I am sure it has nothing to do with permissions. When I delete the block, the slide show appears. :-( Is this problem solved yet? If not, I really want to help solving it.

carolynz’s picture

I'm having the same issue of the dynamic display block disappearing after I log out of the admin. I also have checked all resources to fix this problem with no success. Please HELP!

The problem is that the slideshow shows up while logged in as "admin" then disappears once logged out. However, when I recreate the ddblock and put it in the region it is visible temporarily in the logged out stage... but any change to the configure, ie image height/width or updating of images makes it disappear again. I have reinstalled all the files several times and cannot get the slideshow to stay on the front page.

using Drupal 6.13
theme altered: zen classic

ppblaauw’s picture

The problem with this issue is, I can not replicate it on my computer.

It's therefore difficult for me to pinpount the cause of this issue.

Hopefully someone finds a solution for this annoying issue and post it here.

Links to internet sites where this issue happens would help me to have a look and find a solution.

rajaoa’s picture

Hi Philip,
This is Raja, I think the person above has the same problem as i do about not having DDBlock showing- My 3 small blocks appear when i am logged in as admin , but the main box doesnt appear. If im logged out isee no DDblock at all except for a grey Box (empty) that occupies the area of the DDBlock.
Thanks- still working on it.
www.ohmeslogistics.com/aau (I am developing locally now)

ppblaauw’s picture

@Raja

Sounds like a permission issue.

You need to set view permissions for the dynamic display block module to anonymous
When you have the content permissions submodule from CCK enabled you also need the give permissions for the fields used with the dynamic display block slideshow.

Hope this helps you further, please let me know.

andtokyo’s picture

StatusFileSize
new55.45 KB

"When you have the content permissions submodule from CCK enabled you also need the give permissions for the fields used with the dynamic display block slideshow."

This solution is confirmed for my setup. Attached is a screenshot of the "anonymous user" permissions that were required for un-authenticated users to see the slideshow.

Hey man, thanks.

ppblaauw’s picture

To all: Maybe a cause of the issue for some of you.
Please state in your posts if you use a WYSIWYG editor.

When you have a WYSIWYG editor installed make sure you disable it for the fields in the dynamic display block module configuration. E.g. the field for the Custom jQuery Cycle Plugin Settings.

If you don't disable the WYSIWIG editor for this field, it maybe puts a character like

&nbsp;

in this field.

I hope someone can confirm this.

21cls’s picture

I'm trying to just create a simple slide show with the DDBlock module, so i think that means that i necessarily need the Custom jQuery Cycle plugin, though i do have it running. i understand what you are talking about with the whole "&nbsp" thing because i have encountered that before with an unrelated project. i've look over all the above posts and none of the suggestions that have been made seem to be working for me. The DDBLock only displays when it gets deleted as well. There has to be something that gets done during the creation process that is different than the tutorial.

ppblaauw’s picture

@21cls Do you have a link to the Internet Site where the ddblock slideshow is enabled?

Also to others with this issue. If you have a link to your Internet site where the ddblock slideshow is enabled, add it here.

bcobin’s picture

Component: User interface » Miscellaneous

I have the same problem with the block not appearing, although I can't say if my problem has anything to do with some of the issues here (or example, I don't have a WYSIWYG editor installed.) I've carefully checked the documentation and have been working on this for two days in the hopes of using this great module!

As a BTW, I don't see any permissions for filefield on my system, although it is installed properly. And I'm using the Garland theme for testing to eliminate some variables. I've downloaded both jquery.cycle.all.min.js and jquery-easing-1.1.1.js and placed them in the js folder (as well as in the main folder, as specified in the INSTALL.txt file) and checked to see that the drupal_add_js statement is in the module (the INSTALL.txt instructions are to add below line 26, which I assume pertains to an earlier version of the module); in any event, I've done my best to sort through the issues and I'm stumped.

With Cycleblock selected, nothing appears. With Default selected, I see the content displayed as a list, basically. So I think there may be a problem with the javascript. Any ideas?

Thanks for a great module and all your work in documenting it - very much looking forward to being able to use it! Thanks much for any help you can give me...

Slight update: Since I posted this, I did a minimal fresh install from scratch to eliminate possible module conflicts. At first, I only saw the block title and no debug output, once I cleared all cached data, I saw the debug output and no block title - in other words, the block does not output at all. This is the same behavior as described above.

I'm using latest version of all contrib modules with 6.13. Can't think of what the problem may be. Hoping someone can shed some light on this!

Anyway, here's the debug output:

    *

      'news_items'

    *

      stdClass::__set_state(array(
         'nid' => '1',
         'node_title' => 'News Item 1',
         'node_data_field_pager_item_text_field_pager_item_text_value' => 'News Item pager text',
         'node_type' => 'ddblock_news_item',
         'node_vid' => '1',
         'node_data_field_pager_item_text_field_slide_text_value' => 'This is the text for slide News Item 1',
         'node_data_field_pager_item_text_field_image_fid' => '1',
         'node_data_field_pager_item_text_field_image_list' => '1',
         'node_data_field_pager_item_text_field_image_data' => 'a:3:{s:11:"description";s:0:"";s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
         'node_revisions_body' => 'News Item 1 body text',
         'node_revisions_format' => '1',
         'node_created' => '1252960922',
      ))

And here's the modified Garland template.php:


<?php
// $Id: template.php,v 1.16.2.1 2009/02/25 11:47:37 goba Exp $

/**
 * Sets the body-tag class attribute.
 *
 * Adds 'sidebar-left', 'sidebar-right' or 'sidebars' classes as needed.
 */
function phptemplate_body_class($left, $right) {
  if ($left != '' && $right != '') {
    $class = 'sidebars';
  }
  else {
    if ($left != '') {
      $class = 'sidebar-left';
    }
    if ($right != '') {
      $class = 'sidebar-right';
    }
  }

  if (isset($class)) {
    print ' class="'. $class .'"';
  }
}

/**
 * Return a themed breadcrumb trail.
 *
 * @param $breadcrumb
 *   An array containing the breadcrumb links.
 * @return a string containing the breadcrumb output.
 */
function phptemplate_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
    return '<div class="breadcrumb">'. implode('  ', $breadcrumb) .'</div>';
  }
}

/**
 * Allow themable wrapping of all comments.
 */
function phptemplate_comment_wrapper($content, $node) {
  if (!$content || $node->type == 'forum') {
    return '<div id="comments">'. $content .'</div>';
  }
  else {
    return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>';
  }
}

/**
 * Override or insert PHPTemplate variables into the templates.
 */
function phptemplate_preprocess_page(&$vars) {
  $vars['tabs2'] = menu_secondary_local_tasks();

  // Hook into color.module
  if (module_exists('color')) {
    _color_page_alter($vars);
  }
}

/**
 * Returns the rendered local tasks. The default implementation renders
 * them as tabs. Overridden to split the secondary tasks.
 *
 * @ingroup themeable
 */
function phptemplate_menu_local_tasks() {
  return menu_primary_local_tasks();
}

function phptemplate_comment_submitted($comment) {
  return t('!datetime  !username',
    array(
      '!username' => theme('username', $comment),
      '!datetime' => format_date($comment->timestamp)
    ));
}

function phptemplate_node_submitted($node) {
  return t('!datetime  !username',
    array(
      '!username' => theme('username', $node),
      '!datetime' => format_date($node->created),
    ));
}

/**
 * Generates IE CSS links for LTR and RTL languages.
 */
function phptemplate_get_ie_styles() {
  global $language;

  $iecss = '<link type="text/css" rel="stylesheet" media="all" href="'. base_path() . path_to_theme() .'/fix-ie.css" />';
  if ($language->direction == LANGUAGE_RTL) {
    $iecss .= '<style type="text/css" media="all">@import "'. base_path() . path_to_theme() .'/fix-ie-rtl.css";</style>';
  }

  return $iecss;
}

/*!
 * Dynamic display block preprocess functions
 * Copyright (c) 2008 - 2009 P. Blaauw All rights reserved.
 * Version 1.4 (01-SEP-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 garland_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('<pre>' . var_export($vars['settings']['view_name'], true) . '</pre>');
    drupal_set_message('<pre>' . var_export($vars['content'][0], true) . '</pre>');
    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'] <> '<none>'){
              $slider_items[$key1]['slide_image'] = 
              theme('imagecache', 
                    $vars['imgcache_slide'], 
                    $filepath,
                    $result->node_title);
            }
            else {          
              $slider_items[$key1]['slide_image'] = 
                '<img src="' . base_path() . $filepath . 
                '" alt="' . $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'] =  $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'] =  $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'] =  '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 garland_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('<pre>' . var_export($vars['pager_settings'], true) . '</pre>');
    drupal_set_message('<pre>' . var_export($vars['content'][0], true) . '</pre>');
    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_image_field_image_fid)) {
            $fid = $result->node_data_field_image_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'] <> '<none>'){
              $pager_items[$key1]['image'] = 
                theme('imagecache', 
                      $vars['pager_settings']['imgcache_pager_item'],              
                      $filepath,
                      $result->node_data_field_pager_item_text_field_pager_item_text_value);
            }
            else {          
              $pager_items[$key1]['image'] = 
                '<img src="' . base_path() . $filepath . 
                '" alt="' . $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'] =  $result->node_data_field_pager_item_text_field_pager_item_text_value;
          }
        }
      }
      $vars['pager_items'] = $pager_items;
    }
  }    
}
ppblaauw’s picture

@bcobin

Your preprocess functions and the result of the debug lines look ok.
The slideshow should appear.

Do you have a link the site you use?
Also don't have much suggestions what the problem could be.
If you don't have a link, can you attach the source code of the page.

bcobin’s picture

Title: Dynamic Display Block doens't appear at all or disappears after a few config changes. » Dynamic Display Block doens't appear at all

Your preprocess functions and the result of the debug lines look ok. The slideshow should appear.

Thanks SO much for getting back - I've been going out of my mind!

Do you have a link the site you use? Also don't have much suggestions what the problem could be. If you don't have a link, can you attach the source code of the page?

I will send you a link to the site - feel free to do whatever you like; this is just a test bed I've set up only for the purposes of getting to the bottom of the problem. Let me know if there are any modules you'd like me to install (or versions thereof) and I'll be happy to do so.

(I just now installed and enabled Views Slideshow - no difference.)

The link will only work if my computer is on - you can also shoot me an email to let me know if you need anything. I'll keep this thread updated so others can share in the knowledge joy.

Thank you thank you! Looking forward to tracking the problem down and using this great module!

Wound’s picture

Title: Dynamic Display Block doens't appear at all » Disappearance happens after a few config changes. Text encoding problem?

In my case, the content of the block is shown as expected for a new view block and disappears after a few changes in the settings of the instance.

My site is http://smoklang.rohton.de. You will find an empty dark grey bar on the top of the right column where a slideshow of the newest pictures should be running instead.

The source of the image is a view block containing an unordered list of the img-fields from image-nodes, filtered by "contains new content" and "published or admin". Access is by policy.

Could it be, that there is a text encoding problem or something else that might change properties unexpectedly when writing to the database? The database is MySQL 5.0.51 (UTF8_general_ci). Issues like that like to hide behind such system dependent stuff.
Ah, and another dependency! The PHP version is 5.2.8.

What does the "delta"-column mean in the database table for ddblock?

ppblaauw’s picture

Title: Disappearance happens after a few config changes. Text encoding problem? » Dynamic Display Block doens't appear at all or disappears after a few config changes.

@bcobin

Thanks, Send you an email, will have a look at the site when it is available.
Hope we can pinpoint what causes the issue.

@Wound
Changed the issue title, to reflect more the related issues.

I don't have experience with encoding issues.
I can't replicate the issue on my servers.

The delta column is to give each block a number which is used in CSS and Javascript.

bcobin’s picture

Title: Dynamic Display Block doens't appear at all » Dynamic Display Block doens't appear at all or disappears after a few config changes.

More information (see #28):

On Configure Block:

Display Method: Default - Content appears as text and images; advanced settings have no effect. No debug text.

Display Method: Cycleblock - debug text appears only if Use Advanced Settings is selected; if not selected, neither block nor debug text appear.

21cls’s picture

Sorry for the late reply. I've been bogged down at work. Anyways, here is the link...

http://www.21stcls.com/knowledge_base/

Like i said before, it doesn't display, but i do have it set up so that it should be displaying in the right sidebar below the Search Block.
Thanks in advance

ppblaauw’s picture

Solved the issues with bcobin.
The issue here was permissions for the theme files at file system level
After giving access everything works as it should work

Other users. Please check the permissions at file system level

summit’s picture

Hi,

Shouldn't there be an errormessage or logmessage then, when the permissions are not set correct?
Thanks for solving this!
Greetings, Martijn

ppblaauw’s picture

@summit

When the theming system does not find a candidate template file apparently there is no error message.
I think this should be this way and is by design.

But in the case of the dynamic display block module the candidate template file is needed.

21cls’s picture

i have already checked the permissions, which are set to allow all users, including anonymous ones, to view the module. I set it that way inside the module when you create the DDBlock and when in the actual Drupal permissions area. So, unless its somewhere else, I'm stumped.

bcobin’s picture

Just to clarify: ppblaauw is talking about system-level permissions, not Drupal permissions. The template files are downloaded as a .zip archive, and, I believe, unzipped files don't "remember" the system level permissions. In my case, the template files (in [yourtheme]/custom/modules/ddblock) were set to "no access," hence, no display. Once permissions were set to "read and write," the block appeared.

Yet another reason to always use the .tar format when compressing files.

21cls’s picture

Oh ok, i didn't understand that for a second. Anyways, i changed the file permissions on both the module files and the files where the images are, but this still didn't fixed my problems.

bcobin’s picture

Did you check the permissions for the individual template files? ([yourtheme]/custom/modules/ddblock - set read and write permissions for all the files and folders within that folder).

Check that and then try clearing the cache on the Performance page.

bcobin’s picture

On #37:

Actually, I don't think that's true. In my test installation I tried moving the template files to ascertain whether or not they were in the right place and the system immediately threw the following message:

include(./themes/garland/custom/modules/ddblock/ddblock-cycle-pager-content.tpl.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /Users/[localhost]/sandbox/ddblock/includes/theme.inc on line 1020.

In the case of a permission problem (which is what was happening here), one would be expected to see "Permission Denied" - this is the usual behavior and has been helpful to me many times in other cases.

21cls’s picture

I changed all of the permissions at the folder level and had then applied it to all of the corresponding sub folders and files.

ppblaauw’s picture

#42

The file you mention (ddblock-cycle-pager-content.tpl.php) is the overriden template (tpl.php) file of the module which is needed to find other candidate template files in the theme.

Maybe when it is still in cache that this overridden file is used and you remove it, the error will be shown.

You see me using maybe, because I also don't know all ins and outs of the theming and caching functionality in Drupal.

#43

Some of the issues in this thread are not related. In your case you are using the basic slideshow options of the dynamic display block module. Others use the advanced options.

It's easier to answer issues when I know more about the steps done to get the functionality and explain what is different from what you expect.

Some questions I have:

What option do you use to get the content for the basic slideshow? (images from image folder)
What is the path of your image folder?
What is the setting in the configuration page for the image folder?
What is your download method for images. (private or public)
Are you using Image cache or not?

Please can you answer the questions, so I can help you better.

21cls’s picture

ok, here we go...

1) What option do you use to get the content for the basic slideshow? (images from image folder) i use an images folder, not a content type.
2) What is the path of your image folder? /knowledge_base/sites/default/files/ddblock
3)What is the setting in the configuration page for the image folder? The only things that are in the image folder settings area are as follows
Image folder path - sites/default/files/ddblock
Number of images - 3
4) What is your download method for images. (private or public) i just downloaded some test images from Google Images
5) Are you using Image cache or not? i have Image cache on the system but I'm not currently using it.

ppblaauw’s picture

#45

Thank you for sending the additional information

The image folder path in the configuration page is relative to the system file path, which is by default sites/default/files, so your setting in the configuration page should be: ddblock instead of sites/default/files/ddblock.

Hope this helps you further, please let me know.

21cls’s picture

Alright, well i changed the file path to just ddblock, but that didn't seem to do anything to fix the problem. i also tried clearing my cached data but that didn't seem to help either. Anymore suggestions?

ppblaauw’s picture

at #47

at Administer > Site configuration > File system.

What is the setting for the: files system path?
What is the setting for the: download method (public or private)?

--
at Administer > User management > permissions
Did you give permissions to view ddblock slideshows to anonymous users?

--
In the block configuration page do you set:
Show on every page?
All users can view the block?

21cls’s picture

at Administer > Site configuration > File system.

What is the setting for the: files system path?
sites/default/files/ddblock
What is the setting for the: download method (public or private)?
public
--
at Administer > User management > permissions
Did you give permissions to view ddblock slide shows to anonymous users?
yes
--
In the block configuration page do you set:
Show on every page?
Yes
All users can view the block?
yes

ppblaauw’s picture

#49

The setting for the image folder is relative to the file system path:

So if the folder where you store images is:

sites/default/files/ddblock

your file system path is also

sites/default/files/ddblock

then the setting for image folder in the ddblock configuratio page should be empty (no value)

when you would put ddblock here the module would look for the folder:

sites/default/files/ddblock/ddblock

Hope this helps you further, please let me know.

Even Dawn’s picture

Hello, thanks in advance for any assistance.

I have made another attempt at the ddblocks slideshow following the tutorial steps.
All that is displayed is a grey box in the block: ddblock-News item slideshow

I have replaced all the node_data_field_image_field_image_fid in the template file with node_data_field_pager_item_text_field_image_fid as well as changed the theme name in the block content and pager sections. I am using the view name 'news_items' as per tutorial steps.

Here are the answers to these questions you asked in #44.

What option do you use to get the content for the basic slideshow? (images from image folder)
> Content type News Item
What is the path of your image folder?
> Is this applicable with a content type slideshow?
What is the setting in the configuration page for the image folder?
> Is this applicable with a content type slideshow?
What is your download method for images. (private or public)
> public
Are you using Image cache or not?
> Yes ImageAPI is enabled

Advice is much appreciated!

ppblaauw’s picture

#51

Can you attach your template.php file and the result of the drupal_set_message debug lines, so I can help you better. Link to the site or page source are also useful.

Most of the questions in #44 are for the basic slideshow option of the dynamic display block module.

21cls’s picture

Yeah, that actually fixed it. its always the simple things that seem to cause the problems. Thanks so much for your help. This was a ll a test to see how the system works. next up will be the more complicated version. Thanks again...

21cls’s picture

Ok, so now i have another problem with the simple slide show. When i enable an image pager, the pager appears but then the main display disappears. Then after a couple of moments, the main display appears but the pager is replaced with 3 small empty boxes. The number page works fine as well as the prev/next pager. Any thoughts?

ppblaauw’s picture

#54

Have a look at the faq question:I see only very small thumbnails and sometime the big images, what is wrong?

Hope this helps you further, please let me know.

21cls’s picture

i don't understand what I'm supposed to change. Am i supposed to change the folder where the images are kept to .ddblock-container?

ppblaauw’s picture

#56

In the configuration page of the ddblock slideshow in question you need to change the field content container to:

.ddblock-container img

instead of just

img

Hope this helps you further, please let me know

Even Dawn’s picture

StatusFileSize
new2.21 KB

Hello again, thanks for your #52 reply ppblaauw!

This is the error currently being displayed:

warning: Invalid argument supplied for foreach() in C:\apache2triad\htdocs\drupal-6.4\sites\all\themes\colorfulness_theme\custom\modules\ddblock\ddblock-cycle-block-content-gradient-green40p.tpl.php on line 53.

The first time I attempted to install the module I was able to view the ddblock as a multiple image set but with no captions, as well as an image content type set. Somehow or other I broke the functioning and had to backtrack to try an get it working again.

The template file is attached, thank you for assisting. What I would like to achieve is 3 sets of image galleries for a clothing catalogue so I would prefer to manage them as multiple image sets.

ppblaauw’s picture

#58

In the error I see that your theme name is

colorfulness_theme

In the preprocess functions you used

colorfullness_theme

Hope this helps you further, please let me know

ppblaauw’s picture

Posted twice

Even Dawn’s picture

Thanks for pointing that rather obvious error in my theme name out... :-/
#59
I have changed those two postings but-

I am still getting this error :
warning: Invalid argument supplied for foreach() in C:\apache2triad\htdocs\drupal-6.4\sites\all\themes\colorfulness_theme\custom\modules\ddblock\ddblock-cycle-block-content-gradient-green40p.tpl.php on line 53.

When I open that php file this is what is on line 53... Any ideas what the problem is?
<?php foreach ($slider_items as $slider_item): ?>

p.s. do you live in the philippines? i went to cebu on the way to visit my grandparents in Bais last year...

ppblaauw’s picture

#61

The error means that the content from the view can not be found.

Can you clear the cache at administer > site configuration > performance

Can you attach the template.php file again and the result of the drupal_set_message lines when uncommenting them in the preprocess functions.

Do you have a link to the Internet Site or attach the page source of the page with the ddblock slideshow.

Please provide the information, so I can help you better.

Ps. I am from the Netherlands, but live since 4 years in Sipalay, Negros Occidental.

Even Dawn’s picture

StatusFileSize
new13.94 KB
new2.21 KB

Since clearing the cache, the news item gallery slideshow became visible, but the slides are not animated, there are no thumbnails and the images only change when the page is refreshed.
This is the result of the drupal_set_message lines:

*

'news_items'

*

stdClass::__set_state(array(
'nid' => '64',
'node_title' => 'Awakening',
'node_data_field_pager_item_text_field_pager_item_text_value' => 'Awakening Mandala',
'node_type' => 'ddblock_news_item',
'node_vid' => '64',
'node_data_field_pager_item_text_field_slide_text_value' => 'Available as original canvas, stickers and sarongs. ',
'node_data_field_pager_item_text_field_image_fid' => '174',
'node_data_field_pager_item_text_field_image_list' => '1',
'node_data_field_pager_item_text_field_image_data' => 'a:3:{s:11:"description";s:0:"";s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
'node_revisions_body' => 'Original Canvas Artwork
40inch square
$480 each

Stickers Art
10cm square
Set of 12 $36 ($3 each)

Sarong Artwork
2m x 1m
$40

',
'node_revisions_format' => '2',
'node_created' => '1253780763',
))

template.php is attached in a .zip and the page source as a .txt (it is being developed on a local dev. env.)

I hope that helps you get the picture...
salamat!

ppblaauw’s picture

I see in the source code that the timeout setting is: 0 which means the slideshow does not cycle automatically.
The speed setting is also 0, better to set this to 500.

You need to set the timeout to e.g.: 7000 (7 seconds) and the speed to: 500 (1/2 second) in the configuration page of the ddblock slideshow.

Hope this helps you further, please let me know.

Even Dawn’s picture

Hello, yes your advice in #64 did help display the slideshow, thanks very much!
There are no thumbnails or pager options showing in the dynamic display block yet, and I am only able to see the block generated by the each individual new_items content type instead of the multiple_image_set in the node_gallery I have created...
This may have something to do with the WYSIWYG editor when I past in the php code for the node, do you know how I can disable it for this post?
I am doing my best to understand how this module is working as it seems like the best example of an interactive gallery I have ever seen- well done for all the good work!

ppblaauw’s picture

#65

Please make a new issue for this.
This thread is already long and it looks like this new issue is not related anymore.
Posting different issues in separate posts makes them more useful for other users.

21cls’s picture

Thanks so much for clearing that up for me. Now i will start messing around with the advanced slide show...

superfedya’s picture

Same problem... After few changer slideshow blocke disappears, I have try mamy themes, same probleme...

airen2011’s picture

#68 Please make a new issue for this.
This thread is already long and there are many different causes as you can read in this thread.
Have a look at the questions asked by ppblaauw (module maintainer) and give more information what you changed in your new issue, so I can help you better.

cpotter’s picture

Issue tags: +no display

I have the same problem with Advanced DDBlock

The News View is correctly set and 2 news are published. Here is the result from the select

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 car_node node 
LEFT JOIN car_content_type_ddblock_news_item node_data_field_pager_item_text ON node.vid = node_data_field_pager_item_text.vid 
LEFT JOIN car_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

The template function glossyblue_preprocess_ddblock_cycle_block_content(&$vars) is called and i can see debug information like the full path of the images :
/drupal/sites/carolepotter.com.drupal/files/table-thanksgiving_1.jpg

The filesystem is set to public, ddblock permissions are set to anonymous and users

Any help really appreciated (spend a full day already)

ppblaauw’s picture

#70
saw you made another issue (http://drupal.org/node/641772) where you say you solved your issue.

cpotter’s picture

no this one is a new issue for me (the other issue was that the preprocessing function was not called at all). now the preprocessing is called but no image (not even a grey box)

yes, I REALLY want this module to work (and donate)

ppblaauw’s picture

#72
Please make a new issue for this.
This thread is already long with several unrelated issues (not useful for other users anymore).
Posting different issues in separate posts makes them more useful for other users.

Can you clear the cache at administer > site configuration > performance

Can you attach the template.php file and the result of the drupal_set_message lines when uncommenting them in the preprocess functions.

Do you have a link to the Internet Site or can you attach the page source of the page with the ddblock slideshow.

Please provide the information in the new issue, so I can help you better.

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

closing this issue, thread is very long and not very useful for other users, with several different issues.
When the issue still exists for you, please make a new issue.

linitrex’s picture

PROBLEM:

I do install a new Drupal.
Then I do install and enable the modules needed.
I create the Content type and the view by importing files from
Export_files_V1.6.zip
and copy/paste the functions to the zen theme tamplate.php with the proper
theme name replacement.

I follow all the steps from the documentation.
When I create a ddblock from /admin/settings/ddblock and place it in the
right region from admin/build/block it does not appear.

When I go back to admin/settings/ddblock and delete the block it
surprisingly appears and displays correctly in the proper region although
it should not appear at all because it is deleted.

When I go to admin/build/block again the block disappears and never shows
again.

So the only way to show a ddblock is to make it and then delete it!

SOLUTION:

Just solved the problem!!!

When I import the Content type, by default the Nodes created are
unpublished. When I published the nodes it is ok.

ppblaauw’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Can other users having this issue confirm what linitrex says in Post #75, solves the issue.

arski’s picture

subscribing

arski’s picture

Not really, all the nodes I want to display are published, yet the problem persists.

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

#77, #78

You need to give more information so I can help you better.
See what I ask to other users in this thread, and open a new issue.

Close this issue again, To much different issues in one thread.

dcoder’s picture

I had this problem with DDBlocks and anonymous users -the slideshow didn't show up for this role-. In my case was the permissions for the imagecache module. I used an imagecache for the slideshow pics and I forgot to set "view imagecache slideshowimage" (in your case can be another name) besides the DDBlock permission. Hope this could be useful for some people.
/d

hondaman900’s picture

I had this problem and eventually found my very simple solution (after much frustration trying all of the other suggestions above).

I had developed a site on my localhost Windows system. When I deployed on a hosted Linux/Apache account the now-case-sensitive reference to the location of the directory holding my carousel images became a crucial factor. DDB was looking for images/portfolio, but the folder I had FTP'd during deployment was images/Portfolio. The Windows localhost site (under the Aquia distribution) didn't care about this case difference, but the live site did and the Dynamic Display Block effectively "dissappeared" as a result.

Hope this helps someone else with this particular version of the issue.

anujosh’s picture

I have a similar problem.. The cycleblock won't display but default shows as a list.(the slideshow was working before perfectly) I tried to set permissions to the custom/modules/ddblock but no luck.
the site is http://www.itforchange.net. Any suggestions? It is quite urgent.