채택완료

게시판 댓글 질문드립니다 ^^

2016-11-09 (수) 02:32:04 3,826

현재 이상태인데요 b1863fe66df27de66340a6c646eae9c2_1478626301_9276.png 

아래처럼 댓글쓰는것을 댓글목록 위로 올리고 싶습니다

b1863fe66df27de66340a6c646eae9c2_1478626321_2221.png
 

|

답변 1개

채택된 답변
+20 포인트

스킨 폴더 view_comment.skin.php 파일에서 글쓰기 영역인 아랫부분 전체를 잘라내기 해서

Copy
<?php if ($is_comment_write) {    if($w == '')        $w = 'c';?><!-- 댓글 쓰기 시작 { --><aside id="bo_vc_w">    <h2>댓글쓰기</h2>    <form name="fviewcomment" action="./write_comment_update.php" 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>

같은 파일 시작 부분 여기 바로 위로 이동.

<!-- 댓글 시작 { --> 

답변을 작성하려면 로그인이 필요합니다.