Comments - Tiny change in action.count_comments.php

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Cygnus
New Member
New Member
Posts: 3
Joined: Sat Nov 22, 2008 11:01 am

Comments - Tiny change in action.count_comments.php

Post by Cygnus »

Hi everbody,

I juste replace

Code: Select all

echo $num_rows;

with

Code: Select all

if ($num_rows == 0) {
  echo "no comment";
}
elseif ($num_rows == 1) {
  echo "$num_rows comment";
}
else { 
  echo "$num_rows comments";
}
at the end of the file.

My 20 cents.
inyerface
Forum Members
Forum Members
Posts: 191
Joined: Mon Nov 26, 2007 4:46 pm

Re: Comments - Tiny change in action.count_comments.php

Post by inyerface »

For what outcome?  I'm sure it's great and me search for "Comment count" returned this post. So what does it do exactly?
Post Reply

Return to “Modules/Add-Ons”