ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

how to Number Comments

May 04, 2009 7:18pm

Subscribe [6]
  • #1 / May 04, 2009 7:18pm

    Luke101

    10 posts

    Just wanted to know how do I number comments.
    Here is the problem URL:
    http://www.listsergeant.com/site/index.php/content/article/top_10_shortest_living_organisms/

    as you can see the comment item count numbers are all “1”. I need to number all comments. How do I do that.

    I also need the total comment count.

  • #2 / May 04, 2009 7:27pm

    Ryan Irelan

    444 posts

    What code are you using to display the count?

    {count}

    should show the comment count per page and

    {absolute_count}

    will show the count regardless of pagination.

  • #3 / May 04, 2009 8:41pm

    Luke101

    10 posts

    This is what I need:

    Comment #1
    cool site man

    comment #2
    Nice article

    comment #3
    this article sucks

    comment #4
    What is up with comment 3

  • #4 / May 04, 2009 8:57pm

    Luke101

    10 posts

    ok figured it out

  • #5 / May 27, 2009 2:47pm

    grrramps

    2219 posts

    What code are you using to display the count?

    {count}

    should show the comment count per page and

    {absolute_count}

    will show the count regardless of pagination.

    Is there a way to reverse the absolute_count in a stack of comments that is sorted in descending order? Using absolute_count with comments that have the most recent on top gives it number #1 instead of, say, #27.

  • #6 / Jul 19, 2009 4:21am

    James Mattison

    8 posts

    ok figured it out

    I’m having exactly the same problem, how did you solve it?

  • #7 / Jul 19, 2009 4:50am

    serafico

    58 posts

    {absolute_count}

    does the magic.

  • #8 / Nov 11, 2009 2:24am

    Marc Tiedemann

    119 posts

    Is there a way to reverse the absolute_count in a stack of comments that is sorted in descending order? Using absolute_count with comments that have the most recent on top gives it number #1 instead of, say, #27.

    Having the exact same question…

  • #9 / Nov 11, 2009 2:37am

    grrramps

    2219 posts

    Is there a way to reverse the absolute_count in a stack of comments that is sorted in descending order? Using absolute_count with comments that have the most recent on top gives it number #1 instead of, say, #27.

    Having the exact same question…

    It’s probably easily solved by another adventure of the problem solving PHP Man.

    If only I could spell PHP.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases