Postponed (maintainer needs more info)
Project:
Dynamic display block
Version:
6.x-1.0-rc6
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2010 at 15:28 UTC
Updated:
24 Mar 2011 at 04:09 UTC
Jump to comment: Most recent file
Comments
Comment #1
ppblaauw commentedI 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.
Comment #2
held69 commentedThanks 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
Comment #3
ppblaauw commentedStill 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.
Comment #4
held69 commented"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)
Comment #5
ppblaauw commentedYour 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:
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.
Comment #6
held69 commentedThanks very much for your help.
It works!
By mistake i have placed the wrong dd block theme.
Comment #7
ppblaauw commentedGreat it works now!!!
Changed issue title.
Set status to fixed
Comment #8
Revenge Gym commentedI 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('
');
// drupal_set_message('
');
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)) {
'" alt="' . check_plain($result->node_title) .
// 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'] =
'
'"/>';
}
}
// 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('
');
// drupal_set_message('
');
'" alt="' . check_plain($result->node_data_field_pager_item_text_field_pager_item_text_value) .
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'] =
'
'"/>';
}
}
// 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.
Comment #9
mybinaryromance commentedi 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
Comment #10
drup975 commentedI 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!
Comment #11
ppblaauw commented#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
Comment #12
sam.paranjape commentedHi 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.
Comment #13
ppblaauw commented#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?
Comment #14
sam.paranjape commentedHi 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.
Comment #15
ppblaauw commented#14 posted a reply on your contact form.
Your questions are not really ddblock related, so did not reply on them here.
Comment #16
sam.paranjape commentedthats perfect! thanks.
Comment #17
S H Prasath commentedi 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
Comment #18
ppblaauw commented#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.
Comment #19
ngudiono commentedhalo, i have same problem (Emtpy block display using advanced drupal ddblock slideshow)
here is my template file
please help me
Comment #20
ngudiono commentedooppss...here is my template file
Comment #21
ppblaauw commented#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?
Comment #22
ngudiono commentedhi ppblaauw, thanks for reply, this is my website link : http://jago-rumah.com/
Comment #23
ngudiono commentedbtw, im using acquia_slate theme, but when im using garland theme its working