Hi,

Everything seems fine using imagecache presets in nodes and user profiles, but I can't seem to get a preset to work properly in comments. In my comment.tpl.php I have the following

  if($user->picture) {
    print theme('imagecache', 'user_image_comment', $user, $image_filepath, $alt, $title, $attributes);
}
else { print '<img src="/sites/default/files/pictures/default.gif"/>';}

Could anyone point out how I can get this to work in comments? Similar code to above seems to work in node templates but not the comment template.

Thanks for any help.

Comments

fizk’s picture

Status: Active » Closed (fixed)

Please reopen if this is still an issue with ImageCache 6.x-2.0-rc1.