수정좀 부탁합니다 정보
수정좀 부탁합니다
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://iedol.hosting.paran.com/bbs/group.php?gr_id=z2
그룹 최신글을 일반 최신글로 변경해서 쓸려고 하는데
이미지가 엑박으로 나오네요 수정좀 해주세요
===================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
$cols = 3; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$img_w = 48; //표시할 이미지의 가로사이즈
$img_h = 48; //표시할 이미지의 세로사이즈
$image_h = 5; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
?>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="DADADA">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="FFFFFF" >
<tr>
<td valign="top" bgcolor="FFFFFF" style="padding:0px">
<table width=100% border=0 cellpadding='0' cellspacing='0' align='center'>
<!-- 최신글 제목 -->
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor=F9F9F9>
<td width="10"></td>
<td height="22"><strong><a href='<?=$g4[bbs_path]?>/group.php?gr_id=<?=$gr_id?>'><?=$gr[gr_subject]?></a></strong></td>
<td align="right"><a href='<?=$g4[bbs_path]?>/group.php?gr_id=<?=$gr_id?>'><span style='font-size:8pt; color:#9A9A9A;'></span></a></td>
<td width="5"></td>
</tr>
</table>
</td></tr>
<tr><td height='5'></td></tr>
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<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="<?=$col_width?>%" align="center" valign='top'>
<?
$style = "font-size:9pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-size:9pt;' ";
$subject = "<span $style>".cut_str($list[$i][subject],27)."</span>"; //제목 글자수 자르기
$wr_2 = number_format($list[$i][wr_2]);
$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='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td valign='top' align='center'><a href='{$list[$i]['href']}'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<img src='$g4[path]/data/file/{$list[$i][bo_table]}/$image' width='{$img_w}' height='{$img_h}' align='absmiddle' style='width:{$img_w}px;height:{$img_h}px;border:0px solid #DADADA; padding:3px' class=img>"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='{$img_w}' height='{$img_h}' align='absmiddle' style='width:{$img_w}px;height:{$img_h}px;border:0px solid #DADADA; padding:3px' border=0></a></td></tr>";
echo "<tr><td align='center'><nobr style='display:block; overflow:hidden; width:46;'><a href='{$list[$i]['href']}'><font style='font-size:8pt; color:#6A6A6A;'>{$subject}</font><br><font style='font-size:8pt; color:#FF6600;'>{$wr_2} 엔</font></a></nobr></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>
</td></tr>
</table>
</td></tr>
</table>
<table width="100%" cellpadding=0 cellspacing=0>
<tr><td height=5></td></tr>
</table>
오류 주소 : http://iedol.hosting.paran.com/bbs/group.php?gr_id=z2
그룹 최신글을 일반 최신글로 변경해서 쓸려고 하는데
이미지가 엑박으로 나오네요 수정좀 해주세요
===================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
$cols = 3; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$img_w = 48; //표시할 이미지의 가로사이즈
$img_h = 48; //표시할 이미지의 세로사이즈
$image_h = 5; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
?>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="DADADA">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="FFFFFF" >
<tr>
<td valign="top" bgcolor="FFFFFF" style="padding:0px">
<table width=100% border=0 cellpadding='0' cellspacing='0' align='center'>
<!-- 최신글 제목 -->
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor=F9F9F9>
<td width="10"></td>
<td height="22"><strong><a href='<?=$g4[bbs_path]?>/group.php?gr_id=<?=$gr_id?>'><?=$gr[gr_subject]?></a></strong></td>
<td align="right"><a href='<?=$g4[bbs_path]?>/group.php?gr_id=<?=$gr_id?>'><span style='font-size:8pt; color:#9A9A9A;'></span></a></td>
<td width="5"></td>
</tr>
</table>
</td></tr>
<tr><td height='5'></td></tr>
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<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="<?=$col_width?>%" align="center" valign='top'>
<?
$style = "font-size:9pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-size:9pt;' ";
$subject = "<span $style>".cut_str($list[$i][subject],27)."</span>"; //제목 글자수 자르기
$wr_2 = number_format($list[$i][wr_2]);
$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='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td valign='top' align='center'><a href='{$list[$i]['href']}'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<img src='$g4[path]/data/file/{$list[$i][bo_table]}/$image' width='{$img_w}' height='{$img_h}' align='absmiddle' style='width:{$img_w}px;height:{$img_h}px;border:0px solid #DADADA; padding:3px' class=img>"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='{$img_w}' height='{$img_h}' align='absmiddle' style='width:{$img_w}px;height:{$img_h}px;border:0px solid #DADADA; padding:3px' border=0></a></td></tr>";
echo "<tr><td align='center'><nobr style='display:block; overflow:hidden; width:46;'><a href='{$list[$i]['href']}'><font style='font-size:8pt; color:#6A6A6A;'>{$subject}</font><br><font style='font-size:8pt; color:#FF6600;'>{$wr_2} 엔</font></a></nobr></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>
</td></tr>
</table>
</td></tr>
</table>
<table width="100%" cellpadding=0 cellspacing=0>
<tr><td height=5></td></tr>
</table>
댓글 전체

안되는 디유

img src='$g4[path]/data/file/{$list[$i][bo_table]}/$image' 에서
$list[$i][bo_table] ==> $bo_table 아닌가요??
$list[$i][bo_table] ==> $bo_table 아닌가요??

맞네요
감사합니다..
어떻게 보답 해야될지 두분께 진심으로 감사드립니다..
감사합니다..
어떻게 보답 해야될지 두분께 진심으로 감사드립니다..