테스트 사이트 - 개발 중인 베타 버전입니다

모바일 최신게시글 출력중에 특정 게시판만 하고 싶어요..님들.. 채택완료

행복의길 11년 전 조회 4,112

모바일 통합게시판 최신게시글 출력하는 소스인데요..

특정 게시판 예를 들어 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 = "";

    ?>

     

  • / /

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
SLOOP
11년 전

이것보다 더 위에 부분이 필요할꺼같은데요.

$list 값넣어주는 부분

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인