그누보드4 최신글 스킨 문의드립니다.
본문
아래 최신글 스킨인입니다... 현제 이미지만 나오고 이미지 아래 제목은 안나오게 되어있는데.
이미지 아래 제목 나오도록 어떻게 해야되나요?
<?
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>
답변 1
이미지 출력 부분 바로 아래에 이렇게..
<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>
<tr>
<td bgcolor="#FFFFFF">{$list[$i][subject]}</td>
</tr>