Page 1 of 1

Getting rid of comment count in comment post

Posted: Wed Jan 10, 2007 6:08 am
by quietdomino
On the right side of each comment that's posted to my site is the following:

Comment (1)

How can I get rid of this. I looked everywhere for what might be generating it, but I am at a loss. I use the competition template, which does not have a comments.tpl, so then I looked in the default and didn't see what it might be.

Thanks for any assistance.

jason

Posted: Wed Jan 10, 2007 9:35 am
by Davy
What do you want to change? Only the numbers? Or the whole text?

Posted: Wed Jan 10, 2007 9:49 am
by garvinhicking
Hi!

This text is BTW contained in "entries.tpl", not "comments.tpl"! Look for "label_comments".

HTH,
Garvin

Posted: Thu Jan 11, 2007 1:31 am
by quietdomino
I found that, but that isn't what I want to get rid of. Within the text of each comment that gets posted, "comment (1)" appears on the right-hand side.

I obviously want to keep the number of comments, etc., at the end of an entry. But, if possible, I would like to lose this small piece of text from each comment itself. I can't seem to find any code for that.

This is the HTML from right-clicking View Source, with the highlighted code representing what I would like to lose.

<div class="serendipity_commentsTitle">Comments</div>
<p> <a id="c2"></a>
<div id="serendipity_comment_2" class="serendipity_comment serendipity_comment_author_jason comment_oddbox" style="padding-left: 0px">
<div class="serendipity_commentBody">some more dummy text. some more dummy text.
<div class="serendipity_commentcount">Comment (1)</div></div>
<div class="serendipity_comment_source">
<a class="comment_source_trace" href="#c2">#1</a>
<span class="comment_source_author">
jason
</span>
on
<span class="comment_source_date">2007-01-09 17:04</span>

Posted: Thu Jan 11, 2007 10:04 am
by garvinhicking
Hi!

Hm, that line

<div class="serendipity_commentcount">Comment (1)</div>

Is not contained in the default comments.tpl. Which theme are you using exactly? It seems to be specific to that theme, and then you should find the text in this comments.tpl?

Best regards,
Garvin

Posted: Fri Jan 12, 2007 1:37 am
by quietdomino
I'm using the competition theme, which does not have its own comments.tpl. I couldn't find this code in the entries.tpl or in the default comments.tpl. Is there another place I can look where this might be pulling code from to generate this?

I'm at a loss.

Posted: Fri Jan 12, 2007 9:12 am
by garvinhicking
Hi!

Hehe, this seems to be a feature of the "Userprofiles" plugin. In its configuration you can disable showing the comment count of authors. :-)

Best regards,
Garvin

Posted: Sat Jan 13, 2007 5:39 am
by quietdomino
That did it! Nothing like an easy answer that I can't believe I didn't think of. I appreciate the help.