m

최신글에 "Require content"라고 나타나네요.

· 2013-04-16 (화) 20:22:49 · 1161 · 1
image-1.jpg
아래와 같은 불당썸 최신글 소스를 사용하고 있습니다.
최신글을 불러올때는 문제가 없는데
최신글이 없을때 <img src='$g4[path]/images/no_img.jpg'> 식으로 했을때 그렇네요.

"Require content"라는 텍스트가 이미지 옆에 나타나네요.

이유가 뭔지 알려주시면 감사드리겠습니다.^^

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$is_crop = 1;
// $is_crop : 세로 높이가 $height를 넘을 때 crop 할 것인지를 결정
// 0 : crop 하지 않습니다
// 1 : 기본 crop
// 2 : 중간을 기준으로 crop

//불당썸---------------------------------------------------------------//
$img_width = 650; //표시할 이미지의 가로사이즈
$img_height = 450; //표시할 이미지의 세로사이즈

//언샾마스트 퀄리티(썸 노이즈바지)
$filter[type] = 99;
$filter[arg1] = 100;
$filter[arg2] = 1;
$filter[arg3] = 2;

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$no_img = $latest_skin_path."/img/no_img.jpg";

// 불당썸을 include
include_once("$g4[path]/lib/thumb.lib.php");
//불당썸---------------------------------------------------------------//

//$list_content = "450"; //내용길이
$cols = 6;
?>

<div>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
<?
//썸네일 생성
$thumfile = "";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];

// 업로드된 파일이 이미지라면
if (preg_match("/\.(jpg|gif|png|bmp)$/i", $file) && file_exists($file)) {
$thumb = thumbnail($file, $img_width, $img_height, 0, 1, 90, 0, "", $filter, $noimg); //첨부파일 언샾마스크추가
}
else {
//에디터에서 삽입한 이미지
if (eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) {
// data/cheditor------
$file = $g4[path].'/' . $tmp[0]; // 파일명
$thumb=thumbnail($file, $img_width, $img_height, 0, $is_crop, 90, 0, "", $filter, $noimg); //언샾마스크추가
}
}
if ($i>0 && $i%$cols==0) {
//echo "<tr><td colspan='$cols'></td><tr>";
}

if (preg_match("/\.(jpg|gif|png|bmp)$/i", $thumb) && file_exists($thumb)) {

echo "<li>";
echo "<a href='{$list[$i]['href']}'>";
echo "<img src='$thumb' border='0'>";
echo "</a>";
echo "</li>";
}
}
?>
<? if (count($list) == 0) { echo "<img src='$g4[path]/images/no_img.jpg'>"; } ?>
</ul>

첨부파일

image-1.jpg (172 KB)
0회 2013-04-16 20:22
|

댓글 1개

2013-04-27 (토) 12:37:34
자체 해결했습니다.^^
혹시나 이런 부분이 있으신분들을 위해서 답글답니다.

slideshow_buttontitle.js라는 부드럽게 깜빡거리는 소스가 있는게 거기에
B.append("Require content"); 부분이 입력이 되어 있어서 삭제를 했습니다.
thumb.lib.php도 찾아보고 이리저리 많이 헤멨네요.^^
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-04-17 조회 2,102
13-04-17 조회 1,284
13-04-17 조회 4,982
13-04-17 조회 2,933
13-04-17 조회 1,081
13-04-17 조회 825
13-04-16 조회 1,076
13-04-16 조회 1,162
13-04-16 조회 958
13-04-16 조회 1,636
13-04-16 조회 1,987
13-04-16 조회 1,844
13-04-16 조회 1,659
13-04-16 조회 1,153
13-04-16 조회 1,145
13-04-16 조회 3,553
13-04-16 조회 1,069
13-04-16 조회 972
13-04-16 조회 1,666
13-04-16 조회 949