Closed (fixed)
Project:
ImageCache
Version:
6.x-2.0-beta9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2010 at 21:51 UTC
Updated:
3 Jun 2012 at 00:12 UTC
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
Comment #1
fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.