혹시 저같은 경험 있으신분 ... 하다하다 진짜 모르겟네요.. 정보
혹시 저같은 경험 있으신분 ... 하다하다 진짜 모르겟네요..
관련링크
본문
제품소개 부분의 이미지를 클릭하면..
"글이 존재하지 않습니다."
"글이 삭제되었거나 이동된 경우 입니다."
이렇게 뜬다음 /bbs/board.php?bo_table=product_07으로 이동됩니다..
갤러리부분은 7개의 메뉴중에 가장 최신 갤러리만 올라올수 있도록
<?=latest_group("g4_gallery", "product", 1, 15)?> 소스로 하였습니다.
그런데 다른 메뉴의 이미지는 "No img" 텍스트만 나오고
제일 마지막 메뉴의 /bbs/board.php?bo_table=product_07 만 정상적으로 나옵니다.
도저희 모르겟네요 ㅡㅡ;
----index.php----
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/userfunction.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/userfunction.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
?>
---userfunction.lib---
<?
if (!defined('_GNUBOARD_')) exit;
/// 함수 정의 시작
if (!defined('_GNUBOARD_')) exit;
/// 함수 정의 시작
// 최신글 추출 - 선택한 그룹별로 원하는 수만큼 보여줌
function latest_group($skin_dir="", $gr_id, $rows=10, $subject_len=40, $category="", $orderby="")
{
global $config;
global $g4;
function latest_group($skin_dir="", $gr_id, $rows=10, $subject_len=40, $category="", $orderby="")
{
global $config;
global $g4;
$list = array();
$limitrows = $rows;
$limitrows = $rows;
$sqlgroup = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' and bo_use_search=1 order by bo_order_search";
$rsgroup = sql_query($sqlgroup);
$rsgroup = sql_query($sqlgroup);
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";
for ($j=0, $k=0; $rowgroup=sql_fetch_array($rsgroup); $j++) {
$bo_table = $rowgroup[bo_table];
$bo_table = $rowgroup[bo_table];
// 테이블 이름구함
$sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$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_is_comment = 0 ";
$sql .= (!$category) ? "" : " and ca_name = '$category' ";
$sql .= (!$orderby) ? " order by wr_id desc " : " order by $orderby desc, wr_id desc ";
$sql .= " limit $limitrows";
$sql = "select * from $tmp_write_table where wr_is_comment = 0 ";
$sql .= (!$category) ? "" : " and ca_name = '$category' ";
$sql .= (!$orderby) ? " order by wr_id desc " : " order by $orderby desc, wr_id desc ";
$sql .= " limit $limitrows";
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++, $k++) {
if(!$orderby) $op_list[$k] = $row[wr_datetime];
else {
$op_list[$k] = is_string($row[$orderby]) ? sprintf("%-256s", $row[$orderby]) : sprintf("%016d", $row[$orderby]);
$op_list[$k] .= $row[wr_datetime];
}
else {
$op_list[$k] = is_string($row[$orderby]) ? sprintf("%-256s", $row[$orderby]) : sprintf("%016d", $row[$orderby]);
$op_list[$k] .= $row[wr_datetime];
}
$list[$k] = get_list($row, $board, $latest_skin_path, $subject_len);
$list[$k][bo_table] = $board[bo_table];
$list[$k][bo_subject] = $board[bo_subject];
$list[$k][bo_subject] = $board[bo_subject];
$list[$k][bo_wr_subject] = cut_str($board[bo_subject] . $list[$k][wr_subject], $subject_len);
}
}
if($k>0) array_multisort($op_list, SORT_DESC, $list);
if($k>$rows) array_splice($list, $rows);
}
}
if($k>0) array_multisort($op_list, SORT_DESC, $list);
if($k>$rows) array_splice($list, $rows);
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
/// 함수 정의 끝
?>
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
/// 함수 정의 끝
?>
댓글 전체

<?=latest_group("g4_gallery", "product_01", 1, 15)?> 아닌가요?
그룹으로 뽑으셨으니...
<?=latest_group("g4_gallery", "이부분이그룹명이겠네요(그룹아이디)", 1, 15)?>
<?=latest_group("g4_gallery", "이부분이그룹명이겠네요(그룹아이디)", 1, 15)?>
http://ilsindoor.maru.net/bbs/group.php?gr_id=product
접속해 보시면...이 그룹에는 2개의 게시판뿐이 없네요?
제품정보 메뉴에는 서브메뉴 7개가 존재해야 하는데..
그룹을 잘못 설정하셨거나, 설정한 그룹안에 게시판이 없는거 아닐까 생각되네요?
접속해 보시면...이 그룹에는 2개의 게시판뿐이 없네요?
제품정보 메뉴에는 서브메뉴 7개가 존재해야 하는데..
그룹을 잘못 설정하셨거나, 설정한 그룹안에 게시판이 없는거 아닐까 생각되네요?

흠..분명히 그룹안에 7개의 게시판이 있는데 왜일까