ThemeShaper Forums » Thematic


Comments list > Numbered

(3 posts)
  • Started 10 years ago by patrick
  • Latest reply from patrick
  • This topic is not resolved
  1. patrick


    I start using Thematic and everyday realise it is a really powerful framework ! I love it.

    But sometimes it gets too complex for my php level, that's why I need your help to get the comments list to display the comment number. I saw a post here on the forum about threaded comments to be numbered, but it uses a plugin and above all, it's not what I'm looking for. I know it has to deal with the thematic_comments function, something like this may work but I'm a php novice so a little help ? :)

    <!-- function wprv_comments($comment, $args, $depth) {
        $GLOBALS['comment'] = $comment;
    	$GLOBALS['comment_depth'] = $depth;
        	<?php $i =1; ?>
        	<?php foreach ($comments as $comment) : ?>
        	<li id="comment-<?php comment_ID() ?>" class="<?php thematic_comment_class() ?>">
        		<div class="comment-number"><?php echo $i; ?></div>
        		<div class="comment-author vcard"><?php thematic_commenter_link() ?></div>
        		<div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'thematic'),
        					'#comment-' . get_comment_ID() );
        					edit_comment_link(__('Edit', 'thematic'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div>
        <?php if ($comment->comment_approved == '0') _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'thematic') ?>
                <div class="comment-content">
            		<?php comment_text() ?>
    			<?php // echo the comment reply link with help from Justin Tadlock and Will Norris
    				if($args['type'] == 'all' || get_comment_type() == 'comment') :
    					comment_reply_link(array_merge($args, array(
    						'reply_text' => __('Reply','thematic'),
    						'login_text' => __('Log in to reply.','thematic'),
    						'depth' => $depth,
    						'before' => '<div class="comment-reply-link">',
    						'after' => '</div>'
    			<?php $i++; ?>  
    			<?php endforeach; ?>
    <?php }
    function my_callback() {
    	$content = 'type=comment&callback=wprv_comments';
    	return $content;
    add_filter('list_comments_arg', 'my_callback');-->

    Cheers !


    Posted 10 years ago #
  2. patrick

    It's strange nobody asks before how to insert number for the comments list.

    Anyway, I'm still stuck with this situation. Any help will be really appreciated !

    Thank you.


    Posted 10 years ago #
  3. patrick

    I've tried different combination but still stuck with this issue. If anyone had success to display the number of a comment in the comments list, please share the info !


    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.