WordPress.org

Ready to get started?Download WordPress

Forums

"reply" link not showing up for threaded comments (7 posts)

  1. iluvpinkerton
    Member
    Posted 2 years ago #

    I've enabled threaded comments under the "discussion" settings but I do not see the "reply" link under each comment.

    Is there something else I need to do to make this link show up?

    The site I'm working on is password protected so I can't share the link. But does anyone know what might be causing this issue?

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    if you haven't edited the comment section, can you post the name and download of your theme?

  3. iluvpinkerton
    Member
    Posted 2 years ago #

    Yes, it's Coraline

    I don't think I should upload the theme anywhere since it's not free. The comment.php code looks like this:

    <?php
    /**
     * Comments
     * @package by Theme Record
     * @auther: MattMao
     */
    ?>
    
    <?php if ( post_password_required() ) : ?>
    <div id="comments">
    	<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'TR'); ?></p>
    </div><!-- #comments -->
    <?php return; endif; ?>
    
    <?php if ( have_comments() ) : ?>
    <div id="comments">
    
    	<h2 id="comments-title"><?php echo get_comments_number(); ?>  <?php _e('Comments','TR');  ?></h2>
    
    	<ol class="commentlist">
    		<?php wp_list_comments( array( 'callback' => 'theme_comments_list') ); ?>
    	</ol>
    
    	<?php
    	if (get_comment_pages_count() > 1 && get_option('page_comments'))
    	{
    		$comment_pages = paginate_comments_links('echo=0');
    		if ($comment_pages)
    		{
    			echo '<div  class="comment-pagination clearfix">'.$comment_pages.'</div>';
    		}
    	}
    	?>
    <?php endif; ?>
    
    <!-- show the tweetbacks -->	
    
    	<?php if ( ! empty($comments_by_type['tweetback']) ) : ?>
    		<a class="anchorFix" name="comments"></a>
    		 <h3 id="pings">Tweetbacks</h3>
    		  <ul class="commentlist" id="singlecomments">
    		  <?php wp_list_comments('type=tweetback'); ?>
    		  </ul>
    		<?php endif; ?>
    
    </div><!-- #comments -->
    
    <?php theme_comment_form(); ?>
  4. iluvpinkerton
    Member
    Posted 2 years ago #

    Also - I'm trying to get the twitter comments to show up separately from the normal comments. I've tried implementing code to separate by "comment type" but nothing seems to be working. Do you know of a good resource for this? Thanks!

  5. iluvpinkerton
    Member
    Posted 2 years ago #

    Oh, I think the theme is also using a custom file for comment and that code is:

    <?php
    /**
     * Comments Function
     * @package by Theme Record
     * @auther: MattMao
    */
    
    #
    #Theme Comments List
    #
    if ( !function_exists( 'theme_comments_list' ) )
    {
    	function theme_comments_list($comment, $args, $depth)
    	{
    		$GLOBALS['comment'] = $comment;
    		switch ( $comment->comment_type ) :
    		case 'pingback' :
    		case 'trackback' :
    	?>
    	<li class="pingback">
    		<?php _e( 'Pingback:', 'TR' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'TR' ), '<span class="edit-link">', '</span>' ); ?>
    	<?php break; default : ?>
    
    	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
    	<article id="comment-<?php comment_ID(); ?>" class="clearfix comment-wrap">
    
    		<div class="comment-author vcard">
    		<?php
    			$avatar_size = 40;
    			if ( '0' != $comment->comment_parent ) { $avatar_size = 35; }
    			echo get_avatar( $comment, $avatar_size );
    		?>
    		</div><!-- .comment-author .vcard -->
    
    		<div class="comment-entry">
    			<div class="comment-meta meta">
    			<?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()); ?>
    			<?php printf(__('<span class="time">%1$s at %2$s</span>', 'TR'), get_comment_date(),  get_comment_time()) ?> &middot;
    			<?php comment_reply_link( array_merge( $args, array( 'reply_text' => '<span class="reply">'.__('Reply', 'TR').'</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    			<?php edit_comment_link( __('Edit', 'TR'), '&middot; <span class="edit-link">', '</span>' ); ?>
    			</div>
    			<div class="comment-content">
    				<?php if ( $comment->comment_approved == '0' ) : ?>
    				<div class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'TR' ); ?></div>
    				<?php endif; ?>
    				<div class="comment-text post-format"><?php comment_text(); ?></div>
    			</div>
    		</div><!-- .comment-entry -->
    
    	</article><!-- #comment-## -->
    	<?php break; endswitch; ?>
    	<?php
    	}
    }
    
    #
    #Theme Comment Form
    #
    if ( !function_exists( 'theme_comment_form' ) )
    {
    	function theme_comment_form()
    	{
    		$req = get_option( 'require_name_email' );
    
    		$fields =  array(
    			'author' => '<div class="comment-form-file" ><input id="author" name="author" type="text" placeholder="'.__('Name', 'TR').( $req ? ' *' : '' ).'" size="30" /></div>',
    			'email'  => '<div class="comment-form-file" ><input id="email" name="email" type="text" placeholder="'.__('Email', 'TR').( $req ? ' *' : '' ).'" size="30" /></div>',
    			'url'    => '<div class="comment-form-file" ><input id="url" name="url" type="text" placeholder="'.__('Website', 'TR').'" size="30" /></div>'
    		);
    
    		$args = array(
    			'title_reply' =>  __('Leave a Reply', 'TR'),
    			'cancel_reply_link' =>  __('Cancel reply', 'TR'),
    			'comment_notes_before' => '',
    			'fields' => apply_filters( 'comment_form_default_fields', $fields ),
    			'comment_field' => '<textarea id="comment" class="comment-form-content" name="comment" rows="5"></textarea>',
    			'comment_notes_after' => '',
    			'label_submit' => __('Submit Comment', 'TR')
    		);
    
    		comment_form($args);
    	}
    }
    ?>
  6. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    please contact the theme's seller for support with your problem;

    this forum does not support commercial themes.

  7. iluvpinkerton
    Member
    Posted 2 years ago #

    I reverted back to the Twenty Eleven theme and it is still not showing up. Can you help me with this problem since it is obviously not theme dependent? I don't really know what else could be causing the issue. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic