최근그룹이미지 오류 납니다. 정보
최근그룹이미지 오류 납니다.
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : cutiey.com/y
이미지원본파일이 있어도 이미지가 안타나고 이미지없을때나타나는 이미지만 나타납니다.ㅜㅜ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 7; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 80; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>
<table width=95% border=0 cellpadding='0' cellspacing='5' align='center'>
<tr><td colspan=<?=$cols;?> height=10></td></tr>
<tr><td colspan=<?=$cols?> height=10></td></tr>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="100%" align="center" valign='top' height="15">
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][file][0][file];
if (is_file($thumb)) {
$img = $thumb;
}else if(!is_file($img)){
$img="$latest_skin_path/img/noimg.gif";
}
$style = "font-family:돋움; font-size:8pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:8pt; color:#424542;' ";
$subject = "<span $style>".cut_str($list[$i][subject],30)."</span>"; //제목 글자수 자르기
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table width='75' cellpadding='0' cellspacing='0' border='0'>";
echo " <tr><td valign='top' align='center'><a href='{$list[$i]['href']}' onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\"><img src='$img' width='95' height='60' border='0'></a></td></tr>";
echo " <tr><td height='21' align='center'><a href='{$list[$i]['href']}'><b><span style='font-size:10pt;'><font color='#424542'>{$subject}</font></span></b></a></td></tr></table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table></td>
</tr>
</table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
imageHandle.document.write("<title> </title>");
imageHandle.document.write("<style>");
imageHandle.document.write("*{margin:0;padding:0;border:0;}");
imageHandle.document.write("</style>");
imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
오류 주소 : cutiey.com/y
이미지원본파일이 있어도 이미지가 안타나고 이미지없을때나타나는 이미지만 나타납니다.ㅜㅜ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 7; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 80; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>
<table width=95% border=0 cellpadding='0' cellspacing='5' align='center'>
<tr><td colspan=<?=$cols;?> height=10></td></tr>
<tr><td colspan=<?=$cols?> height=10></td></tr>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="100%" align="center" valign='top' height="15">
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][file][0][file];
if (is_file($thumb)) {
$img = $thumb;
}else if(!is_file($img)){
$img="$latest_skin_path/img/noimg.gif";
}
$style = "font-family:돋움; font-size:8pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:8pt; color:#424542;' ";
$subject = "<span $style>".cut_str($list[$i][subject],30)."</span>"; //제목 글자수 자르기
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table width='75' cellpadding='0' cellspacing='0' border='0'>";
echo " <tr><td valign='top' align='center'><a href='{$list[$i]['href']}' onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\"><img src='$img' width='95' height='60' border='0'></a></td></tr>";
echo " <tr><td height='21' align='center'><a href='{$list[$i]['href']}'><b><span style='font-size:10pt;'><font color='#424542'>{$subject}</font></span></b></a></td></tr></table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table></td>
</tr>
</table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
imageHandle.document.write("<title> </title>");
imageHandle.document.write("<style>");
imageHandle.document.write("*{margin:0;padding:0;border:0;}");
imageHandle.document.write("</style>");
imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
댓글 전체

현재 게시판 리스트의 썸네일경로가
http://cutiey.com/y/data/file/04_4/thumb/4
이런식으로 되어있네요
04_4가 뭔지 확실히는 모르겟지만..
if (is_file($thumb)) {
$img = $thumb;
}else if(!is_file($img)){
$img="$latest_skin_path/img/noimg.gif";
}
이부분에서 $thumb = $thumb_path. "/". $list[$i][file][0][file];
이부분의 파일이 없으니 img가 당연히 noimg로 나오는게 아닐까요
썸네일경로를 맞춰줘보세요~
$thumb = $thumb_path. "/04_4가 뭔질모르겠네요/". $list[$i][wr_id];
http://cutiey.com/y/data/file/04_4/thumb/4
이런식으로 되어있네요
04_4가 뭔지 확실히는 모르겟지만..
if (is_file($thumb)) {
$img = $thumb;
}else if(!is_file($img)){
$img="$latest_skin_path/img/noimg.gif";
}
이부분에서 $thumb = $thumb_path. "/". $list[$i][file][0][file];
이부분의 파일이 없으니 img가 당연히 noimg로 나오는게 아닐까요
썸네일경로를 맞춰줘보세요~
$thumb = $thumb_path. "/04_4가 뭔질모르겠네요/". $list[$i][wr_id];