<?php if ($first_page) { ?> <div class="user"> <?php $account = user_load(array('uid' => $uid)); $user_image = boincuser_get_user_profile_image($uid); if ($user_image['image']['filepath']) { print '<div class="picture">'; //print theme('imagecache', 'thumbnail', $user_image['image']['filepath'], $user_image['alt'], $user_image['alt']); print theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false); print '</div>'; } // Generate ignore user link $ignore_link = ignore_user_link('node', $node); //echo '<pre>' . print_r($node->links, TRUE) . '</pre>'; ?> <div class="name"><?php print $name; ?> </div> <?php if ($account->uid) { ?> <div class="join-date">Joined: <?php print date('j M y', $account->created); ?> </div> <div class="post-count">Posts: <?php print $account->post_count;
<div class="user"> <?php $account = user_load(array('uid' => $comment->uid)); $user_image = boincuser_get_user_profile_image($comment->uid); if ($user_image) { print '<div class="picture">'; if (is_array($user_image) and $user_image['image']['filepath']) { //print theme('imagecache', 'thumbnail', $user_image['image']['filepath'], $user_image['alt'], $user_image['alt']); print theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false); } elseif (is_string($user_image)) { print '<img src="' . $user_image . '"/>'; } print '</div>'; } // Generate ignore user link $ignore_link = ignore_user_link('comment', $comment); //echo '<pre>' . print_r($links, TRUE) . '</pre>'; ?> <div class="name"><?php print $author; ?> </div> <?php if ($account->uid) { ?> <div class="join-date">Joined: <?php print date('j M y', $account->created); ?> </div> <div class="post-count">Posts: <?php print $account->post_count;