AI박프로

특정 게시판만 이미지로 최신글뽑아내기

· 2012-04-09 (월) 15:30:09 · 1680 · 1
http://ilgiwon.com/gnu/bindex.php

특정 게시판만 이미지로 최신글뽑아내기 해보려는데 스킨 자료실에 적당한것이 없는것같습니다.

게시판 6개만 하단 최신글에 이미지 뽑아내려고합니다. 아래 6개 게시판입니다.
bm21,bm31,bm41,bm51,bm61,bm71
참고로 모두 다른그룹입니다.

특정 게시판만 이미지로 최신글뽑아내기 해보신분 도움좀 부탁드립니다.

감사합니다.

댓글 1개

// 최신글 추출 (다중 테이블)
function latest_multi($skin_dir="", $bo_table1,$bo_table2,$bo_table3,$bo_table4, $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_new_table] a, $g4[board_table] b
where a.bo_table = b.bo_table
and a.bo_table in('$bo_table1', '$bo_table2', '$bo_table3', '$bo_table4')
and a.wr_id = a.wr_parent
order by a.bn_id desc
limit $rows ";

$result = sql_query($sql);

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

$sql = "select * from $tmp_write_table where wr_id = '$board[wr_id]'";
$result2 = sql_query($sql);
$row2 = sql_fetch_array($result2);

$list[$i] = get_list($row2, $board, $latest_skin_path, $subject_len);
$list[$i][bo_table] = $board[bo_table];
}

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

return $content;
}
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
12-04-10 조회 956
12-04-10 조회 962
12-04-10 조회 1,634
12-04-10 조회 1,677
12-04-10 조회 1,133
12-04-09 조회 1,208
12-04-09 조회 949
12-04-09 조회 1,084
12-04-09 조회 1,122
12-04-09 조회 1,586
12-04-09 조회 1,755
12-04-09 조회 1,600
12-04-09 조회 1,674
12-04-09 조회 1,681
12-04-09 조회 1,960
12-04-09 조회 1,431
12-04-09 조회 1,811
12-04-09 조회 2,251
12-04-09 조회 1,018
12-04-09 조회 1,678