아래 코드에서 어차피 다 html소스이기 때문에 수정은 다 가능한데
비밀글사용 요 부분을 삭제하면 댓글 수정을 누르면 페이지가 새로고침 되면서 아예 새로운 댓글 입력하는
부분으로 내용이 가게 됩니다.
제가 원하는 디자인은 다 지워버리고 가로 100%의 입력폼과 그 아래 확인버튼만 남기고 싶습니다.
비밀글사용때문에 막혀있는 상태인데 기능사용에 전혀 문제없이 수정할 수 있을까요?
제 설명이 잘 이해가 안되시면 기본 그누보드 스킨폴더 > 보드 > 베이직 > view_comment.skin.php
요 파일에 아래 소스가 있으니 비밀글 사용 tr부분을 전부 지우고 댓글 올리시고 수정하려고 하시면
뭔 이야기인가 이해가 가실겁니다.
Copy
<aside id="bo_vc_w"> <h2>댓글쓰기</h2> <form name="fviewcomment" action="<?php echo $comment_action_url; ?>" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off"> <input type="hidden" name="w" value="<?php echo $w ?>" id="w"> <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>"> <input type="hidden" name="wr_id" value="<?php echo $wr_id ?>"> <input type="hidden" name="comment_id" value="<?php echo $c_id ?>" id="comment_id"> <input type="hidden" name="sca" value="<?php echo $sca ?>"> <input type="hidden" name="sfl" value="<?php echo $sfl ?>"> <input type="hidden" name="stx" value="<?php echo $stx ?>"> <input type="hidden" name="spt" value="<?php echo $spt ?>"> <input type="hidden" name="page" value="<?php echo $page ?>"> <input type="hidden" name="is_good" value=""> <div class="tbl_frm01 tbl_wrap"> <table> <tbody> <?php if ($is_guest) { ?> <tr> <th scope="row"><label for="wr_name">이름<strong class="sound_only"> 필수</strong></label></th> <td><input type="text" name="wr_name" value="<?php echo get_cookie("ck_sns_name"); ?>" id="wr_name" required class="frm_input required" size="5" maxLength="20"></td> </tr> <tr> <th scope="row"><label for="wr_password">비밀번호<strong class="sound_only"> 필수</strong></label></th> <td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="20"></td> </tr> <?php } ?> <tr> <th scope="row"><label for="wr_secret">비밀글사용</label></th> <td><input type="checkbox" name="wr_secret" value="secret" id="wr_secret"></td> </tr> <?php if ($is_guest) { ?> <tr> <th scope="row">자동등록방지</th> <td><?php echo $captcha_html; ?></td> </tr> <?php } ?> <?php if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) { ?> <tr> <th scope="row">SNS 동시등록</th> <td id="bo_vc_send_sns"></td> </tr> <?php } ?> <tr> <th scope="row">내용</th> <td> <?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?> <textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용" <?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea> <?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?> <script> $(document).on( "keyup change", "textarea#wr_content[maxlength]", function(){ var str = $(this).val() var mx = parseInt($(this).attr("maxlength")) if (str.length > mx) { $(this).val(str.substr(0, mx)); return false; } }); </script> </td> </tr> </tbody> </table> </div> <div class="btn_confirm"> <input type="submit" id="btn_submit" class="btn_submit" value="댓글등록"> </div> </form></aside>
|
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
2017-08-21 (월) 12:40:02
비밀글 삭제로인한 글 등록시 새 코멘트로 등록되는 현상은
view_comment.skin.php 파일에서 아래 내용을 삭제하면 해결됩니다.
http://gnustudy.com/bbs/board.php?bo_table=skin_board&wr_id=61
if (document.getElementById('secret_comment_'+comment_id).value)
document.getElementById('wr_secret').checked = true;
else
document.getElementById('wr_secret').checked = false;
답변에 대한 댓글 1개
헐크매니아
2017-08-21 (월) 21:48:49
와 정말 감사합니다. 전혀 생각도 못한 부분에서 해결이 됬네요. 정말 감사합니다.
답변을 작성하려면 로그인이 필요합니다.