비회원이 댓글 남길때 캡챠를 skip하려면??
본문
댓글에서 캡챠 입력을 skip하려합니다.
<!--
<?php if ($is_guest) { ?>
<div class="well well-sm text-center" style="margin-bottom:10px;">
<?php echo $captcha_html; ?>
</div>
<?php } ?>
-->
<!--<?php if($is_guest) echo chk_captcha_js(); ?> -->
bbs/ 폴더 파일에도 수정해야하는거 같은데 어디를 수정해야 할까요?
답변 1
/bbas/write_comment_update.php 에서 아래 부분 중 빨간색 부분 주석처리하심됩니다.
// 비회원의 경우 이름이 누락되는 경우가 있음
if ($is_guest) {
if ($wr_name == '')
alert('이름은 필히 입력하셔야 합니다.');
if(!chk_captcha())
alert('자동등록방지 숫자가 틀렸습니다.');
}
답변을 작성하시기 전에 로그인 해주세요.