모바일 최신게시글 출력중에 특정 게시판만 하고 싶어요..님들.. 채택완료
모바일 통합게시판 최신게시글 출력하는 소스인데요..
특정 게시판 예를 들어 qna 게시판글만 출력하고 싶은데..
어떻게 손을 대어야 할지 모르겠습니다..
지도 부탁드립니다..꾸벅!
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
- 통합 최신글
for($i=0;$i $list_selected=$nbsp=$wr_comment=""; $list[$i]['subject'] = conv_subject($list[$i]['wr_subject'], $subject_len, "…"); if($wr_id==$list[wr_id]) $list_selected="class='list_selected'"; $reply = $list['wr_reply']; if($list[$i][wr_reply]){ for ($k=0; $k $list[$i]['subject']=$nbsp."[re]".$list['subject']; } if($list[$i][wr_comment]){ $cmt=sql_fetch("select wr_datetime from ".$g4[write_prefix].$list[$i][bo_table]." where wr_is_comment=1 and wr_parent='$list[$i][wr_id]' order by wr_datetime desc"); if ($cmt[$i]['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - 86400)) $wr_comment="{$list[$i][wr_comment]}"; else $wr_comment="{$list[$i][wr_comment]}"; } $icon_secret = ""; $contents = $list[$i][wr_subject]; if (strstr($list[$i]['wr_option'], "secret")){ $icon_secret = " $contents="비밀글입니다."; } $icon_new = ""; if ($list[$i]['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - ($board['bo_new'] * 3600))) $icon_new = " ?>
";
";=$list[$i][subject]?> =$wr_comment?>}?>
=$list[$i][bo_subject]?> / =$list[$i][wr_name]?> / =date("Y-m-d",strtotime($list[$i][wr_datetime]))?>
}?>
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인