그룹 최신글 하나 짜주세요 ~_~ 정보
그룹 최신글 하나 짜주세요 ~_~
본문
어디서 막히는지 모르겠습니다.
이전에 플록님의 언급이 있었으나, 제 지식으로는 해결이 어렵습니다. ^ ^;;
그룹에서 뽑아오고,
최신글 스킨을 통해 출력.
이 때, 게시물은 잘 뽑아오는데, 썸네일 생성에서 문제가 됩니다.
A그룹에 1, 2 게시판 있다면
1 게시판에서만 썸네일 생성 됩니다.
물론, 썸네일만 빼고 다른 것은 정상으로 출력 됩니다.
썸네일 생성 코드(list.skin.php)에서 문제가 되는데,
해결해 주시면~ 소정의 포인트 선물을 드려요!
참고링크
그룹 lib
썸네일 생성 최신글
댓글 전체
유아원님께서 사용하시는 베짱이님의 라이브러리 파일을 사용해서 그룹 최근이미지를 구현해 보려고 저역시 노력해본바 있습니다.
말씀하신 썸네일관련 문제로 결국 new.php를 수정해서 사용하고 있습니다.
이미지 파일을 위한 쿼리가 추가되었고, 그외 필요한 변수 몇개를 넣어준것 밖에 없습니다.
ectend/group_new.lib.php
응용을 위해 본문까지 끌어오도록 추가후 아래 붙인 latest.skin.php 파일과 함께 수정해서 테스트 마쳤습니다.
<?
if (!defined('_GNUBOARD_')) exit;
//new.php 수정, 그룹내 최근게시물+이미지 추출, phosay_group_new 최신글 스킨과 연동 - 플록
//echo group_new("phosay_group_simple", "sample_gal", "rand()", 10, 5, 14);
function group_new($skin_dir="", $gr_id="", $sort="", $rows=12, $mod = 6, $subject_len=14, $options="")
{
global $config;
global $g4;
$sql_common = " 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' ";//검색사용 체크된 게시판에서
if ($gr_id)
$sql_common .= " and b.gr_id = '$gr_id' and a.wr_id = a.wr_parent ";//원글만
//$sql_order = " order by a.bn_id desc ";//내림차순 정렬
//옵션에 따른 정렬방법 - asc, desc, rand()
if($sort) {
$sql_order = " order by";
if($sort == "desc")
$sql_order .= " a.bn_id desc ";//내림차순 정렬
if($sort == "asc")
$sql_order .= " a.bn_id asc ";//오름차순 정렬
if($sort == "rand()")
$sql_order .= " rand() "; //랜덤 추출
}
else {
$sql_order = " order by a.bn_id desc ";//내림차순 정렬
}
$sql = " select count(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
//$rows=12;//목록수, 여기서 저정시 호출문서보다 우선함
/*랜덤등으로 페이징 무의미
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
*/
$list = array();
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
$sql_common
$sql_order
limit $rows ";
$result = sql_query($sql);
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$tmp_write_table = $g4[write_prefix] . $row[bo_table];
if ($row[wr_id] == $row[wr_parent]) // 원글
{
$comment = "";
$comment_link = "";
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_id]' ");
$list[$i] = $row2;
$name = get_sideview($row2[mb_id], cut_str($row2[wr_name], $config[cf_cut_name]), $row2[wr_email], $row2[wr_homepage]);
// 당일인 경우 시간으로 표시함
$datetime = substr($row2[wr_datetime],0,10);
$datetime2 = $row2[wr_datetime];
if ($datetime == $g4[time_ymd])
$datetime2 = substr($datetime2,11,5);
else
$datetime2 = substr($datetime2,5,5);
}
else // 코멘트
{
$comment = "[코] ";
$comment_link = "#c_{$row[wr_id]}";
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_parent]' ");
$row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from $tmp_write_table where wr_id = '$row[wr_id]' ");
$list[$i] = $row2;
$list[$i][mb_id] = $row3[mb_id];
$list[$i][wr_name] = $row3[wr_name];
$list[$i][wr_email] = $row3[wr_email];
$list[$i][wr_homepage] = $row3[wr_homepage];
$name = get_sideview($row3[mb_id], cut_str($row3[wr_name], $config[cf_cut_name]), $row3[wr_email], $row3[wr_homepage]);
// 당일인 경우 시간으로 표시함
$datetime = substr($row3[wr_datetime],0,10);
$datetime2 = $row3[wr_datetime];
if ($datetime == $g4[time_ymd])
$datetime2 = substr($datetime2,11,5);
else
$datetime2 = substr($datetime2,5,5);
}
//이미지 파일
$sql_file = " select * from $g4[board_file_table] where bo_table = '$row[bo_table]' and wr_id = '$row2[wr_id]' order by bf_no ";
$result_file = sql_query($sql_file);
$row_file = sql_fetch_array($result_file);
$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
$list[$i][gr_id] = $row[gr_id];
$list[$i][bo_table] = $row[bo_table];
$list[$i][name] = $name;
$list[$i][comment] = $comment;
$list[$i][href] = "$g4[bbs_path]/board.php?bo_table=$row[bo_table]&wr_id=$row2[wr_id]{$comment_link}";
$list[$i][datetime] = $datetime;
$list[$i][datetime2] = $datetime2;
$list[$i][icon_new] = $datetime >= date("Y-m-d H:i:s", $g4['server_time'] - (48 * 3600));//new
$list[$i][gr_subject] = $row[gr_subject];
$list[$i][bo_subject] = $row[bo_subject];
$list[$i][wr_subject] = $row2[wr_subject];
//test line 본문내용까지 끌어옴
$list[$i][wr_content] = $row2[wr_content];
//
$list[$i][wr_hit] = $row2[wr_hit];
//분류
$list[$i][ca_name] = $row2[ca_name];
$list[$i][ca_name_href] = "$g4[bbs_path]/board.php?bo_table=$row[bo_table]&sca={$list[$i][ca_name]}";//&wr_id=$row2[wr_id]
//이미지 파일
$list[$i][bf_file] = $row_file['bf_file'];
$list[$i][bf_source] = $row_file['bf_source'];
}
//$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "?gr_id=$gr_id&view=$view&page=");
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
?>
latest.skin.php
그룹 최근이미지에서 썸네일을 직접 생성하는 부분입니다.
라이브러리 파일에서 본문을 끌어오도록 수정후 여기서 내용 일부가 보이도록 테스트 라인 추가 테스트 마쳤습니다.
아래 소스는 썸네일만 쭈욱 나열하는 갤러리 형태이므로 참고만 하시고,
유아원님께서 주로 사용하시는 썸네일 생성 경로나 썸네일 파일명에 맞게 수정하시면 될듯합니다.
참고로 유창화님의 썸네일 생성방식을 갤러리 리스트와 동일하게 적용하였습니다.
썸네일 생성경로 data/bo_table/thumb
썸네일 파일명 bf_file
이방식의 장점은 글 수정시 첨부 이미지를 교체할 경우 사용자 캐시의 영향을 받을수 있는
wr_id값을 사용하지 않도록 thumb 폴더에 원본 파일명의 썸네일을 생성하도록 되어있습니다.
for ($i=0; $i < count($list); $i++) {
$data_path = $g4['path'] . "/data/file/{$list[$i][bo_table]}";//라이브러리 파일 참조
$thumb_path = $data_path . '/thumb';
$thumb_size = 100;
$thumb_quality = 80;
if (!is_dir($thumb_path)) {
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
}
$gr_subject = cut_str($list[$i]['gr_subject'], 10);
$bo_subject = cut_str($list[$i]['bo_subject'], 14);
$wr_subject = get_text(cut_str($list[$i]['wr_subject'], 16));
//test line
$wr_content = get_text(cut_str($list[$i]['wr_content'], 16));
//
$ca_name = cut_str($list[$i]['ca_name'], 10);
if ($i > 0 && $i % $mod == 0)
echo "</tr><tr>";
$img = "<img src='$latest_skin_path/img/noimage.gif' border=0 width='100' title='이미지 없음'>";
$filename = $list[$i]['bf_file'];
$dest_file = $data_path .'/'. $filename;
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $filename) && file_exists($dest_file)){
//$thumb = "$thumb_path/".urlencode($row3['bf_file']);//공백문자 변형(+, %2B) 파일명으로 생성됨
$thumb = $thumb_path . '/' . $filename;
if (!file_exists($thumb)) {
$size = getimagesize($dest_file);
if ($size[2] == 1)
$src = imagecreatefromgif($dest_file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($dest_file);
else if ($size[2] == 3)
$src = imagecreatefrompng($dest_file);
else
break;
//가로,세로 최대사이즈 제한, Daeng`2님 팁
if ($size[0] >= $size[1]) {
$rate = $thumb_size / $size[0];
$width = $thumb_size;
$height = (int)($size[1] * $rate);
}
else {
$rate = $thumb_size / $size[1];
$width = (int)($size[0] * $rate);
$height = $thumb_size;
}
$dst = imagecreatetruecolor($width, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $width, $height, $size[0], $size[1]);
imagepng($dst, $thumb, $thumb_quality);
chmod($thumb, 0707);
}
if (file_exists($thumb))
$img = "<img src='$thumb' style='border: 1px solid silver;' title='" . $list[$i]['bf_source'] . " Hit: " . $list[$i]['wr_hit'] . "'>";
}
$style = "";
if ($list[$i]['icon_new'])
$style = " style='font-weight:bold;' ";
$subject = "<span $style>" . cut_str($list[$i]['wr_subject'], 16) . "</span>";
$comment_cnt = "";
if ($list[$i]['comment_cnt'])
$comment_cnt = " <a href=\"" . $list[$i]['comment_href'] . "\"><span style='font-size:7pt;'>" . $list[$i]['comment_cnt'] . "</span></a>";
//<a href='$file' rel='lightbox'>$img</a>
//<a href='" . $list[$i]['href'] . "&sca=" . $list[$i]['ca_name'] . "'>{$img}</a>
//<a href='$data_path . '/' . $file_name' rel='lightbox'>{$img}</a>
//내용일부 {$wr_content}
echo "
<td width='{$td_width}%' valign=top style='padding:20 0 5 0; border: 1px solid silver; word-break:break-all;'>
<table width=100% border=0 cellspacing=0 cellpadding=0 style='border-collapse: collapse;'>
<tr><td align=center><a href='{$dest_file}' rel='lightbox'>{$img}</a></td></tr>
<tr><td align=center style='line-height:110%; padding-top:5px; font-size:8pt;'><a href='" . $list[$i]['href'] . "&sca=" . $list[$i]['ca_name'] . "'>{$subject}</a>{$comment_cnt}<br>
<a href='" . $list[$i]['ca_name_href'] . "'><font color='silver'>[{$ca_name}]</a> " . $list[$i]['datetime2'] . "</font><br><a href='{$g4['bbs_path']}/board.php?bo_table={$list[$i]['bo_table']}'><font color='silver'>{$bo_subject}</font></a><br>{$wr_content}</td></tr>
</table>
</td>
";
}//for
말씀하신 썸네일관련 문제로 결국 new.php를 수정해서 사용하고 있습니다.
이미지 파일을 위한 쿼리가 추가되었고, 그외 필요한 변수 몇개를 넣어준것 밖에 없습니다.
ectend/group_new.lib.php
응용을 위해 본문까지 끌어오도록 추가후 아래 붙인 latest.skin.php 파일과 함께 수정해서 테스트 마쳤습니다.
<?
if (!defined('_GNUBOARD_')) exit;
//new.php 수정, 그룹내 최근게시물+이미지 추출, phosay_group_new 최신글 스킨과 연동 - 플록
//echo group_new("phosay_group_simple", "sample_gal", "rand()", 10, 5, 14);
function group_new($skin_dir="", $gr_id="", $sort="", $rows=12, $mod = 6, $subject_len=14, $options="")
{
global $config;
global $g4;
$sql_common = " 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' ";//검색사용 체크된 게시판에서
if ($gr_id)
$sql_common .= " and b.gr_id = '$gr_id' and a.wr_id = a.wr_parent ";//원글만
//$sql_order = " order by a.bn_id desc ";//내림차순 정렬
//옵션에 따른 정렬방법 - asc, desc, rand()
if($sort) {
$sql_order = " order by";
if($sort == "desc")
$sql_order .= " a.bn_id desc ";//내림차순 정렬
if($sort == "asc")
$sql_order .= " a.bn_id asc ";//오름차순 정렬
if($sort == "rand()")
$sql_order .= " rand() "; //랜덤 추출
}
else {
$sql_order = " order by a.bn_id desc ";//내림차순 정렬
}
$sql = " select count(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
//$rows=12;//목록수, 여기서 저정시 호출문서보다 우선함
/*랜덤등으로 페이징 무의미
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
*/
$list = array();
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
$sql_common
$sql_order
limit $rows ";
$result = sql_query($sql);
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$tmp_write_table = $g4[write_prefix] . $row[bo_table];
if ($row[wr_id] == $row[wr_parent]) // 원글
{
$comment = "";
$comment_link = "";
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_id]' ");
$list[$i] = $row2;
$name = get_sideview($row2[mb_id], cut_str($row2[wr_name], $config[cf_cut_name]), $row2[wr_email], $row2[wr_homepage]);
// 당일인 경우 시간으로 표시함
$datetime = substr($row2[wr_datetime],0,10);
$datetime2 = $row2[wr_datetime];
if ($datetime == $g4[time_ymd])
$datetime2 = substr($datetime2,11,5);
else
$datetime2 = substr($datetime2,5,5);
}
else // 코멘트
{
$comment = "[코] ";
$comment_link = "#c_{$row[wr_id]}";
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_parent]' ");
$row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from $tmp_write_table where wr_id = '$row[wr_id]' ");
$list[$i] = $row2;
$list[$i][mb_id] = $row3[mb_id];
$list[$i][wr_name] = $row3[wr_name];
$list[$i][wr_email] = $row3[wr_email];
$list[$i][wr_homepage] = $row3[wr_homepage];
$name = get_sideview($row3[mb_id], cut_str($row3[wr_name], $config[cf_cut_name]), $row3[wr_email], $row3[wr_homepage]);
// 당일인 경우 시간으로 표시함
$datetime = substr($row3[wr_datetime],0,10);
$datetime2 = $row3[wr_datetime];
if ($datetime == $g4[time_ymd])
$datetime2 = substr($datetime2,11,5);
else
$datetime2 = substr($datetime2,5,5);
}
//이미지 파일
$sql_file = " select * from $g4[board_file_table] where bo_table = '$row[bo_table]' and wr_id = '$row2[wr_id]' order by bf_no ";
$result_file = sql_query($sql_file);
$row_file = sql_fetch_array($result_file);
$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
$list[$i][gr_id] = $row[gr_id];
$list[$i][bo_table] = $row[bo_table];
$list[$i][name] = $name;
$list[$i][comment] = $comment;
$list[$i][href] = "$g4[bbs_path]/board.php?bo_table=$row[bo_table]&wr_id=$row2[wr_id]{$comment_link}";
$list[$i][datetime] = $datetime;
$list[$i][datetime2] = $datetime2;
$list[$i][icon_new] = $datetime >= date("Y-m-d H:i:s", $g4['server_time'] - (48 * 3600));//new
$list[$i][gr_subject] = $row[gr_subject];
$list[$i][bo_subject] = $row[bo_subject];
$list[$i][wr_subject] = $row2[wr_subject];
//test line 본문내용까지 끌어옴
$list[$i][wr_content] = $row2[wr_content];
//
$list[$i][wr_hit] = $row2[wr_hit];
//분류
$list[$i][ca_name] = $row2[ca_name];
$list[$i][ca_name_href] = "$g4[bbs_path]/board.php?bo_table=$row[bo_table]&sca={$list[$i][ca_name]}";//&wr_id=$row2[wr_id]
//이미지 파일
$list[$i][bf_file] = $row_file['bf_file'];
$list[$i][bf_source] = $row_file['bf_source'];
}
//$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "?gr_id=$gr_id&view=$view&page=");
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
?>
latest.skin.php
그룹 최근이미지에서 썸네일을 직접 생성하는 부분입니다.
라이브러리 파일에서 본문을 끌어오도록 수정후 여기서 내용 일부가 보이도록 테스트 라인 추가 테스트 마쳤습니다.
아래 소스는 썸네일만 쭈욱 나열하는 갤러리 형태이므로 참고만 하시고,
유아원님께서 주로 사용하시는 썸네일 생성 경로나 썸네일 파일명에 맞게 수정하시면 될듯합니다.
참고로 유창화님의 썸네일 생성방식을 갤러리 리스트와 동일하게 적용하였습니다.
썸네일 생성경로 data/bo_table/thumb
썸네일 파일명 bf_file
이방식의 장점은 글 수정시 첨부 이미지를 교체할 경우 사용자 캐시의 영향을 받을수 있는
wr_id값을 사용하지 않도록 thumb 폴더에 원본 파일명의 썸네일을 생성하도록 되어있습니다.
for ($i=0; $i < count($list); $i++) {
$data_path = $g4['path'] . "/data/file/{$list[$i][bo_table]}";//라이브러리 파일 참조
$thumb_path = $data_path . '/thumb';
$thumb_size = 100;
$thumb_quality = 80;
if (!is_dir($thumb_path)) {
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
}
$gr_subject = cut_str($list[$i]['gr_subject'], 10);
$bo_subject = cut_str($list[$i]['bo_subject'], 14);
$wr_subject = get_text(cut_str($list[$i]['wr_subject'], 16));
//test line
$wr_content = get_text(cut_str($list[$i]['wr_content'], 16));
//
$ca_name = cut_str($list[$i]['ca_name'], 10);
if ($i > 0 && $i % $mod == 0)
echo "</tr><tr>";
$img = "<img src='$latest_skin_path/img/noimage.gif' border=0 width='100' title='이미지 없음'>";
$filename = $list[$i]['bf_file'];
$dest_file = $data_path .'/'. $filename;
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $filename) && file_exists($dest_file)){
//$thumb = "$thumb_path/".urlencode($row3['bf_file']);//공백문자 변형(+, %2B) 파일명으로 생성됨
$thumb = $thumb_path . '/' . $filename;
if (!file_exists($thumb)) {
$size = getimagesize($dest_file);
if ($size[2] == 1)
$src = imagecreatefromgif($dest_file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($dest_file);
else if ($size[2] == 3)
$src = imagecreatefrompng($dest_file);
else
break;
//가로,세로 최대사이즈 제한, Daeng`2님 팁
if ($size[0] >= $size[1]) {
$rate = $thumb_size / $size[0];
$width = $thumb_size;
$height = (int)($size[1] * $rate);
}
else {
$rate = $thumb_size / $size[1];
$width = (int)($size[0] * $rate);
$height = $thumb_size;
}
$dst = imagecreatetruecolor($width, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $width, $height, $size[0], $size[1]);
imagepng($dst, $thumb, $thumb_quality);
chmod($thumb, 0707);
}
if (file_exists($thumb))
$img = "<img src='$thumb' style='border: 1px solid silver;' title='" . $list[$i]['bf_source'] . " Hit: " . $list[$i]['wr_hit'] . "'>";
}
$style = "";
if ($list[$i]['icon_new'])
$style = " style='font-weight:bold;' ";
$subject = "<span $style>" . cut_str($list[$i]['wr_subject'], 16) . "</span>";
$comment_cnt = "";
if ($list[$i]['comment_cnt'])
$comment_cnt = " <a href=\"" . $list[$i]['comment_href'] . "\"><span style='font-size:7pt;'>" . $list[$i]['comment_cnt'] . "</span></a>";
//<a href='$file' rel='lightbox'>$img</a>
//<a href='" . $list[$i]['href'] . "&sca=" . $list[$i]['ca_name'] . "'>{$img}</a>
//<a href='$data_path . '/' . $file_name' rel='lightbox'>{$img}</a>
//내용일부 {$wr_content}
echo "
<td width='{$td_width}%' valign=top style='padding:20 0 5 0; border: 1px solid silver; word-break:break-all;'>
<table width=100% border=0 cellspacing=0 cellpadding=0 style='border-collapse: collapse;'>
<tr><td align=center><a href='{$dest_file}' rel='lightbox'>{$img}</a></td></tr>
<tr><td align=center style='line-height:110%; padding-top:5px; font-size:8pt;'><a href='" . $list[$i]['href'] . "&sca=" . $list[$i]['ca_name'] . "'>{$subject}</a>{$comment_cnt}<br>
<a href='" . $list[$i]['ca_name_href'] . "'><font color='silver'>[{$ca_name}]</a> " . $list[$i]['datetime2'] . "</font><br><a href='{$g4['bbs_path']}/board.php?bo_table={$list[$i]['bo_table']}'><font color='silver'>{$bo_subject}</font></a><br>{$wr_content}</td></tr>
</table>
</td>
";
}//for
정말 감사드립니다! ^ ^
지금 당장 테스트 해봐야겠어요! ㅎ
지금 당장 테스트 해봐야겠어요! ㅎ
윽,,
포인트를 그것도 왕창 주시다니,,^^
부담스럽지만 돌려드리는 것도 예의가 아닌듯하니,
포인트가 꼭 필요한 다른 분께 드리기로 하고 감사히 받겠습니다.
감사합니다.
포인트를 그것도 왕창 주시다니,,^^
부담스럽지만 돌려드리는 것도 예의가 아닌듯하니,
포인트가 꼭 필요한 다른 분께 드리기로 하고 감사히 받겠습니다.
감사합니다.
유아원님!!!
플록님의 가르침대로 하였지만 저의 경우에는 아주 오레된 파일은 나타나지 않습니다.
g3 에서 g4로 업한 자료입니다.
혹시 최근게시물의 시간제한이 걸려있나요?
플록님의 가르침대로 하였지만 저의 경우에는 아주 오레된 파일은 나타나지 않습니다.
g3 에서 g4로 업한 자료입니다.
혹시 최근게시물의 시간제한이 걸려있나요?
아주 오레된 파일은 나타나지 않습니다.
혹시 최근게시물의 시간제한이 걸려있나요?
저는 못찼갰던데, 있다면 어디부분이지요?
혹시 최근게시물의 시간제한이 걸려있나요?
저는 못찼갰던데, 있다면 어디부분이지요?
관리자 '기본환경설정/최근게시물 삭제' 입니다.
아하!!!
요런 기능이 있었군요...
이 기능의 제한을 받지 않게 하려면 어디를 손 보아야 하는가요?
요런 기능이 있었군요...
이 기능의 제한을 받지 않게 하려면 어디를 손 보아야 하는가요?
new테이블이 아닌 개별 게시판 테이블에서 긁어오면 되겠지만 어떨지 모르겠습니다.
new 테이블을 쓰는 이유에 대하여 예전에 많은 말씀들이 있었던 것으로 압니다.
대강 속도나 디비부하등을 중점적으로 말씀하신 것으로 기억나는군요.
new 테이블을 쓰는 이유에 대하여 예전에 많은 말씀들이 있었던 것으로 압니다.
대강 속도나 디비부하등을 중점적으로 말씀하신 것으로 기억나는군요.
플록님 감사합니다.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=1843
의 경우에는 '기본환경설정/최근게시물 삭제' 기능의 제한을 받지 않던데,
이것도 그런 문제가 발생하는가요?
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=2320&sca=&sfl=wr_name%2C1&stx=mando&sop=and
여기는 만도님의 소스입니다.
이것은 시간제한을 받는군요...
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=1843
의 경우에는 '기본환경설정/최근게시물 삭제' 기능의 제한을 받지 않던데,
이것도 그런 문제가 발생하는가요?
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=2320&sca=&sfl=wr_name%2C1&stx=mando&sop=and
여기는 만도님의 소스입니다.
이것은 시간제한을 받는군요...
한가지 더 질문있습니다.
썸네일 파일명 bf_file 는 특별한 의미가 있는 것인가요?
아니면 abcd 등 아무렇게나 고칠 수 있는 것인가요?
썸네일 파일명 bf_file 는 특별한 의미가 있는 것인가요?
아니면 abcd 등 아무렇게나 고칠 수 있는 것인가요?
bf_file은 file 테이블의 업로드된 파일명 필드이므로 마음대로 고치면 안됩니다.