Results 1 to 4 of 4

Thread: numeration comments

  1. #1
    User
    Join Date
    05-02-10.
    Posts
    121

    Default numeration comments

    how make that?
    numeration comments

    1.
    2.
    3.
    ...
    sorry for my english

  2. #2
    User
    Join Date
    05-02-10.
    Posts
    121

    Default Re: numeration comments

    help me! please!
    sorry for my english

  3. #3
    User
    Join Date
    04-10-11.
    Posts
    162

    Default Re: numeration comments

    Don't know if there is a better way, but this is how I would do it.

    Copy the ce_comments template from "/system/modules/comments/templates" to the templates folder in your root directory. Then edit the file to output a number with each comment. For example:

    Code:
    <?php 
    
    $comment_count = 0; 
    
    foreach ($this->comments as $comment): ?>
    
    <span class="comment_number">
    <?php $comment_count++; echo $comment_count; ?>.
    </span>
    
    <span class="comment_text">
    <?php echo $comment; ?>
    </span>
    
    <?php endforeach ;?>
    This would output a number with each comment, incrementing by 1 each time. You would need to do a bit of coding as you can see. I don't think there is any inbuilt way to do it. I hope that helps

  4. #4
    User
    Join Date
    05-02-10.
    Posts
    121

    Default Re: numeration comments

    thanks!!
    I thought that there is a native way
    sorry for my english

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •