Hi
Thanks for the module.
I follow your tutorial with a node type of mine
I get this message:
warning: Invalid argument supplied for foreach() in C:\wamp\www\afterfoot\sites\all\themes\newswire\custom\modules\ddblock\ddblock-cycle-block-content-upright50.tpl.php on line 42.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | variables.txt | 3.94 KB | Roulion |
Comments
Comment #1
Roulion commentedShall the fiels have the exact name you say or can be named differently?
Comment #2
Roulion commentedOK i got it... I miss the preprocess functions i have to insert in the template.php file.
Please may you deliver it?
Thanks
Comment #3
Roulion commentedOK i get it however, images don't display. In the field i customized the file path with some thing like "news/[nid]", (from dthe files directory)?
I use the 6.x-3.0-alpha2 version of Imagefield module and the 6.x-3.0-alpha5 version of the filefield module
Comment #4
shijmus commentedI upgraded from previous release, and now the image doesn't display too, it worked before
Comment #5
dropchew commentedFirst time user. I followed the tutorial for creating recent comments block and its not working. Just showing the block titile...
Update: installed RC2 and its working now
Comment #6
ppblaauw commentedDropchew: Please open a new issue for this.
Comment #7
ppblaauw commentedShijmus: please open a new issue for this.
Edit: See issue http://drupal.org/node/351453 for patch
Comment #8
ppblaauw commented1.) I don't understand your problem but...
You should only have to change:
node_data_field_pager_item_text_field_image_fid
twice
if you have a different view field name for your imagefield
You can uncomment the lines at the top of the preprocess functions to see your view field names
2.) We use the same version for the Imagefield and the filefield modules
Can you send a link to your website so I can help you better.
You can do this on my contact form
Comment #9
Roulion commentedppblaauw, actually, i created a special node type to test it... with exactly the same fields with the same names (except Title which is Titre and Body Which is Corps) and the same settings as you told... Idem for the view and the ddblock settings.
As far as, i see, maybe the problem comes from the query which is in the template.php file. To catch the picture the query looks like "SELECT field_image FROM {files}..." The "{files}" table does'nt exist...
Comment #10
ppblaauw commentedThe files table is the standard files table of a drupal installation where file/image information is stored.
Have a look at your database and you will find the table.
If you can, send a link to your site so I can help you better.
Comment #11
Roulion commentedsorry I can't it's only on local. I am migrating an existing site to drupal...
I think the point is here. I tell you on friday. I can't chek it before
Comment #12
bejayoharen commentedI get this error as well. I have installed the preprocess functions, and tried renaming them. I use minnelli as my theme, although I've modified it slightly. I have renamed the functions as described so that they are named, for example "minnelli_preprocess_ddblock_cycle_pager_content". I also tried "garland_preprocess_ddblock_cycle_pager_content" (because garland is the "parent" theme of minnelli) and it's clear that although the template file is used (because if I mess up the syntax my whole site breaks :), those functions are never called (I uncommented the drupal_set_message lines).
Any help appreciated.
Thanks
Comment #13
ppblaauw commentedBejayoharan:
I don't know what the problem can be. I need some more information.
The name with minnelli is ok.
Can you send a link to your site, so I can help you better?
You can do it on my contact form.
Comment #14
bsod commentedOne of the solutions(probably not the easiest one;P) is to upgrade your drupal to at least v6.7, because since this version, preprocess functions are handled differently and ddblock rc3 is using this new preprocess functions - http://drupal.org/node/223430 . I'm not able to check if it works because I've already done the upgrade, but maybe copying template.php to themes/your_theme/custom/modules/ddblock will work?
Comment #15
ppblaauw commented#14 The Dynamic display block module does NOT need an upgrade of Drupal core to version 6.7 to work.
As I understand node http://drupal.org/node/223430 : for version 6.7 and above of Drupal core you do not need to copy the templates form a module anymore to your theme to get your preprocess functions recognized. In the case of the Dynamic display block module we provided copies of the ddblock templates in the theme package for the upright theme. So it will also work with older versions of Drupal 6. From Drupal 6.7 and above you would not need a copy of the ddblock template files anymore to get the preprocess functions recognized (Will try this out and confirm later).
#12 Issue solved by clearing the cache.
Comment #16
bsod commentedYou're right, I misunderstanded node linked by me, my bad.
Comment #17
bejayoharen commentedI was able to fix this thanks to help from ppblaauw. I mucked around a bit with my cache settings, including turning block caching off and on again, but I'm pretty sure all that was needed was to clear the cache. D'oh!
One more note for posterity: I was upgrading from RC2.
Thanks for the help!
Comment #18
Roulion commentedwell, i try o mdify the query but there is no results.
If i print the variables and settings i get this
I don't understand why the query to get the filepatch doesn't work
Comment #19
ppblaauw commentedRoulion,
Your fid field name is:
In the example we provide it is
So you have to change this in both preprocess fuctions to your field name:
like
Hope this helps you further
If not can you also send your preprocess funtions.
I think your have almost successfully installed and configured the module
Philip
Comment #20
Roulion commentedok thank you... it works
Comment #21
ppblaauw commentedSet status to fixed.