Image thumbnails not displaying in node

rl00001 - April 16, 2009 - 13:02
Project:Image Upload
Version:6.x-1.2
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I cannot seem to get the image thumbnails to display on the created node. They display when I am uploading them, but not when I view the node. I have tried EVERYTHING I can think of (taxonomy settings for each content type, view permissions etc...). I am using Drupal 6.10 with Views 2, CCK, & Taxonomy. Any help would be greatly appreciated.

#1

suffering drupal - April 18, 2009 - 00:11

yeah, same problem here...
I was happy to finally find this just-one module, seems to do just what is needed. But yeah, it does not show either thumbnails or previews... rather inconvenient....

Went through:

- Album Photo
which is nice but doesn`t follow the main structure and has some other minor element

- imgupload
which gives a security warning and is most ugly although functional

- image-fupload
downloaded but not tried yet: seems too use to much stuff, too complicated and sophisticated

I think Image upload would be preferable, if only it would show some images... I am sure we must be missing something simple. I'll go check again before trying FUpload.

#2

rl00001 - April 20, 2009 - 08:38

The images are in the node but are not being output in the html correctly. Is this intended? I've found a temporary solution by using php (input filter) code in the body:

<?php
if ( arg(0) == 'node' && is_numeric(arg(1)) && ! arg(2) ) {
 
 
$node = node_load(arg(1));

  foreach(
$node->images as $fid => $image) {
      echo
$image->img_html;
  }

}
?>

Can't guarantee works 100%, but worked for me!

#3

bojanz - April 22, 2009 - 09:47

Hi guys,
I've returned from a trip and will look into your problems ASAP.

Cheers,
Bojan

#4

suffering drupal - April 26, 2009 - 01:14

Hi Bojan, welcome back from your trip and I hope you enjoyed.

I had the same issue with imgtax, thumbnails wouldn't show up. There it turned out to be a missing / in the path, see: http://drupal.org/node/430116#comment-1517550
I thought here it would be the same, but when activating Image Upload all images (thumbnails and previews) just disappear (except from the adjusted imgtax-page) from the source code, not just a missing slash...
Fortunately images return on de-activating.

Good luck in solving the mystery ;)

#5

suffering drupal - April 26, 2009 - 01:11

Hi Bojan, welcome back from your trip and I hope you enjoyed.

I had the same issue with imgtax, thumbnails wouldn't show up. There it turned out to be a missing / in the path, see: http://drupal.org/node/430116#comment-1517550

I thought here it would be the same, but when activating Image Upload all images (thumbnails and previews) just disappear (except from the adjusted imgtax-page) from the source code, not just a missing slash...

Fortunately images return on de-activating.

Good luck in solving the mystery ;)

#6

mouthings - May 26, 2009 - 23:20

I don't know if this is the same when working with Views, but from looking at the code I don't think this module will automatically display an uploaded image in a node view because it doesn't implement a 'view' operation in the 'hook_nodeapi' (in the way that image attach does for example).

#7

bojanz - May 27, 2009 - 11:08

Yes, looks to me that some of you expected the images to turn up by themselves. On the project page there's a code example showing you how to add images to a node.

 
 

Drupal is a registered trademark of Dries Buytaert.