테스트 사이트 - 개발 중인 베타 버전입니다

그누보드5 글쓰기할 때 자동등록방지 캡챠 삭제

​앞서 올리신 분들이 있는데 (현재까지)최근에 조금 달라진 부분이 있어 직접 찾아보고 공유합니다.


우선 게시판 스킨(예: gallery) 내부에 write.skin.php 파일에서


$captcha_html = '';
if ($is_guest) {
    $captcha_html = captcha_html_overriding();
}


그 아래

   <?php if ($is_guest) { //자동등록방지  ?>
   <tr>
    <th scope="row" class="w120 hidden-xs"><label for="captcha_key" class="control-label">자동등록방지</label></th>
    <td>

     <p class="hidden visible-xs"><label for="captcha_key" class="control-label">자동등록방지</label></p>

     <?php echo $captcha_html ?>
    </td>
   </tr>
   <?php } ?>


그리고 그 아래


 <?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함  ?>


삭제.


*코멘트(댓글)에 나오는 캡챠도 삭제하시려면 view_comment.skin.php 파일에서


$captcha_html = "";
if ($is_guest && $board['bo_comment_level'] < 2) {
    $captcha_html = captcha_html_overriding('_comment');
}


그 아래


<?php if ($is_guest) { ?>
   <tr>
    <th scope="row" class="w120 hidden-xs"><label for="captcha_key" class="control-label">자동등록방지</label></th>
    <td><p class="hidden visible-xs"><label for="captcha_key" class="control-label">자동등록방지</label></p><?php echo $captcha_html; ?></td>
   </tr>
   <?php } ?>


그리고


    <?php if($is_guest) echo chk_captcha_js();  ?>


삭제


스킨에 따라 빠져있는 부분도 있으니 잘 확인하시구요,
마지막으로 최상위 폴더에 있는 bbs 폴더내에 있는 두 파일을 수정하시면 됩니다.

게시판의 경우 write_update.php 파일에서


if ($is_guest && !chk_captcha()) {
    alert('자동등록방지 숫자가 틀렸습니다.');
}


코멘트(댓글)의 경우 write_comment_update.php에서

if(!chk_captcha())
        alert('자동등록방지 숫자가 틀렸습니다.');


비활성화 해주시면 됩니다.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

게시글 목록

번호 제목
103
93
87
86
65
60
50
43
39
36
33
27
22
19
18
17
14
12
11
10