최신글 썸네일 오류 > 그누4 질문답변

그누4 질문답변

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

최신글 썸네일 오류 정보

최신글 썸네일 오류

본문

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

오류 주소 : 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>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT