kboard 게시판에서 댓글에 답글을 다는 입력창이 관리자 페이지에서는 열리지 않습니다.

1. 게시글의 댓글에 대해 답글을 달려고 답글 버튼을 누르면 고객 페이지에서는 답글 입력창이 열리는데

   관리자 페이지에서는 열리지 않습니다.      https://imgur.com/XVdVP6I  https://imgur.com/obCrWs5

2. 이런 현상이 여러개의 댓글중 제일 위의 댓글에서만 발생합니다.

해결방법이 있을까요?(사진과 코드 첨부합니다.)

list-template.php (아래 코드)

<div class="comments-list">
	<ul>
		<?php while($comment = $commentList->hasNext()): $commentURL->setCommentUID($comment->uid);?>
		<li itemscope itemtype="http://schema.org/Comment" class="kboard-comments-item" data-username="<?php echo $comment->user_display?>" data-created="<?php echo $comment->created?>">
			<div class="comments-list-username" itemprop="author">
				<?php echo apply_filters('kboard_user_display', get_avatar($comment->user_uid, 24, '', $comment->user_display).' '.$comment->user_display, $comment->user_uid, $comment->user_display, 'kboard-comments', $commentBuilder)?>
			</div>
			<div class="comments-list-create" itemprop="dateCreated"><?php echo date('Y-m-d H:i', strtotime($comment->created))?></div>
			<div class="comments-list-content" itemprop="description">
				<?php echo nl2br($comment->content)?>
			</div>

			<div class="comments-list-controller">
				<?php if($commentBuilder->isWriter()):?>
				<div class="left">
					<?php if($comment->isEditor()):?>
					<button type="button" class="comments-button-action comments-button-delete" onclick="kboard_comments_delete('<?php echo $commentURL->getDeleteURL()?>');" title="<?php echo __('Delete', 'kboard-comments')?>"><?php echo __('Delete', 'kboard-comments')?></button>
					<?php else:?>
					<button type="button" class="comments-button-action comments-button-delete" onclick="kboard_comments_open_confirm('<?php echo $commentURL->getConfirmURL()?>');" title="<?php echo __('Delete', 'kboard-comments')?>"><?php echo __('Delete', 'kboard-comments')?></button>
					<?php endif?>
					<button type="button" class="comments-button-action comments-button-edit" onclick="kboard_comments_open_edit('<?php echo $commentURL->getEditURL()?>');" title="<?php echo __('Edit', 'kboard-comments')?>"><?php echo __('Edit', 'kboard-comments')?></button>
					<button type="button" class="comments-button-action comments-button-reply kboard-reply" onclick="kboard_comments_reply(this, '#kboard-comment-reply-form-<?php echo $comment->uid?>', '#kboard-comments-form-<?php echo $content_uid?>');" title="<?php echo __('Reply', 'kboard-comments')?>"><?php echo __('Reply', 'kboard-comments')?></button>
				</div>
				<?php endif?>
			</div>

			<hr>

			<!-- 답글 리스트 시작 -->
			<?php $commentBuilder->buildTreeList('list-template.php', $comment->uid, $depth+1)?>
			<!-- 답글 리스트 끝 -->

			<!-- 댓글 입력 폼 시작 -->
			<form action="<?php echo $commentURL->getInsertURL()?>" method="post" id="kboard-comment-reply-form-<?php echo $comment->uid?>" class="comments-reply-form" onsubmit="return kboard_comments_execute(this);">
				<input type="hidden" name="content_uid" value="<?php echo $comment->content_uid?>">
				<input type="hidden" name="parent_uid" value="<?php echo $comment->uid?>">
				<input type="hidden" name="member_uid" value="<?php echo $member_uid?>">
			</form>
			<!-- 댓글 입력 폼 끝 -->
		</li>
		<?php endwhile?>
	</ul>
</div>

 list.php (아래 코드)

<div id="kboard-comments-<?php echo $content_uid?>" class="kboard-comments-default">
	<div class="kboard-comments-wrap">

		<div class="comments-header">
			<div class="comments-count">
				<?php echo __('Total Reply', 'kboard-comments')?> <span class="comments-total-count"><?php echo $commentList->getCount()?></span>
			</div>
			<hr>
		</div>

		<!-- 댓글 리스트 시작 -->
		<?php $commentBuilder->buildTreeList('list-template.php')?>
		<!-- 댓글 리스트 끝 -->

		<?php if($commentBuilder->isWriter()):?>
		<!-- 댓글 입력 폼 시작 -->
		<form id="kboard-comments-form-<?php echo $content_uid?>" method="post" action="<?php echo $commentURL->getInsertURL()?>" onsubmit="return kboard_comments_execute(this);">
			<input type="hidden" name="content_uid" value="<?php echo $content_uid?>">
			<input type="hidden" name="member_uid" value="<?php echo $member_uid?>">

			<div class="kboard-comments-form">
				<?php wp_nonce_field('kboard-comments-execute', 'kboard-comments-execute-nonce')?>

				<div class="comments-field">
					<textarea name="comment_content" placeholder="<?php echo __('Add a comment', 'kboard-comments')?>..." onfocus="kboard_comments_field_show()" required><?php echo $temporary->content?></textarea>
				</div>

				<div class="comments-field-wrap">
					<?php
					// 댓글 입력 필드 시작
					ob_start();
					?>

					<?php if(is_user_logged_in()):?>
					<input type="hidden" name="member_display" value="<?php echo $member_display?>">
					<?php else:?>
					<div class="comments-field">
						<label class="comments-field-label" for="comment_member_display"><?php echo __('Author', 'kboard-comments')?></label>
						<input type="text" id="comment_member_display" name="member_display" value="<?php echo $temporary->member_display?>" placeholder="<?php echo __('Author', 'kboard-comments')?>..." required>
					</div>
					<div class="comments-field">
						<label class="comments-field-label" for="comment_password"><?php echo __('Password', 'kboard-comments')?></label>
						<input type="password" id="comment_password" name="password" value="" placeholder="<?php echo __('Password', 'kboard-comments')?>..." required>
					</div>
					<?php endif?>

					<?php if($board->useCAPTCHA()):?>
						<?php if(kboard_use_recaptcha()):?>
							<div class="comments-field">
								<div class="g-recaptcha" data-sitekey="<?php echo kboard_recaptcha_site_key()?>"></div>
							</div>
						<?php else:?>
							<div class="comments-field">
								<label class="comments-field-label" for="comment_captcha"><img src="<?php echo kboard_captcha()?>" alt=""></label>
								<input type="text" id="comment_captcha" name="captcha" value="" placeholder="CAPTCHA..." required>
							</div>
						<?php endif?>
					<?php endif?>

					<?php
					// 댓글 입력 필드 출력
					$field_html = ob_get_clean();
					do_action('kboard_comments_field', $field_html, $board, $content_uid, $commentBuilder);
					?>
				</div>

				<div class="comments-submit-button"><input type="submit" value="<?php echo __('Submit', 'kboard-comments')?>"></div>
			</div>
		</form>
		<!-- 댓글 입력 폼 끝 -->
		<?php else:?>
		<div class="kboard-comments-login">
			<?php
			// 로그인 메시지 출력
			do_action('kboard_comments_login_content', $board, $content_uid, $commentBuilder);
			?>
		</div>
		<?php endif?>
	</div>
</div>

<script type="text/javascript" src="<?php echo $skin_path?>/script.js?<?php echo KBOARD_COMMNETS_VERSION?>"></script>
<script>
    var comment_content = jQuery('.comments-list ul .comments-list-content');
    if(comment_content.length > 0) {
      //  jQuery('textarea').hide();
    }
</script>

 

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기