ckeditor 4 댓글에 답변 관련 처리 문의

ckeditor 4 댓글에 답변 관련 처리 문의

QA

ckeditor 4 댓글에 답변 관련 처리 문의

본문

안녕하세요.

 

https://blog.batifa.com

 

질문답변 게시판에 댓글에 답변을 달아도 그냥 댓글과 같이 나옵니다.

갤러리 게시판과 같이 댓글에 답변처럼 댓글이 달리는 방법이 있을까요?

 

아래는 질문답변 댓글 적용 내용입니다.

 


<div class="cmt_contents">
            <!-- 댓글 출력 -->        
            <p>
            <!--
                <?php if (strstr($list[$i]['wr_option'], "secret")) echo "<i class=\"fa fa-lock\" aria-hidden=\"true\"></i>"; ?>
                <?php echo $str ?>
            -->
            </p>
            <!-- 댓글에 사진 나오게 처리 -->
            <?php
            $str = $list[$i]['wr_content']; 
            $str = 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>", $str); 
            $str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str); 
            $str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\".*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);'>", $str); 
            echo $str; 
            ?>
        
            <?php if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
                $query_string = clean_query_string($_SERVER['QUERY_STRING']);
                if($w == 'cu') {
                    $sql = " select wr_id, wr_content, mb_id from $write_table where wr_id = '$c_id' and wr_is_comment = '1' ";
                    $cmt = sql_fetch($sql);
                    if (!($is_admin || ($member['mb_id'] == $cmt['mb_id'] && $cmt['mb_id'])))
                        $cmt['wr_content'] = '';
                    $c_wr_content = $cmt['wr_content'];
                }
            ?>
            
            <?php } ?>

이 질문에 댓글 쓰기 :

답변 1

우선 사이트 알려주신거를 열어놓으시거나 테스트 계정을 주셔야 될것 같습니다.

test 으로 가입해서 볼려 했더니 이메일 인증받으라네요;;

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

회원로그인

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