Comment Count

Comment Count

Using most-commented.php, the above picture shows what it looks like with the comment count in it. Below is the code that adds that:

[xhtml]$mdv_most_commented .= $before . ‘<a href=”‘ . $permalink . ‘” title=”‘ . $post_title.’”>’ . $post_title . ‘</a> (‘ . $comment_count.’)’ $after;[/xhtml]

To remove the comment count replace the above with :

[xhtml]$mdv_most_commented .= $before . ‘<a href=”‘ . $permalink . ‘” title=”‘ . $post_title.’”>’ . $post_title . ‘</a>’. $after;[/xhtml]

It will look like:

Comment Count Removed

Comment Count Removed

Popularity: 98% [?]

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
6 Responses
  1. Craig says:

    Thanks for this Erica.

    I keep coming back to this page every time they update the most-commented script!

    Its a real pain. They should make it a feature to turn off or on!

    • admin says:

      LOL Craig, I run into the same problem you do with that. Turning on or off would be a great idea for them! Glad this page helps you out!

  2. PiterKokoniz says:

    Hello ! ^_^
    My name is Piter Kokoniz. Just want to tell, that your posts are really interesting
    And want to ask you: is this blog your hobby?
    Sorry for my bad english:)
    Tnx!
    Your Piter

  3. Lalacesk says:

    I should email you about this.

  4. Ascepay says:

    well.. it’s like I knew!

  5. erica says:

    well, looks like I came back and used this again!
    erica´s last blog ..Window Spider

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Please understand with hundreds of SPAM comments, it takes a while to sort through to approve the good comments. Sometimes, by accident, some good comments accidentally get marked as spam. Please let us know if your comment did not get posted. Also, if your comment has a link to it or anything else in it that would make it seem like spam, it will be deleted. So please post a real comment and not one that is only made to link to a site only. Otherwise, it could get deleted.