k

최근게시글에 댓글도 출력되게 가능한가요?

전체 최근게시글은 사용중인데요 댓글은 출력이 안되네요
오래전에 쓴글에 댓글달리면 찾기가 힘들어 메인화면에 전체최근게시글에 함께 출력이 되면 좋겠는데 방법을 모르겠네요
아래는 전체최근게시글의 board_new.skin.php 파일의 내용입니다..
어디를 고치면될까요?

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

?>
<style type="text/css">
<!--
.latest_body {
line-height: 18px;
padding-top: 5px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 15px;
}
.latest_file {
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #CCCCCC;
padding-top: 10px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 5px;
}

.btn_more {
padding-right: 15px;
}
.line {
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #efefef;
padding-top: 10px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 5px;
font-family: "굴림", "돋움";
font-size: 11px;
color: #999999;
}
-->
</style>


<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td align=center>
<table width=100% border="0" cellpadding="0" cellspacing="0">
<tr onmouseover="this.style.bgcolor='#CCCCCC'">
<td height=25 class="line"><img src='<?=$new_skin_path?>/img/icon.gif' id="icon_bonew[<?=$i?>]" align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}' onmouseover='document.getElementById(\"icon_bonew[$i]\").src = \"{$new_skin_path}/img/icon_over.gif\";' onmouseout='document.getElementById(\"icon_bonew[$i]\").src = \"{$new_skin_path}/img/icon.gif\";'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i]['icon_new'];
echo " " . $list[$i]['icon_file'];
echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?></td>
<td width="65" class="line"><?=$list[$i][datetime]?></td>
<td width="100" align="center" class="line"><a href='<?=$list[$i][new_href]?>'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'><strong><?=$list[$i][new_board]?></strong></font></a></td>
</tr>
</table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>
|

댓글 2개

/lib/latest.lib.php
파일 보시면 select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows
이 쿼리가 있습니다
wr_is_comment 칼럼은 코멘트인지를 판별하는 것이므로 해당 구문을 빼면
댓글까지도 나오게 됩니다


select * from $tmp_write_table order by wr_num limit 0, $rows

이런식으로요
답변감사합니다 ~~ 그런데 알려주신데로 했는데 일반 최근게시물에는 댓글이 나오는데.
위소스의 전체최근게시물에서는 작동인 안되네요...;;

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고