hi:
i have the image_attach option activated with a story content type. I attach one image and it shows as a thumbnail...very nice.
Now the user clicks on the thumbnail and it goes to the node page where i want to show the full image and not show the thumbnail.

how to do this?

thanks in advice

here i have it installed http://64.13.213.116/drupal/audio/one-more
but it is only showing the thumnail image

Comments

rzelnik’s picture

Try this:

modules/image/contrib/image_attach/image_attach.module

find the "theme_image_attach_body" function (at the end)

replace
$info = image_get_info(file_create_path($image->images['thumbnail']));
by
$info = image_get_info(file_create_path($image->images['preview']));

and
$output .= l(image_display($image, 'thumbnail'), "node/$node->nid", array(), NULL, NULL, FALSE, TRUE);
by
$output .= l(image_display($image, 'preview'), "node/$node->nid", array(), NULL, NULL, FALSE, TRUE);