최신 갤러리 이미지 적용시 이미지 엑박이요ㅠ

· 2013-02-27 (수) 18:38:06 · 1384 · 2
123.PNG
321.PNG
최신 갤러리 이미지 적용시
이미지가 엑박이에요...
경로 문제인거 같은데ㅜㅜ 도와주세요
이미지도 엑박이고 이미지 클릭시 오류가 납니다
공지사항같은 텍스트로된 최신글은 오류가 안나는데
꼭 이미지만 사용하면 에러가 나요ㅜ

참고로 html 폴더에 그누보드 폴더가 있구요

이게 소스에요ㅜ 죄송해요 요며칠 계속 같은글만 써서

<?
if (!defined("_GNUBOARD_")) exit; //
?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0" id="table1">
<tr height="1">
<td bgcolor="#d9d9d9" colspan="3"></td>
</tr>
<tr>
<td width="1" bgcolor="#d9d9d9"></td>
<td>
<table cellpadding="0" cellspacing="2" width="100%" id="table2">
<tr>
<td background="<?=$latest_skin_path?>/img/title_bg_25.gif">
<table cellpadding="5" cellspacing="0" width="100%" border="0" id="table3">
<tr height="25">
<td>
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#555555" ><b><?=$board[bo_subject]?></b></font></a></td>
<td align="right">
<img src='<?=$latest_skin_path?>/img/icon.gif'><span style="font-size: 12px; color: #646464; font-family:dotum; letter-spacing:-1;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'> 더 보기</a></span> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="1" bgcolor="#d9d9d9"></td>
</tr>
<tr height="1">
<td bgcolor="#d9d9d9" colspan="3"></td>
</tr>
</table>

<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0" id="table6">
<tr height="5"><td width="1" bgcolor="#d9d9d9" height="3"></td>
<td colspan="2" height="3"></td>
<td width="1" bgcolor="#d9d9d9" height="3"></td></tr>
<? for ($i=0; $i<count($list); $i++) {?>
<tr>
<td width="1" bgcolor="#d9d9d9"></td>
<td width="5"></td>
<td height="21">

<table width=100% cellpadding=0 cellspacing=0 style="border-collapse:collapse;" style="border-top-width:0; border-right-width:0; border-bottom-width:0; border-left-width:0; border-top-color:rgb(181,181,181); border-right-colorrgb(181,181,181); border-bottom-color:rgb(181,181,181); border-left-color:rgb(181,181,181); border-style:solid;" id="table7">
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>

<tr>
<td width="100%" style="border-width:0; border-color:black; border-style:solid;">
<table width=0 border=0 id="table8">
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo '';

$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".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 width='0' valign='top' align=''>
<table border="0" id="table2" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" id="table3" cellspacing="1" bgcolor="#DFDAC8">
<tr>
<td bgcolor="#FFFFFF">
<a href="{$list[$i][href]}">
<img style="FILTER: alpha(opacity=100)" onmouseover="this.style.filter = 'alpha(opacity=50)';" onmouseout="this.style.filter='none';" border="0" src="{$img}" width="93" height="80"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
</table>
<? if (count($list) == 0) { ?>아직없음.<? } ?></tr></table>
</td>
<!--게시물 추출 글자 설정 끝-->
<td width="1" bgcolor="#d9d9d9"></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><? } ?>
<tr height="5"><td width="1" bgcolor="#d9d9d9" height="3"></td>
<td colspan="2" height="3"></td>
<td width="1" bgcolor="#d9d9d9" height="3"></td></tr>
<tr height="1">
<td bgcolor="#d9d9d9" colspan="4"></td>
</tr>
</table>

첨부파일

123.PNG (5.9 KB)
0회 2013-02-19 19:52
321.PNG (12.2 KB)
1회 2013-02-19 19:52
|

댓글 2개

2013-02-27 (수) 19:14:42
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
이부분 아래에
echo $img; 해보셔요
2013-02-27 (수) 20:24:06
gnuboard4/data/file/item/2039009698_MgHDfYpC_1.png
요렇게 에러가 나요ㅜㅜ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-02-27 조회 3,510
13-02-27 조회 1,971
13-02-27 조회 1,385
13-02-27 조회 1,036
13-02-27 조회 1,039
13-02-27 조회 650
13-02-27 조회 1,117
13-02-27 조회 801
13-02-27 조회 1,335
13-02-27 조회 1,639
13-02-27 조회 1,669
13-02-27 조회 1,704
13-02-27 조회 1,557
13-02-27 조회 1,781
13-02-27 조회 6,523
13-02-27 조회 4,699
13-02-27 조회 1,098
13-02-27 조회 939
13-02-27 조회 1,782
13-02-27 조회 1,610