Sorry about my messed up post earlier. Let me start all over:
My site's View Online. I'm trying to make it so that users' avatars show up next to their node/comment, like LiveJournal. I've installed profile.module which adds support for avatars. With heavy muddling, I managed to edit the Trip theme main file to include this script below.
It seems to be working, but only partially. It works only for users #2 and #3, but not for anyone else. Could anyone look at this code please and maybe troubleshoot?
Thanks!
[!-- Inserts Avatar picture here. --]
$filename = profile_avatar_path($node->uid,".jpg");
print "[img class=\"avatar\" src=\"";
if (!file_exists($filename)) {
$filename = profile_avatar_path(1, ".jpg");
}
print $filename;
print "\" align=\"top\"]";
print strtr(t("%a | %b"), array("%a" =] format_name($node), "%b" =] format_date($node->created, "medium"))); $
[/td]
[td][/td]
[td align="right" valign="top" class="node-taxonomy"]
[?php
if (module_exist("taxonomy")) {
$terms = taxonomy_link("taxonomy terms", $node);
}
print $this->links($terms);