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

게시판 댓글 질문드립니다 ^^ 채택완료

김진횰 9년 전 조회 3,394

현재 이상태인데요  

 

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

 


 

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

답변 1개

채택된 답변
+20 포인트
9년 전

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

 

</p><p><?php if ($is_comment_write) {</p><p>    if($w == '')</p><p>        $w = 'c';</p><p>?></p><p><!-- 댓글 쓰기 시작 { --></p><p><aside id="bo_vc_w"></p><p>    <h2>댓글쓰기</h2></p><p>    <form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off"></p><p>    <input type="hidden" name="w" value="<?php echo $w ?>" id="w"></p><p>    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>"></p><p>    <input type="hidden" name="wr_id" value="<?php echo $wr_id ?>"></p><p>    <input type="hidden" name="comment_id" value="<?php echo $c_id ?>" id="comment_id"></p><p>    <input type="hidden" name="sca" value="<?php echo $sca ?>"></p><p>    <input type="hidden" name="sfl" value="<?php echo $sfl ?>"></p><p>    <input type="hidden" name="stx" value="<?php echo $stx ?>"></p><p>    <input type="hidden" name="spt" value="<?php echo $spt ?>"></p><p>    <input type="hidden" name="page" value="<?php echo $page ?>"></p><p>    <input type="hidden" name="is_good" value=""></p><p> </p><p>    <div class="tbl_frm01 tbl_wrap"></p><p>        <table></p><p>        <tbody></p><p>        <?php if ($is_guest) { ?></p><p>        <tr></p><p>            <th scope="row"><label for="wr_name">이름<strong class="sound_only"> 필수</strong></label></th></p><p>            <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></p><p>        </tr></p><p>        <tr></p><p>            <th scope="row"><label for="wr_password">비밀번호<strong class="sound_only"> 필수</strong></label></th></p><p>            <td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="20"></td></p><p>        </tr></p><p>        <?php } ?></p><p>        <tr></p><p>            <th scope="row"><label for="wr_secret">비밀글사용</label></th></p><p>            <td><input type="checkbox" name="wr_secret" value="secret" id="wr_secret"></td></p><p>        </tr></p><p>        <?php if ($is_guest) { ?></p><p>        <tr></p><p>            <th scope="row">자동등록방지</th></p><p>            <td><?php echo $captcha_html; ?></td></p><p>        </tr></p><p>        <?php } ?></p><p>        <?php</p><p>        if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) {</p><p>        ?></p><p>        <tr></p><p>            <th scope="row">SNS 동시등록</th></p><p>            <td id="bo_vc_send_sns"></td></p><p>        </tr></p><p>        <?php</p><p>        }</p><p>        ?></p><p>        <tr></p><p>            <th scope="row">내용</th></p><p>            <td></p><p>                <?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?></p><p>                <textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용"</p><p>                <?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content;  ?></textarea></p><p>                <?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?></p><p>                <script></p><p>                $(document).on( "keyup change", "textarea#wr_content[maxlength]", function(){</p><p>                    var str = $(this).val()</p><p>                    var mx = parseInt($(this).attr("maxlength"))</p><p>                    if (str.length > mx) {</p><p>                        $(this).val(str.substr(0, mx));</p><p>                        return false;</p><p>                    }</p><p>                });</p><p>                </script></p><p>            </td></p><p>        </tr></p><p>        </tbody></p><p>        </table></p><p>    </div></p><p> </p><p>    <div class="btn_confirm"></p><p>        <input type="submit" id="btn_submit" class="btn_submit" value="댓글등록"></p><p>    </div></p><p> </p><p>    </form></p><p></aside></p><p>

 

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

 

로그인 후 평가할 수 있습니다

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

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

로그인