s

최신글 썸네일 오류

Untitled-1.gif
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://test.g2inet.kr/


메인 화면 최신글중

썸네일을 출력하는 스킨이(HIT갤러리, HIT 사진 자랑하기)

이미지를 등록했을경우 오류가 뜹니다...

이미지 등록안하고 텍스트만 등록하면 잘돼요


왜그런것일까요 ㅠㅠㅠㅠㅠ




소스 올립니다...

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb_neo';
$opts = explode("|",$options);

$img_cols=$opts[0];//가로 라인수
$img_width = $opts[1]; //갤러리형 썸네일 가로 크기
$img_height = $opts[2]; //갤러리형 썸네일 세로 크기
$img_quality = '100';


@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);

?>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff" style="padding-top:0px" align=center>
<tr>
<?

for ($i=0; $i<count($list); $i++)
{



$file = "$g4[path]/data/file/$bo_table/".$list[$i][file][0][file];
if (!file_exists($file) || !$list[$i][file][0][file]){//이미지가 없다면
$thumb = "$latest_skin_path/img/no_img.gif";
}else{
$thumb = thumbnail($file, $img_width, $img_height, 0, 1,$img_quality,"", $filter, $noimg); //언샾마스크추가
}







echo " <td valign=top>
<table width='99%' cellpadding='0' cellspacing='0' border='0' style='padding:0px;' >
<tr align=center>
<td style='padding-top:0px;'>
<table bgcolor='#ffffff' cellpadding='3' cellspacing='0' border='0' width='{$img_width}'>
<tr><td align='center' valign='middle' style='border:1px solid #cfcfcf'><a href='{$list[$i][href]}'>
<img src='{$thumb}' width='{$img_width}' height='{$img_height}' border='0' ></a></td>
</tr>
<tr><td height=25 align=center>{$list[$i][subject]}</td></tr>
</table>
</td>
</tr>
</table>
</td>
";



if($i !=0 && ($i+1)%$img_cols==0 &&( $i+1)<count($list)){
echo "</tr><tr>";
}
}

?>
</tr>
</table>

첨부파일

Untitled-1.gif (226.6 KB)
0회 2013-11-08 11:16
|

댓글 2개

thumbnail() 이 include 되어 있는지요...
그게 무슨 말씀이시죠?ㅠㅠ
그 소스를 어디에 어떻게 써야하는지 설명좀 부탁드려용

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고