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'] 사용
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은 관리자가 원하는 수치로 입력
추가
<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은 관리자가 원하는 수치로 입력
추가