Getting rid of comment count in comment post

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
quietdomino
Posts: 4
Joined: Wed Jan 10, 2007 5:26 am

Getting rid of comment count in comment post

Post 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
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

What do you want to change? Only the numbers? Or the whole text?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
quietdomino
Posts: 4
Joined: Wed Jan 10, 2007 5:26 am

Post 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>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
quietdomino
Posts: 4
Joined: Wed Jan 10, 2007 5:26 am

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
quietdomino
Posts: 4
Joined: Wed Jan 10, 2007 5:26 am

Post by quietdomino »

That did it! Nothing like an easy answer that I can't believe I didn't think of. I appreciate the help.
Post Reply