a

카테고리별 출력 하려면 어찌 수정해야 하는가요 ?

function latest_banner($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
    global $g4;

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

    $list = array();

    $sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
    $board = sql_fetch($sql);

    $tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
    $sql = " select * from $tmp_write_table where wr_4='1' order by wr_3 asc limit 0, $rows ";
    //explain($sql);
    $result = sql_query($sql);
    for ($i=0; $row = sql_fetch_array($result); $i++)
        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
 
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();

    return $content;
}

이 부분에서 어찌 수정하면 배너를 카테고리별로 최근게시물에 출력을 할수 잇는가요  ?

제가 왕초보다보니 아무리 삽질해도 어찌해야 할찌 고민임니다 ... 

그누보드에서 보니 카테고리별 출력은

$sql = " select * from $tmp_write_table where wr_comment > -1 && ca_name = '$cat' order by wr_id desc limit 0, $rows ";
 
위 두소스를 합칠라면 어찌 해야 하는가요  ?  위의 여유필드도 적용되고 아래 카테고리별로도 출력이 가능 하게 할려면요  ~  ????
|

댓글 1개

어떤 최신글 스킨에 적용하시려는지 알 수 있을까요?.....
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 1,385
19년 전 조회 2,281
19년 전 조회 1,600
19년 전 조회 1,385
19년 전 조회 1,686
19년 전 조회 1,220
19년 전 조회 1,603
19년 전 조회 1,400
19년 전 조회 1,506
19년 전 조회 1,711
19년 전 조회 1,603
19년 전 조회 1,529
19년 전 조회 1,515
19년 전 조회 1,516
19년 전 조회 1,405
19년 전 조회 1,538
19년 전 조회 1,598
19년 전 조회 1,774
19년 전 조회 1,251
19년 전 조회 2,017
🐛 버그신고