답변만 최근게시물에 제외시키고 싶은데
본문
Re: 답변만 최근게시물에 제외시키고 싶은데 어떻게 해야하나요 ?ㅠㅠ
<li>
<span style="font-size:14px; color:#bab9b9; padding-right:7px;">+</span> <?php
//echo $list[$i]['icon_reply']." ";
echo "<a href=\"".$list[$i]['href']."\">";
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
echo $list[$i]['subject'];
if ($list[$i]['comment_cnt'])
echo $list[$i]['comment_cnt'];
echo "</a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
?><span style="float:right;"><?=$list[$i][datetime]?></span>
</li>
스킨은 그누보드 기본 상태 그대로 사용하고 있어요 ~
!-->
답변 2
/lib/latest.lib.php 파일에서
$sql = " select * from {$tmp_write_table} where wr_is_comment = 0 order by wr_num limit 0, {$rows} ";
여기를 이렇게 수정.
$sql = " select * from {$tmp_write_table} where wr_is_comment = 0 and wr_reply = '' order by wr_num limit 0, {$rows} ";
이거 쓰셔도 되고요.
답변을 작성하시기 전에 로그인 해주세요.