Hi,
I have followed the tutorial twice over and cannot seem to get the images I uploaded for my content type to show in the completed ddblock. I imported the news_items view from as per the tutorial (using export files). I then created a ddblock instance using the content type and views block. Then configured the block with cycleblock and selected a template. All that appears is a grey box with a red read more button and transition slider text - so it is going from one node to the next but just not showing the image.
I also tried to use my own custom template so I could style the box the way I would like but if I select custom and paste the name of my custom template (taken from the tutorial here: http://ddblock.myalbums.biz/node/773) nothing shows up at all. I know I am probably missing something obvious but don't know what
Take a look here to see my example: http://www.sareequeen.co.uk/drupal-6.20/
Any help appreciated. :)
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | template.php__2.txt | 9.46 KB | ppblaauw |
| #6 | template.php_.txt | 9.49 KB | kristin.e |
Comments
Comment #1
ppblaauw commentedPlease have a look at the faq: http://ddblock.myalbums.biz/faq#19n881
Hope this helps you further, please let me know.
Comment #2
kristin.e commentedHi, thanks for your reply. I have put the code you suggested in another similar post (http://drupal.org/node/433754) before the 'if' statement in the preprocess function to get the debug output to appear. I also uncommented the dsm lines at the top of the content preprocess function.
I then replaced all instances of '$result->node_data_field_pager_item_text_field_image_fid' with '$result->node_data_field_image_field_image_fid' - there were only two, but still no result. Just the same grey box with changing slider text and pager - but no images.
Here is the debug output after doing all of the above:
Thanks again
Comment #3
ppblaauw commentedProbably you also have to change the node_data_field_slide_text_field_slide_text_value to get the slidetext show up
For the image, do you have the content permission (sub)module of cck enabled?
Did you giver permissions for anonymous users to view the imagefield field?
Comment #4
kristin.e commentedHi, thanks for speedy reply again. I do have both content permissions of cck enabled and anonymous users can see imagefield too.
I did a search in the preprocess functions for 'node_data_field_slide_text_field_slide_text_value' but there is nothing like that there. Where would I change this and how, as I am guessing this is the slide text field in the content type I created.
Comment #5
ppblaauw commentedProbably the variable for the slide_text is now:
$result->node_data_field_pager_item_text_field_slide_text_valuechange to:
$result->node_data_field_slide_text_field_slide_text_value---
The NULL value you see should be the view name used for the slideshow
Do you use the news_item view from the export file or did you make your own view?
When you use your own view, you will need to change the viewname in the preprocess function to the view_name used for the slideshow
Can you attach your template.php file?
Comment #6
kristin.e commentedHi, I attached is my template.php file.
Comment #7
ppblaauw commentedOnly the preprocess function for the pager was changed, but you have no pager enabled with the slideshow.
I changed also the variable names for the "content preprocess" function.
you can overwrite your existing template.php file with this one
rename to template.php
See attachment
Comment #8
kristin.e commentedHi, thanks for sending that new template - the preprocess functions I used were copied straight from the Export_files1.6, so not sure if there is something missing re. the imagefield from those. I have copied the new template over but there are still no images showing. Now I am really stumped....
Thanks for your help so far. Any more help appreciated.
Comment #9
ppblaauw commentedThe preprocess functions where both there, only the variable names needed to be changed in both preprocess function (the preprocess function for the content and the preprocess function for the pager)
One step further.
Links to the images are there now, but somehow the images are not found. (e.g)
http://www.sareequeen.co.uk/drupal-6.20/sites/default/files/hippie-in-vi...
Maybe no rights on the server to read images.
Comment #10
kristin.e commentedI will check that out with host?
Another question I had is that when I upload a custom template - no gray box, slider text or anything else appears. Would it be a ok to simply alter one of the templates' associated css files instead of uploading new custom template.
Thanks for all your help with this so far :)
Comment #11
ppblaauw commentedWhen you add one of the other ddblock slideshow themes to the folder sites/all/themes/[theme_name]/custom/modules/ddblock you need to clear the cache, so the drupal theming system can detect the new tpl.php files.
You can also adjust the css of the upright slideshow themes.
Comment #12
kristin.e commentedThanks, I did clear the cache but still nothing showed up. I will try and create custom theme from scratch again - maybe I missed something. I have contacted my host re. missing images on ddblock slideshow - still waiting for reply.
Comment #13
kristin.e commentedHello again, I have contacted host and they have assured me that server has rights to read images. Funny thing is when I went into Edit nodes of each image and text item, the image is quite clearly there and when I chose Default (not Cycleblock) - one image was displayed.
I then deleted the images from the server and uploaded them again and Voila they started appearing - so I really don't know why that happened. Now I will tackle the custom theme issue.
Thanks again for tireless support :))))))
Comment #14
ppblaauw commentedSee the images at your site now.
Set status to fixed.