Display User Picture on some pages according to content type
Last modified: March 19, 2009 - 15:20
Altering the node.tpl file can be used to control where user pictures appear (provided that you have turned them on in User Settings and Theme of course).
For example I had a site which comprised formal pages where avatars were NOT wanted, and a Forum where they were.
In English this means "if the user has a Picture AND the page content TYPE is a FORUM POST - print the picture" (and if it's any other part of the site, then don't print the picture...).
<?php if ($picture && $type == 'forum') {
print $picture;
}?>