I've read all the similar problems, and modified my template.php correspondingly. However the images still cannot be displayed.
I am following everything based the Advanced slideshow tutorial.
Here is the link of my website. http://mlab.seas.upenn.edu/news. The dynamic display block is shown as "first test"
See the attached for my template.php
Also if I use template upright10-50, I got the warning: Invalid argument supplied for foreach() in /home/mlab/downloads/drupal-6.9/sites/all/themes/magazeen/custom/modules/ddblock/ddblock-cycle-block-content-upright20.tpl.php on line 47. But the grey area, next and prev button will be displayed.
Are these two problems correlated?
Any help would be greatly appreciated.
Eddie
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | template.php_.txt | 8.9 KB | irishgringo |
| #6 | template.php.txt | 43.05 KB | eddie_xychen |
| #4 | template.php_.txt | 10.65 KB | trevorforrest |
| template.php.txt | 40.33 KB | eddie_xychen |
Comments
Comment #1
ppblaauw commentedI don't see the dynamic display block at the link you gave.
Maybe you did not set permissions for anonymous users to view the dynamic display block.
You can set permissions at Administer > User Management > Permissions.
If you have CCK content permissions module enabled you also need to give permissions for the fields used with the ddblock module.
Please set the permissions, so I can help you better.
Can you also uncomment the drupal_set_messages in both preprocess functions
Comment #2
eddie_xychen commentedThanks for your quick response.
Now the ddblock using block is viewable at http://mlab.seas.upenn.edu/news. However there is still nothing to be displayed. I created two nodes of news_items type with proper access setting.
Also i've uncommented those two lines in both functions.
Thanks again.
Eddie
Comment #3
ppblaauw commentedThanks for sending the information, the link and uncommenting the drupal_set_message lines.
Your template.php file looks ok.
At the page I see that you have the prev/next pager enabled, but your theme is set to custom without giving a custom theme.
Can you choose here: the upright20 ddblock theme, which supports the prev/next pager.
Please let me know when you made the change.
Comment #4
trevorforrest commentedI am having a similar problem. Please take a look at www.jamaicalabourparty.com/base.
The "featured news" section is where the ddblock is supposed to be displayed.
the template.php is attached.
I have created 2 stories (clones) but nothing displays....and all the permissions look to be set.
HELP
Comment #5
ppblaauw commented@trevorforrest
When you uncomment the drupal_set_message debug line you can see which field_names CCK generates.
Probably you need to change (4x) 2x in both preprocess function
into
To make the slideshow work
Hope this helps you further, please let me know.
Comment #6
eddie_xychen commentedThank you very much for your help. It did help me to solve the problem.
http://mlab.seas.upenn.edu/news can now display the news_item. However, I'm trying to embed some youtube video.
Here is the template.php file.
Do I need to modify something so the block can play the embedded video directly instead of playing video in the node(just as shown in the example).
Thanks again.
Eddie
Comment #7
ppblaauw commentedOne option is to play the video's in a node, another option is to play the video's directly in the dynamic display block. We made a "how to" for the first option but not yet for the second. It's a different setup.
Please be patient for the "how to".
I am currently creating a new release of the module for drupal 6 and creating an upgrade to drupal 7.
Comment #8
eddie_xychen commentedThank you very much for your responsive reply.
Is embedding youtube video trivial? Intuitively, I think we just need to modify how to load the object in preprocess function. Maybe i'm missing something...
If so, would you please send a copy of template.php of the Embedded Example to eddie_xychen@hotmail.com?
I really need to get the youtube thing up and running.
I appreciate it.
Cheers,
Eddie
Comment #9
irishgringo commenteddelete please