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

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

갱쿤 8년 전 조회 2,531

덧글이 아닌

 

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

 

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

 

 

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

답변 1개

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

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

 

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

답글 작성중입니다

<?php } ?>

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

답변에 대한 댓글 3개

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


죄송한데...


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>
작은별
8년 전
기본 스킨을 수정하신 것 같네요. 기본 스킨의 경우 그냥 이렇게만 해줘도 그렇게 됩니다.
<h2>답글 작성중입니다.</h2>

혹시나 하고 올려주신 코드 그대로 넣고 테스트해봤는데
별도 수정 없이 단지 <h2>로 감싸주니 말씀하신 대로 나오네요.
갱쿤
8년 전
소중한 답변 감사합니다~ 즐거운 하루되세요~ ^^

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

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

로그인