Closed (fixed)
Project:
Dynamic display block
Version:
6.x-1.0-rc6
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2009 at 08:13 UTC
Updated:
7 Dec 2009 at 08:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
hungdo commentedHi yudhistir.
I think you haven't problem about your ddblock, maybe Top story 1,Top story 2 have created before so they exists in database.
Comment #2
yudhistir commentedThanks for the quick reply.
But how i procede from here?
Should I skip that part of the video and continue?
Thank you
Comment #3
ppblaauw commentedWhat steps did you do?
You created already the news_item content type or imported it?
You created at least two nodes?
You created already the news_items view or imported it?
You enabled the news_item content type and the news_items view in the settings tab?
You are now going to make a ddblock instance in the instance tab?
You can now create the ddblock_news_items instance, configure it and place it in a region or a node.
Just go further with the video, if you did all these steps.
Hope this helps you further, please let me know.
Comment #4
yudhistir commentedthanks for the assist.
i did go further and created instance, imported the preprocess and changed the settings as per the video.
But I dont ge the slide screen, as its shown on the video.Its on
http://indiabasket.net
Thank you.
Comment #5
ppblaauw commenteddid you download the ddblock themes upright10-50?
did you place the custom directory in
/site/sites/all/themes/fusion-6.x-1.x-dev/fusion/fusion_core/
or
/site/sites/all/themes/acquia_prosper/
Depending on the theme you use?
I don't see a ddblock theme css file
Did you change the [theme_name] in the preprocess functions to the theme you use?
Edit:In the video we used another ddblock theme as an example.
Comment #6
yudhistir commentedI did all that you have mentioned and also tried templates with upright50p, but i got a error. So I changed back to Custom with "Modest-grey40p" on. But its still the same.
But how do I solve this otherwise?
Thanks for the patience :)
Comment #7
ppblaauw commented#6 I had a look at your site before and saw a similar error like this:
Invalid argument supplied for foreach() in /drupal/sites/all/themes/[THEME-NAME]/custom/modules/ddblock/ddblock-cycle-block-content-upright10.tpl.php on line 43. error
This means you are making progress, the ddblock template file can be found, only not the content.
Have a look at the faq question: warning: Invalid argument supplied for foreach() in... solution? how to solve this.
Hope this helps you further, please let me know.
Comment #8
yudhistir commentedI have tried all the points on the FAQ, still the problem presists. I have also uncommented the drupal set message for you to check it out. I also attaching my template.php (I use acquia_prosper as my theme). I have also attached the screenshots for my views page and the blocks settigns page.
I have check the :
1. Theme name
2. Views Name
3. 2 nodes are created
Comment #9
ppblaauw commentedI can not find any wrong things in your code or in the result of the debug lines, except the commented if statements and wrong ending of the preprocess functions.
Changed template.php file attached.
Can you clear the cache again at administer > Site configuration > Performance
Do you have more copies of the custom folder in your drupal install?
Comment #10
yudhistir commentedThank you very much for your assistance. I pasted your changed template.php and it worked.
Looks like the code tweaking didn't work out well.
Thanks for all the assistance.