갤러리, 동영상 최신글의 섬네일 이미지 표시문제 정보
갤러리, 동영상 최신글의 섬네일 이미지 표시문제본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://www.ican2080.com/
위 주소로 가보시면 메인에 갤러리와 동영상 게시판의 최신글이 있는데
섬네일이 no image로만 표시가 되어지네요..
무엇이 문제인가요?
<latest.skin.php>
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr><td align=center>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr height=25><td align=left valign=bottom colspan=3> <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td></tr>
<tr><td width=78 height=4><img src="<?=$latest_skin_path?>/img/bgl.gif" border=0></td>
<td width=34 height=4><img src="<?=$latest_skin_path?>/img/bgm.gif" border=0></td>
<td width=100% height=4 background="<?=$latest_skin_path?>/img/bgr.gif"></td></tr></table>
</td></tr>
<tr><td align=center>
<table width=100%>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo '<td width=20> </td>';
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/thumb/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
echo <<<HEREDOC
<td align=center>
<table border=0 cellpadding=0 cellspacing=0 align=center width=100%>
<tr><td height=5 align=center></td></tr>
<tr><td align=center><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' border='0' width=120 height=100 align='absmiddle' title='$title'></a></td></tr>
<tr><td height=5 align=center></td></tr>
<tr><td height=20 align=center><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$list[$i][subject]}</a></td></tr></table>
</td>
HEREDOC;
}
?>
</tr>
<? if (count($list) == 0) { ?>
<tr><td colspan=2 align='center' height=25>게시물이 없습니다.</td></tr>
<? } ?>
</table>
</td></tr></table>
오류 주소 : http://www.ican2080.com/
위 주소로 가보시면 메인에 갤러리와 동영상 게시판의 최신글이 있는데
섬네일이 no image로만 표시가 되어지네요..
무엇이 문제인가요?
<latest.skin.php>
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr><td align=center>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr height=25><td align=left valign=bottom colspan=3> <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td></tr>
<tr><td width=78 height=4><img src="<?=$latest_skin_path?>/img/bgl.gif" border=0></td>
<td width=34 height=4><img src="<?=$latest_skin_path?>/img/bgm.gif" border=0></td>
<td width=100% height=4 background="<?=$latest_skin_path?>/img/bgr.gif"></td></tr></table>
</td></tr>
<tr><td align=center>
<table width=100%>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo '<td width=20> </td>';
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/thumb/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
echo <<<HEREDOC
<td align=center>
<table border=0 cellpadding=0 cellspacing=0 align=center width=100%>
<tr><td height=5 align=center></td></tr>
<tr><td align=center><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' border='0' width=120 height=100 align='absmiddle' title='$title'></a></td></tr>
<tr><td height=5 align=center></td></tr>
<tr><td height=20 align=center><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$list[$i][subject]}</a></td></tr></table>
</td>
HEREDOC;
}
?>
</tr>
<? if (count($list) == 0) { ?>
<tr><td colspan=2 align='center' height=25>게시물이 없습니다.</td></tr>
<? } ?>
</table>
</td></tr></table>
댓글 전체
동영상에서 이미지를 추출해내고 추출한 이미지를 토대로 썸네일을 생성해내야죠.