답글쓸때만 내용보여지게 하는 방법.

답글쓸때만 내용보여지게 하는 방법.

QA

답글쓸때만 내용보여지게 하는 방법.

본문

덧글이 아닌

 

답글을 버튼을 눌렀을때만 뜨게하는

 

방법이 있는지 질문드려요~ ^^;;

 

 

이 질문에 댓글 쓰기 :

답변 1

write.skin.php 파일에서 원하는 내용을 넣고 이렇게 감싸주면 됩니다.

 

<?php if($w == 'r' ) { ?>

답글 작성중입니다

<?php } ?>

작은별님 소중한 답변 감사드립니다.
제가 질문이 너무 허술했나봐요;;


죄송한데...


view_comment.skin.php 페이지 안에 덧글 기능부분인데요


덧글 입력이 되어있는 게시물에 다시 답글하기를 누르면
그때 내용을 출력하고싶은데

그부분에도 해당되는 소스가 있을까요?

시간뺏어 죄송하지만 답변 부탁드립니다 ^^;;;


  <aside id="bo_vc_w">
        <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="">

================== 답글 쓸때만 내용 보여지게 하고싶습니다. ===========================
<?php if($w == 'r' ) { ?>
답글 작성중입니다
<?php } ?>
================== 답글 쓸때만 내용 보여지게 하고싶습니다. ===========================

<div class="new_coment_box">
<table align="center">
<tr>
<td>
<input type="text" name="wr_name" id="wr_name" required class="frm_input required" size="10" maxLength="40" placeholder="이름" style="float:left; height:60px; line-height:60px;"/>
<input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="40" placeholder="비밀번호" style="float:left; height:60px; line-height:60px;">
<div style="float:left;">
<?php echo $captcha_html; ?>
</div>
</td>
</tr>
<tr>
<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" 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 } ?>
</td>
</tr>
<tr>
<td style="padding:10px;" align="center"><input type="submit" value="댓글입력" class="new_btn" accesskey="s"></td>
</tr>
</table>
</div>
        </form>

    </aside>

기본 스킨을 수정하신 것 같네요. 기본 스킨의 경우 그냥 이렇게만 해줘도 그렇게 됩니다.
<h2>답글 작성중입니다.</h2>

혹시나 하고 올려주신 코드 그대로 넣고 테스트해봤는데
별도 수정 없이 단지 <h2>로 감싸주니 말씀하신 대로 나오네요.

답변을 작성하시기 전에 로그인 해주세요.
전체 123,736 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT