최근게시물 답변 부탁드립니다. > 그누4 질문답변

그누4 질문답변

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

최근게시물 답변 부탁드립니다. 정보

최근게시물 답변 부탁드립니다.

본문

http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=1930 << 여기에있는 스킨을 이용할경우 게시물이 스크롤되어 올라갑니다.
 
제가 초보라 스크롤되는 부분을 몰라 latest.skin.php에서 스크롤되지않게는 못하였지만 시간을 길게주었습니다.
 
아래 소스는 new_scroll_latest.lib.php파일의 소스인데 게시물이 스크롤되지않고 랜덤으로 보이게 할려면 어느부분을 어떻게 고쳐야되나요?
이 파일이 아니면 latest.skin.php에서 수정하여야하나요?
답변부탁드립니다.
<?
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<>'1013' and  a.bo_table<>'1013' and 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;
}
?>

댓글 전체

너무 감사합니다^^
혹시 기간 - 최근 몇일간의 입력된 글을 뽑아옴. 100이라 입력하면 최근 100일간의 글을 뽑아옴
이런거까지 물어보면 안되겠죠??^^;;
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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