전체 최신글에서 게시판 제외 하는 방법 좀 알려주세요 > 그누4 질문답변

그누4 질문답변

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

전체 최신글에서 게시판 제외 하는 방법 좀 알려주세요 정보

전체 최신글에서 게시판 제외 하는 방법 좀 알려주세요

본문

똑같은 질문은 한 적이 있는데 ㅠ_ㅠ
코드가 틀려놓으니..손 댈 수가 없네요..ㅠ_ㅠ
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=75687&sca=&sfl=wr_subject&stx=%C0%FC%C3%BC%B0%D4%BD%C3%B9%B0+%C1%A6%BF%DC&sop=and

expand에 소스입니다.
<?
function latest_scroll($skin_dir="",$rows, $subject_len,$options="")
{

    global $config;
    global $g4;

    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";

    $list = array();


    $sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
        from $g4[board_new_table] a, $g4[board_table] b,  $g4[group_table] c
        where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' and  a.wr_id = a.wr_parent
        order by a.bn_id desc limit 0,$rows";


    $result = sql_query($sql);

    for ($i=0; $row = sql_fetch_array($result); $i++)
    {
        $tmp_write_table = $g4[write_prefix].$row[bo_table];


        $row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_id]' ");
        $list[$i] = $row2;
        $list[$i][bo_table] = $row[bo_table];
        $list[$i][bo_subject] = $row[bo_subject];
        $list[$i][gr_subject] = $row[gr_subject];
        $list[$i][href] = "$g4[bbs_path]/board.php?bo_table=$row[bo_table]&wr_id=$row2[wr_id]";
        $list[$i][wr_subject] = cut_str($row2[wr_subject], $subject_len, "…");
        $list[$i][comment_cnt] = "";
        if ($row2[wr_comment])
          $list[$i][comment_cnt] = "($row2[wr_comment])";
    }

        ob_start();
        include "$latest_skin_path/latest.skin.php";
        $content = ob_get_contents();
        ob_end_clean();

    return $content;
}
?>

댓글 전체

투사님이 알려주신 방법을 사용하면,  게시물이 보이지 않는게 아니라 공백으로 처리되어 노출이 됩니다.. 제목만 뜨지 않을뿐 이라는거죠.... 그래도 투사님 덕에 힌트 얻어서 root님 답변 참고삼아 해결했네요

$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
        from $g4[board_new_table] a, $g4[board_table] b,  $g4[group_table] c
        where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' and  a.wr_id = a.wr_parent
        and a.bo_table <> '특정게시판'  order by a.bn_id desc limit 0,$rows";

이렇게 하니 되네요^^
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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