Hey...am finally almost finished building my new site with Drupal. I've run into a small issue, though...it's with the user badges module. There's a piece of code to insert where you'd like user badges to be displayed:
<?php print user_badges_for_uid($uid); ?>
I inserted it directly below where the avatar is displayed in my theme, in the node-forum.tpl.php file (I'm using Friends Electric, with the Flatforum module). So far, so good. The user badge displays in the topmost post, but not in any of the comments below it. So, if I (as admin) start a topic, my admin badge appears in the first post, but not in any of the replies I make.
I have not tested this with the other badge I set up (for moderators), or for regular members. My account is the only one setup, so far.
Am I hitting a bug, or missing a spot in the theme?
Erm...not sure if I'm giving enough information. Here's the contents of me node-forum.tpl.php file:
if (!_is_forum()) {
include('node.tpl.php');
return;
}
$curr_user = user_load(array('uid' => $userid));
$sig = $curr_user->signature;
print $row_class; print $comment->new ? ' comment-new forum-comment-new' : ''; ">
print $name
print $picture
print user_badges_for_uid($uid);
if (module_exist('flatforum')):
print t('Posts:') . ' ' . $posts;