답변글을 보이지않게하고 원글을 볼때만 ..... 정보
답변글을 보이지않게하고 원글을 볼때만 .....본문
답변글이 하단에 표시되게 하거나 할수없을까요?
생각이....
댓글 전체

가능은 하지만 현재 그누보드의 구조상 대수술을 해야만 가능할것 같은데요.
아래처럼 해 볼 수 있지만, 페이징 작업이 필요하겠네요.
1) bbs/list.php에서 쿼리 결과로 저장된 $list를 버리고 원글만 쿼리.
skin/list.skin.php에 아래 추가
unset($list);
$result = sql_query("select * from $write_table where wr_reply='' and wr_is_comment=0 order by wr_num desc");
$top_count = mysql_num_rows($result);
// 원글만 리스트
for ($i=0; $i<$top_count; $i++) {
$list[$i]=mysql_fetch_array($result);
$list[$i][num]=$top_count-$i;
$list[$i][href] = "./board.php?bo_table=$bo_table&wr_id=".$list[$i][wr_id];
}
2) skin/view.skin.php
답변글 가져오는 쿼리와 목록 추가
1) bbs/list.php에서 쿼리 결과로 저장된 $list를 버리고 원글만 쿼리.
skin/list.skin.php에 아래 추가
unset($list);
$result = sql_query("select * from $write_table where wr_reply='' and wr_is_comment=0 order by wr_num desc");
$top_count = mysql_num_rows($result);
// 원글만 리스트
for ($i=0; $i<$top_count; $i++) {
$list[$i]=mysql_fetch_array($result);
$list[$i][num]=$top_count-$i;
$list[$i][href] = "./board.php?bo_table=$bo_table&wr_id=".$list[$i][wr_id];
}
2) skin/view.skin.php
답변글 가져오는 쿼리와 목록 추가