place this in the header of the xtemplate.xtml place this function in the xtemplate.theme //$Id: image.module,v 1.74.2.3 2003/11/27 08:14:24 bruno Exp $ //L 1385 function image_inline_img($img) { global $base_url; $node=node_load(array("nid"=>$img->nid)); $width = $node->width + 20; $height = $node->height + 20; //$output = l("thumb_path\" align=\"$img->align\" border=\"$img->border\" hspace=\"$img->hspace\" vspace=\"$img->vspace\" alt=\"$node->title\" />", "$node->image_path", array("target"=>"generator","onClick"=>"imagepop($height,$width,'$node->title','$base_url/$node->image_path')")); $output = "title','$base_url/$node->image_path')\">thumb_path\" align=\"$img->align\" border=\"$img->border\" hspace=\"$img->hspace\" vspace=\"$img->vspace\" alt=\"$node->title\" />"; return $output;