Hello, all,

I'm doing some work on a custom theme, and I'm trying to figure out how to call some comment-dependent statements. For example,

-- I want to show the number of comments for a given node
-- If there are no comments for a given node, I want to prompt the user to comment
-- I want to show the comment number for a given thread (i.e., Comment #1, Comment #2, etc.)

I just spent the last hour reading through past forum posts, and spent some time before that picking through a couple of themes for inspiration, but so far, no dice. Could someone point me in the right direction?

Thanks in advance,
Grant

Comments

roopletheme’s picture

As far as the comment count goes, we've used this code in node.tpl.php with success:

  <?php if ($comment_count) { ?>
	<span class="comments"><?php print $comment_count?> Comments</span>
  <?php }; ?>

www.roopletheme.com

bardkerbie’s picture

I'll give that a try.