new.php 코멘트의 내용이 나오게 하려면? > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

new.php 코멘트의 내용이 나오게 하려면? 정보

new.php 코멘트의 내용이 나오게 하려면?

본문

http://sir.co.kr/bbs/new.php

최근 게시물을 보면..

코멘트의 경우
[코]게시물제목
이런식으로 코멘트라는 표시와 게시물 제목이 나오는데요..
코멘트의 내용이 출력되게 할수는 없는지요?

[코]코멘트의내용
이렇게 출력을 하고 싶습니다.

스킨등에서 최신글출력이 될시에 코멘트의 내용이 출력되서 나오는데.. 그것처럼 코멘트달린 게시물의 제목이 아닌 코멘트의 내용이 출력되었으면 합니다.

어떻게 해야할지 부탁드립니다^^

댓글 전체

bbs/new.php: 66

    else // 코멘트
    {
        $comment = "[코] ";
        $comment_link = "#c_{$row[wr_id]}";
        $row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_parent]' ");
        $row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime, wr_content from $tmp_write_table where wr_id = '$row[wr_id]' ");
        $list[$i] = $row2;
        $list[$i][mb_id] = $row3[mb_id];
        $list[$i][wr_name] = $row3[wr_name];
        $list[$i][wr_email] = $row3[wr_email];
        $list[$i][wr_homepage] = $row3[wr_homepage];

        $list[$i][wr_content] = $row3[wr_content];

skin/new/basic/new.skin.php에서

 $list[ $]['wr_content'] 사용
new.skin.php에서 다음을 찾아,

<a href='{$list[$i][href]}'>{$list[$i][comment]}{$wr_subject}</a>

↓ 수정

<a href='{$list[$i][href]}'>{$list[$i][comment]}{$list[$i][wr_content]}{$wr_subject}</a>

그리고 cutting 위치 찾아서,

$list[$i][wr_content] = strip_tags($list[$i][wr_content], 40); //글자수 40은 관리자가 원하는 수치로 입력

추가
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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