Different User Picture Size for Nodes and Comments
Deathlock - March 30, 2008 - 06:59
Have been wondering lately. It is possible to make the dimension of the picture shown on the nodes differs from the one on the comments? For instance, on nodes I have my user picture size sets as 100 x 100, but when I post on comments, it will be displayed as 50 x 50.
So much more like Wordpress, I guess...
Thanks for your help.

Lullabot had a tutorial on
Lullabot had a tutorial on how to achieve this with Imagecache module (it almost worked for me.).
Try googling for it.
Woah, that one is a big
Woah, that one is a big tutorial to learn, as for me, I'm not really a coder. But, thanks, I'll try. :D
try it out. And pay
try it out. And pay attention to the codes submitted in the comments because they work better!!!
I'm not a coder myself, but if you have patience, it's not that difficult to follow that tutorial
I have this set up on my
I have this set up on my site. Maybe it's not the right way to do it but I just used CSS.
I use a node-forum.tpl.php template file and this is part of it:
<?php if ($node->picture) : ?><div class="user-pic" style="text-align:center;"><img style="max-width:80px;border:1px solid black;" src="/<?php print $node->picture; ?>" alt="userpic"></div>
<?php else: ?>
<div class="user-pic" style="text-align:center;"><img src="http://www.mysite.com/images/default-member-pic-sm.png"></div>
<?php endif; ?>
I use the max-width to alter the user pic size (it gets reduced proportionally, height and width) and I also have a "sm" (small) default member pic getting put in there if a user doesn't have a picture uploaded. Works great for me.