I'm trying to print a custom user field (field_avatar) image as a replacement for the user picture. Why? user picture file directory would not accept tokens. This mean, I could run into a scenario where there are 100k files in a directory slowing the website!
From googling answers for hours, this is the best solution I've read.
In comment.tpl.php placed in my custom omega 4 subtheme, I added this code.
<?php print render(field_view_field('user', $user, 'field_avatar')); ?>
However, above code prints the default field_avatar picture! not field_avatar based on the comment ID? or UID of the author?
Please shed some wisdom smart ones!