HI,
I have been trying to use DDBlock slide show for last 10 days...I tried following tutorial given on
ddblock.myalbums.biz page: http://www.youtube.com/watch?v=Q7OWh7UNdys
and later also
http://summapro.com/drupal-tutorials/ddblock-advance-slideshow-tutorial-...
both the times I able to get the block shown (only grey box or blue box depending on theme) but no images displayed. although checked permissions for anonymous users, when created content tpe made user it is "published".
Checked for similar issues and tried all solutions from clearing cache to checking preprocess functions........don't know where it is going wrong.
site where slide show can be seen:http://internal.itforchange.net/
all required modules are installed and enabled: * ddblock
* jquery_update
* cck
* views
* filefield
* imagefield
* imageapi
* imagecache
I see uploaded images are stored under: sites/default/files but
under admin->site configurations->images
I have set Default image path: 'image' folder. (don't know if that is wrong)
I am attaching template.php file.
Please need help here.
Thanks,
Leena
| Comment | File | Size | Author |
|---|---|---|---|
| template.txt | 14.58 KB | leenark |
Comments
Comment #1
ppblaauw commentedCan you uncomment the drupal_set_message debug lines in the preprocess functions
// drupal_set_message('' . var_export($vars['settings']['view_name'], true) . '');
// drupal_set_message('' . var_export($vars['content'][0], true) . '');
and attach the result?
Comment #2
leenark commentedHi there, thanks for quick reply.
sure, I have uncommented those lines and output is as follows:
it can also be seen here: http://internal.itforchange.net/
*
'news_items'
*
stdClass::__set_state(array(
'nid' => '583',
'node_title' => 'This is Title 1',
'node_data_field_pager_item_text_field_pager_item_text_value' => 'This is text pager 1',
'node_type' => 'ddblock_news_item',
'node_vid' => '583',
'node_data_field_pager_item_text_field_slide_text_value' => '
This is Slide text 1
',
'node_data_field_image_field_image_fid' => '248',
'node_data_field_image_field_image_list' => '1',
'node_data_field_image_field_image_data' => 'a:10:{s:8:"duration";i:0;s:6:"height";i:303;s:5:"width";i:478;s:18:"audio_bitrate_mode";s:0:"";s:18:"audio_channel_mode";s:0:"";s:12:"audio_format";s:0:"";s:13:"audio_bitrate";i:0;s:17:"audio_sample_rate";i:0;s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
'node_revisions_body' => '
Body 1 and also body 1.
',
'node_revisions_format' => '2',
'node_created' => '1298806692',
))
Comment #3
ppblaauw commentedIn your case you need to change in the preprocess functions for the ddblock slideshow:
into
You probably use the field for the image in more content types, that is why CCK generates another name for the field.
Hope this helps you further, please let me know.
See also issue: http://drupal.org/node/1067130
Searching the issue queue can give you direct answers
Comment #4
leenark commentedHi Thanks for this one.
Yes I am able to see images now. http://internal.itforchange.net/
I had seen this solution related to similar issues but it had asked to use otherway if older version of module is being used. Much much thanks for solving this!
Are there any links/tutorials to guide me on how to style the theme for DDBlock?
In my ddblock theme (modest-grey50p) I want to give link to different node for 'Read more" can I do that?
much thanks for your time and patience
Leena
Comment #5
ppblaauw commentedYou can find the answer to link the readmore button to another URL in the how to:
How to link Read more... button to another page instead of the node
Hope this helps you further, please let me know.
Comment #6
leenark commentedHI,
sorry to bother you with questions but you seem to know exactly how to use it, so would want to ask you one problem that I am facing.
If I enable this by admin->blocks the block shows up properly.
But if I add thr' panel (I have front page panel) as a block the images seems to be missing again.
do I need to save the view as block?
anything I am missing here?
Thanks,
Leena
Comment #7
ppblaauw commentedYou need to add the ddblock instance to the panel, not the views block display.
Hope this helps you further, please let me know.
Comment #8
leenark commentedYes, it did work. I added DDBlock instance thr' panel. Earlier there were two instances of block on same page I guess that is why it was not working. After I disabled one the other (panel one) worked.
much Thanks,
Leena
Comment #9
ppblaauw commentedset status to fixed
Comment #11
leenark commentedHi,
I have few more difficulties with ddblock slideshow. I have changed custom theme to-Chromatic blue20l, and unable to get pager item numbers. Default style for prev and next is getting picked instead of theme's.
You can see the problem on this link: http://internal.itforchange.net/
I have put all required files for chromatic blue20l theme under 'custom' folder and which is under mu themes folder.
for ddblock configurations:
using cycleblock
custom template: chromatic-blue20l
pager->custom pager,
pager container-> .prev-next-pager (I have taken this from themes css file)
in view I have pager-item-text - it is text but according to theme pager will be number form.
do I need to make any changes to pre-process functions?
Can anyone help me to get to the solution. what I am doing wrong?
much thanks
Leena
Comment #12
ppblaauw commentedchromatic blue 20 is a theme with a prev/next pager.
It does not have number pager functionality.
I see in the css file that you added number pager classes, so I assume you want to use a number pager.
The classes for the number pager have to start with
instead of
Comment #13
leenark commentedHi there,
thanks for your reply. My mistake since pager items from chromatic-blue20l were not working I had just replaced last few lines from css file of chromatic-blue10l to check if number will work.
But I have reverted back those changes and all classes for ddblock are showing 'div.ddblock-cycle-chromatic-blue20l' now. thanks for pointing it out.
But the problem remains, pager items are coming on left instead of right and no white border around text is seen, which is in css file. I tried to give box float:right; property but didn't work.
"div.ddblock-cycle-chromatic-blue20l div.prev-next-pager{background:#34608E;bottom:11px;display:block;height:40px;position:absolute;width:192px;z-index:100;}
div.ddblock-cycle-chromatic-blue20l div.prev-next-pager-left{left:11px;}
div.ddblock-cycle-chromatic-blue20l div.prev-next-pager-right{right:11px}
div.ddblock-cycle-chromatic-blue20l div.prev-next-pager a{background:#34608E;border:1px solid #fff;color:#fff;display:block;float:lright;font-family:Tahoma,Arial,sans-serif;font-size:.8em;font-weight:bold;height:40px;line-height:40px;margin:0 2px 0 0;position:absolute;text-align:center;text-decoration:none;width:60px;}
div.ddblock-cycle-chromatic-blue20l div.prev-next-pager a#prev2{left:0;}"
I am at loss to see where would I need to make changes.
regards,
Leena
Comment #14
ppblaauw commented#13 you should select prev-next pager instead of custom pager for the pager in the ddblock configuration page.
Comment #15
leenark commentedoh! correct. This worked....Thanks a bunch!!!
regards,
Leena
Comment #16
leenark commentedyeah the above got solved no doubt!
Just wondering is it possible to show ddblock in fluid width (percentages), so if I design my slide show for lowest res. 800 then it should resize it for 1200 also?
much thanks!
Leena