최신글 뽑아내기에서 최신이미지..출력이 안되네요?? 정보
그누보드 최신글 뽑아내기에서 최신이미지..출력이 안되네요??본문
subject_content ===>> latest.skin.php
<?
$wr_content = strip_tags($wr_content);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center">
<table width=95% cellpadding=0 cellspacing=1>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0){?>
<tr height=22>
<td width="85%">
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'>
<b><?=$list[$i][subject]?></b></a>
<?=$list[$i][commentcnt]?> <?$wr_datetime=get_text(substr($list[$i][date],3,6));?>
[<?=$wr_datetime;?>]
</td>
</tr>
</table>
<table width=95% cellpadding=0 cellspacing=0>
<tr height=44>
<td style='word-break:break-all;' class='lh'>
<? if ($list[$i][file_image1]) { ?>
<img src='<?=$list[$i][file_image1]?>' width="52" height="43" class="tables" align="left">
<? ;} ?>
<? if ($list[$i][file_image2]) { ?>
<img src='<?=$list[$i][file_image2]?>' width="52" height="43" class="tables" align="left">
<? ;} ?>
<?
$memo = stripslashes($list[$i][wr_content]);
$memo2 = cut_str(stripslashes($memo), 135);
echo "$memo2"; ?>
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><font color="005CAB">more</font></a>
<!--
$header = str_replace("[notice_memo2]",$memo2,$header);
<?=nl2br(stripslashes($list[$i][wr_content]))?>-->
</td>
</tr>
</table>
<!-- 경계선 -->
<table width=100%>
<tr>
<td height=5>
</td>
</tr>
<tr>
<td background="images/dot.gif" height=3>
</td>
</tr>
<tr>
<td height=5>
</td>
</tr>
</table>
<? }else{?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=10> </td>
<td>
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'>
<?=$list[$i][subject]?>
</a>
<?=$list[$i][commentcnt]?>
</td>
<td width=50>
<?$wr_datetime=get_text(substr($list[$i][date],3,6));?>
[<?=$wr_datetime;?>]
</td>
</tr>
<? } ?>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
</table>
</td>
</tr>
</table>
소스가 잘못 된것인가요???
<?
$wr_content = strip_tags($wr_content);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center">
<table width=95% cellpadding=0 cellspacing=1>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0){?>
<tr height=22>
<td width="85%">
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'>
<b><?=$list[$i][subject]?></b></a>
<?=$list[$i][commentcnt]?> <?$wr_datetime=get_text(substr($list[$i][date],3,6));?>
[<?=$wr_datetime;?>]
</td>
</tr>
</table>
<table width=95% cellpadding=0 cellspacing=0>
<tr height=44>
<td style='word-break:break-all;' class='lh'>
<? if ($list[$i][file_image1]) { ?>
<img src='<?=$list[$i][file_image1]?>' width="52" height="43" class="tables" align="left">
<? ;} ?>
<? if ($list[$i][file_image2]) { ?>
<img src='<?=$list[$i][file_image2]?>' width="52" height="43" class="tables" align="left">
<? ;} ?>
<?
$memo = stripslashes($list[$i][wr_content]);
$memo2 = cut_str(stripslashes($memo), 135);
echo "$memo2"; ?>
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><font color="005CAB">more</font></a>
<!--
$header = str_replace("[notice_memo2]",$memo2,$header);
<?=nl2br(stripslashes($list[$i][wr_content]))?>-->
</td>
</tr>
</table>
<!-- 경계선 -->
<table width=100%>
<tr>
<td height=5>
</td>
</tr>
<tr>
<td background="images/dot.gif" height=3>
</td>
</tr>
<tr>
<td height=5>
</td>
</tr>
</table>
<? }else{?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=10> </td>
<td>
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'>
<?=$list[$i][subject]?>
</a>
<?=$list[$i][commentcnt]?>
</td>
<td width=50>
<?$wr_datetime=get_text(substr($list[$i][date],3,6));?>
[<?=$wr_datetime;?>]
</td>
</tr>
<? } ?>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
</table>
</td>
</tr>
</table>
소스가 잘못 된것인가요???
댓글 전체
<?=$list[$i][file_image1]?>, <?=$list[$i][file_image2]?>를 쓴다고 해서 이미지가 출력되진 않습니다..
file_image1,2 필드에 저장되는건 이미지 이름이니까요..
일반게시판 스킨에서..내용출력부분의 소스를 첨가하셔야 할 듯 합니다..
(아니면.. <?=./data/file/$bo_table/$list[$i][file_image2]?> 이런식으로 하셔야 이미지가 출력될 듯 합니다..)
file_image1,2 필드에 저장되는건 이미지 이름이니까요..
일반게시판 스킨에서..내용출력부분의 소스를 첨가하셔야 할 듯 합니다..
(아니면.. <?=./data/file/$bo_table/$list[$i][file_image2]?> 이런식으로 하셔야 이미지가 출력될 듯 합니다..)