I am attempting to use the default dynamic display block as instructed in the basic setup instructions. The block is created with the default settings and the images are placed in /files/images/ddblock in the root of my Drupal installation. When I view the block it has the title and is spaced out properly but no image is displayed. I used Firebug to inspect the element and it was there. Interestingly enough when I changed the element to visible it appeared (as expected of course). Also instead of the images showing in a single block the appear in a row.

When I inspected other installations of the module there is javascript around the img element (ddblock.myalbums.biz/default_dynamic_display_block). I noticed in those instances while viewing them with firebug that I could see the entire cycle taking place. This never happens in my case and there is no javascript around the img element.

I am using Drupal 6.8 and the latest Jquery Update. I have block caching, and javascript caching off.

My HTML looks like this:

Test Dynamic Block

Only local images are allowed.
Only local images are allowed.

The HTML that I have observed in the sample code looks like this:

Default Dynamic display block

Only local images are allowed.
Only local images are allowed.
Only local images are allowed.
Only local images are allowed.
Only local images are allowed.

Thanks,

Marc P

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcparker’s picture

Here is the code comparison:
(opening < bracket removed from tags)

My HTML looks like this:

div id="block-ddblock-1" class="clear-block block block-ddblock">
h2>Test Dynamic Block

div class="content">
div id="ddblock-ddblock-1" class="ddblock-contents clear-block" style="visibility: hidden;">
div class="ddblock-content clear-block">
img width="183" height="183" alt="" src="/files/images/ddblock/194.jpg"/>
img width="183" height="183" alt="" src="/files/images/ddblock/201.jpg"/>
/div>

The HTML that I have observed in the sample code looks like this:

h2>Default Dynamic display block

div class="clear-block">
div id="node-3" class="node">
div class="content clear-block">
div id="ddblock-ddblock-2" class="ddblock-contents clear-block ddblock-processed" style="position: relative; height: 162px; width: 212px; visibility: visible;">
div class="ddblock-content clear-block ddblock-processed" style="height: 162px; width: 212px;">
p>
img class="ddblock-processed" alt="" src="/files/images/ddblock/beaches/b4_boracay.jpg" style="height: 150px; width: 200px; position: absolute; top: 0pt; left: 0pt; z-index: 5; opacity: 0.355;"/>
img class="ddblock-processed" alt="" src="/files/images/ddblock/beaches/b3.jpg" style="height: 150px; width: 200px; position: absolute; top: 0pt; left: 0pt; z-index: 4; opacity: 0; display: none;"/>
img class="ddblock-processed" alt="" src="/files/images/ddblock/beaches/b5_palawan.jpg" style="height: 150px; width: 200px; position: absolute; top: 0pt; left: 0pt; z-index: 3; opacity: 0; display: none;"/>
img class="ddblock-processed" alt="" src="/files/images/ddblock/beaches/b1_sugar_beach.jpg" style="height: 150px; width: 200px; position: absolute; top: 0pt; left: 0pt; z-index: 2; opacity: 0; display: none;"/>
img class="ddblock-processed" alt="" src="/files/images/ddblock/beaches/b2_Sipalay.jpg" style="height: 150px; width: 200px; position: absolute; top: 0pt; left: 0pt; z-index: 1; opacity: 0.644;"/>
/p>
/div>
/div>

Thanks,

Marc P

ppblaauw’s picture

I far as I can see there is nothing wrong with your code. Only the javascript does not work for some reason.
Can you try to empty the cache at administration > site configuration > performance

If this doesn't work please send me a link to your website, so I can help you better.
You can send it on my contact form

marcparker’s picture

Hi,

I emptied the cache as requested and the issue remains. Here is a link to the test page on my website: http://ourprattville.com/sports

Thanks.
Marc Parker

ppblaauw’s picture

Mark thanks for sending the link.

Found the bug.

The template file ddblock-cycle-block-content.tpl.php in the module is an older version.

Bug appears if you don't use a Advanced dynamic display block

The following patch should solve the problem.

After applying the patch please clear the cache

ppblaauw’s picture

Status: Active » Needs review
FileSize
4.91 KB

The patch:

marcparker’s picture

Philip,

thank you very much for the patch. I applied it and everything now works as expected. This module is great, thanks again for the hard work and effort you put into this.

Marc P

ppblaauw’s picture

Status: Needs review » Fixed

set status to fixed

bensnyder’s picture

I can confirm this as well. RC3 doesn't work for me exactly as described above.... glad I found this issue before posting a duplicate. I'll apply the patch as well.

I think you should release a major update (RC4) so other don't get headaches ^_^

BTW, GREAT WORK ON THIS MODULE!!! It's really taking drupal to a _whole_ new level IMHO.

Status: Fixed » Closed (fixed)

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

preper’s picture

how do we use this patch?

ppblaauw’s picture

You only need to patch if you use version RC3.
Better to upgrade to version RC4

If you use version RC4 it is already implemented and you don't have to patch.

Hope this helps you further

preper’s picture

I could not fix my problems. I only get views vision. my site is here ; www.mezesepeti.com

I follow all steps in http://ddblock.myalbums.biz/node/749 except Preprocess functions.

Slide Show Haber is my ddb with views. it is my practice site if you want I can give you user name and password of admin. user name: meze pass; meze123

ppblaauw’s picture

You have to put the preprocess functions in the template.php file of theme you use, otherwise the views fields are not known to the ddblock templates.

You can find the template.php file in your theme which is probably at sites/all/themes/[YOUR_THEME_NAME]

You can follow the steps in the tutorial to put the preprocess functions in your template.php file.

Further I see you have to change:
The contentcontainer setting to div.slide in the configuration page

Hope this helps you further.

preper’s picture

I couldn't apply preprocess steps. what should I do? will I copy and paste the codes in these three .txt docs into the template.php. what are the steps could you give more detail installation of preprocess?

And also my content container settings is already div.slide as you explained.

ppblaauw’s picture

You can read the steps in the tutorial at http://ddblock.myalbums.biz/node/765
You have to copy the two preprocess functions in this zip file to your template.php file and make the changes.

If something is not clear in the tutorial please describe what is not clear, so we can improve the tutorial.

preper’s picture

For example these two;

1-Copy the preprocess functions from the export-files.zip package to your template.php file.
2-Rename [THEME_NAME] to your theme name in both preprocess functions.

1- what will I copy from export-files.zip package? there are 3 text file and there are some codes in these files. Do you mean copy the codes in these .txt files and add to your template.php? Or send these files to the root of template.php?

2- how should I rename theme name? for example [garland] or [theme_garland]?

ppblaauw’s picture

You have to copy the two preprocess functions in the template.php.txt file to your template.php file in the theme you use.

You use garland so change [THEME_NAME] to garland in both preprocess functions

So It reads function garland_preprocess_ddblock_cycle_block_content

Hope this helps you further