게시판에서 스크랩,댓글목록,댓글등록,글쓰기등 없애는방법 채택완료
<div style="text-align: center"><img width="640" height="360" class="chimg_photo" id="image_004070347741480862" alt="제목 없음-1.jpg" src="//sir.kr/data/cheditor4/1406/85f2bb05e59e0d83945e9ac6876f9b6a_8xhc84CH4cPoaiU.jpg" /></div>
<div style="text-align: center">
</div>
<div style="text-align: center">
</div>
<div style="text-align: center">게시글에서 위 화면대로 제거하고 쓰려하는데.. 어디가서 삭제해야하나요?? ㅠㅠ</div>
<div> </div>
<div style="text-align: center">
</div>
<div style="text-align: center">
</div>
<div style="text-align: center">게시글에서 위 화면대로 제거하고 쓰려하는데.. 어디가서 삭제해야하나요?? ㅠㅠ</div>
<div> </div>
댓글을 작성하려면 로그인이 필요합니다.
답변 4개
11년 전
게시물 하단 버튼
skin/board/basic/view.skin.php
<!-- 링크 버튼 시작 { --></div>
<div> <div id="bo_v_bot"></div>
<div> <?php echo $link_buttons ?></div>
<div> </div></div>
<div> <!-- } 링크 버튼 끝 -->
없애도 상관 없네요.
상단 버튼이 있으니...
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
11년 전
댓글쓰기
skin/board/basic/view_comment.skin.php
<?php if ($is_comment_write) {</div>
<div> if($w == '')</div>
<div> $w = 'c';</div>
<div>?></div>
<div><!-- 댓글 쓰기 시작 { --></div>
<div><aside id="bo_vc_w"></div>
<div> <h2>댓글쓰기</h2></div>
<div> <form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off"></div>
<div> <input type="hidden" name="w" value="<?php echo $w ?>" id="w"></div>
<div> <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>"></div>
<div> <input type="hidden" name="wr_id" value="<?php echo $wr_id ?>"></div>
<div> <input type="hidden" name="comment_id" value="<?php echo $c_id ?>" id="comment_id"></div>
<div> <input type="hidden" name="sca" value="<?php echo $sca ?>"></div>
<div> <input type="hidden" name="sfl" value="<?php echo $sfl ?>"></div>
<div> <input type="hidden" name="stx" value="<?php echo $stx ?>"></div>
<div> <input type="hidden" name="spt" value="<?php echo $spt ?>"></div>
<div> <input type="hidden" name="page" value="<?php echo $page ?>"></div>
<div> <input type="hidden" name="is_good" value=""></div>
<div>
</div>
<div> <div class="tbl_frm02 tbl_wrap"></div>
<div> <table></div>
<div> <tbody></div>
<div> <?php if ($is_guest) { ?></div>
<div> <tr></div>
<div> <th scope="row"><label for="wr_name">이름<strong class="sound_only"> 필수</strong></label></th></div>
<div> <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></div>
<div> </tr></div>
<div> <tr></div>
<div> <th scope="row"><label for="wr_password">비밀번호<strong class="sound_only"> 필수</strong></label></th></div>
<div> <td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="20"></td></div>
<div> </tr></div>
<div> <?php } ?></div>
<div> <tr></div>
<div> <th scope="row"><label for="wr_secret">비밀글사용</label></th></div>
<div> <td><input type="checkbox" name="wr_secret" value="secret" id="wr_secret"></td></div>
<div> </tr></div>
<div> <?php if ($is_guest) { ?></div>
<div> <tr></div>
<div> <th scope="row">자동등록방지</th></div>
<div> <td><?php echo $captcha_html; ?></td></div>
<div> </tr></div>
<div> <?php } ?></div>
<div> <?php</div>
<div> include(G5_SNS_PATH."/view_comment_write.sns.skin.php");</div>
<div> ?></div>
<div> <tr></div>
<div> <th scope="row">내용</th></div>
<div> <td></div>
<div> <?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?></div>
<div> <textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용"</div>
<div> <?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea></div>
<div> <?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?></div>
<div> <script></div>
<div> $("textarea#wr_content[maxlength]").live("keyup change", function() {</div>
<div> var str = $(this).val()</div>
<div> var mx = parseInt($(this).attr("maxlength"))</div>
<div> if (str.length > mx) {</div>
<div> $(this).val(str.substr(0, mx));</div>
<div> return false;</div>
<div> }</div>
<div> });</div>
<div> </script></div>
<div> </td></div>
<div> </tr></div>
<div> </tbody></div>
<div> </table></div>
<div> </div></div>
<div>
</div>
<div> <div class="btn_confirm"></div>
<div> <input type="submit" id="btn_submit" class="btn_submit" value="댓글등록"></div>
<div> </div></div>
<div>
</div>
<div> </form></div>
<div></aside></div>
<div>
</div>
<div><script></div>
<div>var save_before = '';</div>
<div>var save_html = document.getElementById('bo_vc_w').innerHTML;</div>
<div>
</div>
<div>function good_and_write()</div>
<div>{</div>
<div> var f = document.fviewcomment;</div>
<div> if (fviewcomment_submit(f)) {</div>
<div> f.is_good.value = 1;</div>
<div> f.submit();</div>
<div> } else {</div>
<div> f.is_good.value = 0;</div>
<div> }</div>
<div>}</div>
<div>
</div>
<div>function fviewcomment_submit(f)</div>
<div>{</div>
<div> var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자</div>
<div>
</div>
<div> f.is_good.value = 0;</div>
<div>
</div>
<div> var subject = "";</div>
<div> var content = "";</div>
<div> $.ajax({</div>
<div> url: g5_bbs_url+"/ajax.filter.php",</div>
<div> type: "POST",</div>
<div> data: {</div>
<div> "subject": "",</div>
<div> "content": f.wr_content.value</div>
<div> },</div>
<div> dataType: "json",</div>
<div> async: false,</div>
<div> cache: false,</div>
<div> success: function(data, textStatus) {</div>
<div> subject = data.subject;</div>
<div> content = data.content;</div>
<div> }</div>
<div> });</div>
<div>
</div>
<div> if (content) {</div>
<div> alert("내용에 금지단어('"+content+"')가 포함되어있습니다");</div>
<div> f.wr_content.focus();</div>
<div> return false;</div>
<div> }</div>
<div>
</div>
<div> // 양쪽 공백 없애기</div>
<div> var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자</div>
<div> document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");</div>
<div> if (char_min > 0 || char_max > 0)</div>
<div> {</div>
<div> check_byte('wr_content', 'char_count');</div>
<div> var cnt = parseInt(document.getElementById('char_count').innerHTML);</div>
<div> if (char_min > 0 && char_min > cnt)</div>
<div> {</div>
<div> alert("댓글은 "+char_min+"글자 이상 쓰셔야 합니다.");</div>
<div> return false;</div>
<div> } else if (char_max > 0 && char_max < cnt)</div>
<div> {</div>
<div> alert("댓글은 "+char_max+"글자 이하로 쓰셔야 합니다.");</div>
<div> return false;</div>
<div> }</div>
<div> }</div>
<div> else if (!document.getElementById('wr_content').value)</div>
<div> {</div>
<div> alert("댓글을 입력하여 주십시오.");</div>
<div> return false;</div>
<div> }</div>
<div>
</div>
<div> if (typeof(f.wr_name) != 'undefined')</div>
<div> {</div>
<div> f.wr_name.value = f.wr_name.value.replace(pattern, "");</div>
<div> if (f.wr_name.value == '')</div>
<div> {</div>
<div> alert('이름이 입력되지 않았습니다.');</div>
<div> f.wr_name.focus();</div>
<div> return false;</div>
<div> }</div>
<div> }</div>
<div>
</div>
<div> if (typeof(f.wr_password) != 'undefined')</div>
<div> {</div>
<div> f.wr_password.value = f.wr_password.value.replace(pattern, "");</div>
<div> if (f.wr_password.value == '')</div>
<div> {</div>
<div> alert('비밀번호가 입력되지 않았습니다.');</div>
<div> f.wr_password.focus();</div>
<div> return false;</div>
<div> }</div>
<div> }</div>
<div>
</div>
<div> <?php if($is_guest) echo chk_captcha_js(); ?></div>
<div>
</div>
<div> document.getElementById("btn_submit").disabled = "disabled";</div>
<div>
</div>
<div> return true;</div>
<div>}</div>
<div>
</div>
<div>function comment_box(comment_id, work)</div>
<div>{</div>
<div> var el_id;</div>
<div> // 댓글 아이디가 넘어오면 답변, 수정</div>
<div> if (comment_id)</div>
<div> {</div>
<div> if (work == 'c')</div>
<div> el_id = 'reply_' + comment_id;</div>
<div> else</div>
<div> el_id = 'edit_' + comment_id;</div>
<div> }</div>
<div> else</div>
<div> el_id = 'bo_vc_w';</div>
<div>
</div>
<div> if (save_before != el_id)</div>
<div> {</div>
<div> if (save_before)</div>
<div> {</div>
<div> document.getElementById(save_before).style.display = 'none';</div>
<div> document.getElementById(save_before).innerHTML = '';</div>
<div> }</div>
<div>
</div>
<div> document.getElementById(el_id).style.display = '';</div>
<div> document.getElementById(el_id).innerHTML = save_html;</div>
<div> // 댓글 수정</div>
<div> if (work == 'cu')</div>
<div> {</div>
<div> document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;</div>
<div> if (typeof char_count != 'undefined')</div>
<div> check_byte('wr_content', 'char_count');</div>
<div> if (document.getElementById('secret_comment_'+comment_id).value)</div>
<div> document.getElementById('wr_secret').checked = true;</div>
<div> else</div>
<div> document.getElementById('wr_secret').checked = false;</div>
<div> }</div>
<div>
</div>
<div> document.getElementById('comment_id').value = comment_id;</div>
<div> document.getElementById('w').value = work;</div>
<div>
</div>
<div> if(save_before)</div>
<div> $("#captcha_reload").trigger("click");</div>
<div>
</div>
<div> save_before = el_id;</div>
<div> }</div>
<div>}</div>
<div>
</div>
<div>function comment_delete()</div>
<div>{</div>
<div> return confirm("이 댓글을 삭제하시겠습니까?");</div>
<div>}</div>
<div>
</div>
<div>comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)</div>
<div></script></div>
<div><?php } ?></div>
<div><!-- } 댓글 쓰기 끝 -->
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
11년 전
댓글목록
skin/board/basic/view_comment.skin.php
<!-- 댓글 시작 { --></div>
<div><section id="bo_vc"></div>
<div> <h2>댓글목록</h2></div>
<div> <?php</div>
<div> $cmt_amt = count($list);</div>
<div> for ($i=0; $i<$cmt_amt; $i++) {</div>
<div> $comment_id = $list[$i]['wr_id'];</div>
<div> $cmt_depth = ""; // 댓글단계</div>
<div> $cmt_depth = strlen($list[$i]['wr_comment_reply']) * 20;</div>
<div> $comment = $list[$i]['content'];</div>
<div> /*</div>
<div> if (strstr($list[$i]['wr_option'], "secret")) {</div>
<div> $str = $str;</div>
<div> }</div>
<div> */</div>
<div> $comment = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $comment);</div>
<div> $cmt_sv = $cmt_amt - $i + 1; // 댓글 헤더 z-index 재설정 ie8 이하 사이드뷰 겹침 문제 해결</div>
<div> ?></div>
<div>
</div>
<div> <article id="c_<?php echo $comment_id ?>" <?php if ($cmt_depth) { ?>style="margin-left:<?php echo $cmt_depth ?>px;border-top-color:#e0e0e0"<?php } ?>></div>
<div> <header style="z-index:<?php echo $cmt_sv; ?>"></div>
<div> <h1><?php echo $list[$i]['wr_name'] ?>님의 댓글</h1></div>
<div> <?php echo $list[$i]['name'] ?></div>
<div> <?php if ($cmt_depth) { ?><img src="<?php echo $board_skin_url ?>/img/icon_reply.gif" class="icon_reply" alt="댓글의 댓글"><?php } ?></div>
<div> <?php if ($is_ip_view) { ?></div>
<div> 아이피</div>
<div> <span class="bo_vc_hdinfo"><?php echo $list[$i]['ip']; ?></span></div>
<div> <?php } ?></div>
<div> 작성일</div>
<div> <span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span></div>
<div> <?php</div>
<div> include(G5_SNS_PATH.'/view_comment_list.sns.skin.php');</div>
<div> ?></div>
<div> </header></div>
<div>
</div>
<div> <!-- 댓글 출력 --></div>
<div> <p></div>
<div> <?php if (strstr($list[$i]['wr_option'], "secret")) { ?><img src="<?php echo $board_skin_url; ?>/img/icon_secret.gif" alt="비밀글"><?php } ?></div>
<div> <?php echo $comment ?></div>
<div> </p></div>
<div>
</div>
<div> <span id="edit_<?php echo $comment_id ?>"></span><!-- 수정 --></div>
<div> <span id="reply_<?php echo $comment_id ?>"></span><!-- 답변 --></div>
<div>
</div>
<div> <input type="hidden" value="<?php echo strstr($list[$i]['wr_option'],"secret") ?>" id="secret_comment_<?php echo $comment_id ?>"></div>
<div> <textarea id="save_comment_<?php echo $comment_id ?>" style="display:none"><?php echo get_text($list[$i]['content1'], 0) ?></textarea></div>
<div>
</div>
<div> <?php if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {</div>
<div> $query_string = str_replace("&", "&", $_SERVER['QUERY_STRING']);</div>
<div>
</div>
<div> if($w == 'cu') {</div>
<div> $sql = " select wr_id, wr_content from $write_table where wr_id = '$c_id' and wr_is_comment = '1' ";</div>
<div> $cmt = sql_fetch($sql);</div>
<div> $c_wr_content = $cmt['wr_content'];</div>
<div> }</div>
<div>
</div>
<div> $c_reply_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=c#bo_vc_w';</div>
<div> $c_edit_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=cu#bo_vc_w';</div>
<div> ?></div>
<div> <footer></div>
<div> <ul class="bo_vc_act"></div>
<div> <?php if ($list[$i]['is_reply']) { ?><li><a href="<?php echo $c_reply_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'c'); return false;">답변</a></li><?php } ?></div>
<div> <?php if ($list[$i]['is_edit']) { ?><li><a href="<?php echo $c_edit_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'cu'); return false;">수정</a></li><?php } ?></div>
<div> <?php if ($list[$i]['is_del']) { ?><li><a href="<?php echo $list[$i]['del_link']; ?>" onclick="return comment_delete();">삭제</a></li><?php } ?></div>
<div> </ul></div>
<div> </footer></div>
<div> <?php } ?></div>
<div> </article></div>
<div> <?php } ?></div>
<div> <?php if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?></div>
<div>
</div>
<div></section></div>
<div><!-- } 댓글 끝 -->
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
11년 전
스크랩
skin/board/basic/view.skin.php
<?php if ($scrap_href) { ?><a href="<?php echo $scrap_href; ?>" target="_blank" class="btn_b01" onclick="win_scrap(this.href); return false;">스크랩</a><?php } ?><span style="font-size: 10pt; line-height: 1.5">
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인전체 질문 목록
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
채택
답변대기
답변대기
답변대기
답변대기
채택
채택
답변대기
답변대기
답변대기
채택