Today I was trying to add ddblock to my site and after 2 hours couldn't add the ddblock. I tried every option emptied cache etc. Finally found the solution. The CCK export doesn't work with new ImageField because they changed the field name. It is now part of filefield. In order to work with new imagefield you should also update filefield to latest beta.I think you should update the documentation and if possible add new CCK export according to new ImageField.

Comments

ppblaauw’s picture

Status: Active » Needs work

Thank you for reporting.
We will adjust the documentation and make a new export for the content type soon.

ppblaauw’s picture

For using the new beta version of file-field and image-field modules a new export_files package is available on http://ddblock.myalbums.biz/download

You need to use the new cck-export file and the new template.php.txt file

We are also updating the Advanced slideshow tutorial. Updates will be available soon.

mustafadur’s picture

Thanks for the update, but at download page I think Export_files_V1.1.zip link that you put actually is linking to http://ddblock.myalbums.biz/sites/default/files/Export_files.zip. Your file is there just the link is wrong.I am looking forward to see updated Advanced slideshow tutorial.Thanks.

ppblaauw’s picture

Thanks, Changed the link.

Documentation in progress.

ppblaauw’s picture

Status: Needs work » Needs review
ppblaauw’s picture

Status: Needs review » Closed (fixed)

set issue to closed

happydrupal’s picture

Status: Closed (fixed) » Active

It's not working with ImageField 6.x-3.0-rc1 (was released on April Fools' Day)by using the Export_files_V1.1.zip!!

I still got "warning: Invalid argument supplied for foreach() in /home/happypig/public_html/sites/mdb.happypig.tw/modules/ddblock/ddblock-cycle-block-content-upright10.tpl.php on line 47."

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

@ happydrupal.

I assume you copied the preprocess functions to the template.php file of the theme you use and that you changed the theme name in the preprocess functions to the name of the theme you use
and you use the cck import and the views import file from the package.

Could you send the result of the drupal_set_message debug lines in the preprocess functions if you uncomment them and send the template.php file.

If you can send a link to the Internet site that would also help.

happydrupal’s picture

StatusFileSize
new2.48 KB

Hi, ppblaauw

I'm using "colourise" Theme in my project. ( http://mdb.happypig.tw/ ; user:demo ; pwd:demo ) Attached please also find the modified template.php with preprocess functions. You can find there's two block in the bottom, "ddblock-News item slideshow" block from ddblock with no content and "News item slideshow" block with only Title/Body fields from views. However, I can see the whole six fields in Super Admin.....????

I already uncomment the drupal_set_message debug lines in template.php but where can I find the debug message???

Last mile to see DDB working in my project....Thanks inadvance.

ppblaauw’s picture

Your template.php file looks Ok to me.

The debug lines should just show up on the pages where the ddblock block is enabled, but I don't see them.

Did you set permissions to view dynamic display block blocks for other users then user 1?

Can you tell me what configuration settings you have for the block?

happydrupal’s picture

StatusFileSize
new27.73 KB
new15.32 KB

Gee, I forgot to set the permission of these CCK fileds............... :p Now everybody can see the 6 fields.

But the ddblock still get nothing......

The role specific visibility settings of these 2 blocks had been checked for all roles except anonymous user. As for the News item slideshow in View, the access is unrestricted. Please see attached.

I think the "filefield" 6.x-3.0-rc1 should be the problem since the function call is pretty different with the previous version. The other module Video Upload which using the same filefield module had been experienced the same problem.

Hope this helps............ Thanks again.

ppblaauw’s picture

I still don't see any debug lines.
The changes in filefield and imagefield happend between alpha and beta version.
This is already changed in the new download files for the ddblock module. This is not the issue.

Can you clear the cache at administer > site configuration > performance

You should see the debug lines

happydrupal’s picture

Thanks...

I'm using the default setting at administer > site configuration > performance......with only Page compression enabled. I still can not see any message show up on the page after the cache cleared.

I'm using FireFox with Firebug, and just uncomment the following lines as well, but where can I find the returned message? Is this help?

    dsm($vars['settings']['view_name']);  
    dsm($vars['content'][0]);

BTW, I did set permissions to view dynamic display block blocks for other users. That's why you can see the block title "ddblock-News item slideshow" with nothing inside above the "News item slideshow" block.

Hope there's some clue for you...........

ppblaauw’s picture

If you uncommented the dsm functions in the preprocess functions in the template.php file and you don't have the devel module enabled you should get an error message. so it looks like your template.php file is not used. If you use the devel module also these debug lines should show up in the page where the block is enabled.

Did you uncomment them in firefox or in the template file themselves? (maybe stupid question)

happydrupal’s picture

You must be kidding...............uncomment in firefox .......... :p

I'll try devel module and update you asap. Thanks!

happydrupal’s picture

Also tried the other 2 themes.......Garland and Colorpaper...............didn't work, neither.

Trying to figure out what's going on in devel module. Stay tuned............

happydrupal’s picture

StatusFileSize
new4 KB
new6.91 KB

More investigation found that I did marked the theme credit in template.php of theme "colourise" already. The credit returned if I unmarked these line in template.php. So I'm pretty sure that Drupal did find the template.php, but didn't go through the part to get $slider_item.

//** marked by Jeff
//  $vars['closure'] .= '
//  <p id="theme-credit">'. t('Original Design is ') . '<a href="http://www.styleshout.com/templates/preview/Colourise1-0/index.html">StyleShout\'s  Colourise</a>. | ' . 
//  t('Ported to Drupal by ') . '<a href="http://webzer.net/">Webzer.net</a>.</p>
//  ';
//  $vars['closure'] .= '';

BTW, I did have a multisite setup. The other 2 no display themes, Garland was in the /sites/all/themes and Colopaper was in /sites/mdb.happypig.tw/themes as "Colourise".

Are the above help for debug????

P.S. It's too bad that devel didn't have any documentation.....................Can't see anything............... ^^|||

happydrupal’s picture

Just got into the Holy Temple of devel with user/1...............................My God.......It's full of stars......................

Where can I find the result of the drupal_set_message debug lines?????

Thanks again.

ppblaauw’s picture

So, now we are sure the template.php file gets called by the theme system

Could you add the following lines at the top of the content preprocess function in your template.php file

    drupal_set_message('<pre>' . var_export($vars['settings']['view_name'], true) . '</pre>');
    drupal_set_message('<pre>' . var_export($vars['content'][0], true) . '</pre>');

Before the if statement

So we are more sure this will be called

And yes, devel helps a lot

ppblaauw’s picture

Light is shining after all...

Why did I not see this before in the error message that the file called is

/home/happypig/public_html/sites/mdb.happypig.tw/modules/ddblock/ddblock-cycle-block-content-upright10.tpl.php

The upright themes should be installed in the folder of the theme you use

So I expect it in

/home/happypig/public_html/sites/mdb.happypig.tw/themes/colourise/....

You need to install the custom folder from the download of ddblock.myalbums.biz in the theme folder of the theme you use at the folder mentioned above

I think this causes the issue

happydrupal’s picture

Ah.................................You're right!

The view with pager finally showed up after I reinstall the custom folder into the default themes folder. Sorry for causing troubles.

Now, the title and slide text rotated well, but only a Grey background displayed without the image and "the read more..." link didn't work.

Any suggestion? Thanks in advance.

happydrupal’s picture

StatusFileSize
new18.86 KB
new24.08 KB

The grey DDB block totally different in IE. How wired!! Please see attached.

Should I move to the other thread for the rest part since it looks not the filefield problem anyway?

ppblaauw’s picture

You need to disable the next checkbox in the configuration page to make the readmore button work.

Can you uncomment the drupal_set_message debug lines so I can see what the fieldname for the image needs to be.

happydrupal’s picture

uncomment the debug lines returned the following message.

    *

      'news_items'

    *

      stdClass::__set_state(array(
         'nid' => '40',
         'node_title' => 'Fontpage promo rotating image 6',
         'node_data_field_pager_item_text_field_pager_item_text_value' => '6',
         'node_data_field_pager_item_text_nid' => '40',
         'node_type' => 'ddblock_news_item',
         'node_data_field_pager_item_text_field_slide_text_value' => '

      slide text of Fontpage promo rotating image 6
      ',
         'node_data_field_pager_item_text_field_image_fid' => '45',
         'node_data_field_pager_item_text_field_image_list' => '1',
         'node_data_field_pager_item_text_field_image_data' => 'a:3:{s:11:"description";s:0:"";s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
         'node_revisions_body' => '

      body of Fontpage promo rotating image 6
      ',
         'node_revisions_format' => '1',
         'node_created' => '1240127675',
      ))

Any clue? Thanks again.

ppblaauw’s picture

You need to change the imagefield (4 x) in the preprocess functions.

find ..._fid

and change to

node_data_field_pager_item_text_field_image_fid
happydrupal’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Great!! Case closed.........Evan though I have to figure out what's going on with the replacement. Anyway, the display is Awesome!!!

Now leave me a homework to study documentation again and again to discover the magic power of DDB.

Many thanks to this great module!!! Thanks for your great documentation!!!

happydrupal’s picture

Also, great thanks for your patience to debug with the rest of us. Great Job.

khan2ims’s picture

Oh great!

I gave in my half of the day finding out why images don't show up. And change of
node_data_field_pager_item_text_field_image_fid

Solved the problem! Thanka a lot!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Imran Khan
Project Manager
New Earth Marketing