최근 게시물에요~ 정보
최근 게시물에요~본문
답변도 같이 출력이 되는데요~
답변 안나오게 하려면 어떻게 해야할가요?
최신글 스킨 입니당~~
도움 부탁드려요~~^^
-----------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=99% cellpadding=0 cellspacing=0 border=0>
<tr>
<td height=25 style='padding-top:3px;padding-left:2px;'>
<?
$style = "font-family:돋움; font-size:9pt; color:#393939;";
if ($list[$i][icon_new])
$style = " style='font-family:돋움; font-size:9pt; color:#006F00;' ";
$subject = "<span $style>".cut_str($list[$i][subject],40)."</span>"; //제목 글자수 자르기
//echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}'>";
if ($list[$i][is_notice])
echo "<font color=#FFFFCC>[공지] <font color=#FFFFFF>{$subject}</a>";
else
echo "<font color=#FFFFFF>{$subject}</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>";
echo " " . $list[$i][icon_new];
?>
</td>
<td width=63 style='padding-top:4px;'><span style='font-size:8pt; color:#AABFEA;'><?=$list[$i][datetime]?></span></td></tr>
<tr><td height=1 colspan=2 background='<?=$latest_skin_path?>/img/dot.gif'></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td>
</tr><? } ?>
</table>
답변 안나오게 하려면 어떻게 해야할가요?
최신글 스킨 입니당~~
도움 부탁드려요~~^^
-----------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=99% cellpadding=0 cellspacing=0 border=0>
<tr>
<td height=25 style='padding-top:3px;padding-left:2px;'>
<?
$style = "font-family:돋움; font-size:9pt; color:#393939;";
if ($list[$i][icon_new])
$style = " style='font-family:돋움; font-size:9pt; color:#006F00;' ";
$subject = "<span $style>".cut_str($list[$i][subject],40)."</span>"; //제목 글자수 자르기
//echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}'>";
if ($list[$i][is_notice])
echo "<font color=#FFFFCC>[공지] <font color=#FFFFFF>{$subject}</a>";
else
echo "<font color=#FFFFFF>{$subject}</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>";
echo " " . $list[$i][icon_new];
?>
</td>
<td width=63 style='padding-top:4px;'><span style='font-size:8pt; color:#AABFEA;'><?=$list[$i][datetime]?></span></td></tr>
<tr><td height=1 colspan=2 background='<?=$latest_skin_path?>/img/dot.gif'></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td>
</tr><? } ?>
</table>
댓글 전체
lib/latest.lib.php
$sql = " select wr_id, wr_subject, wr_option, wr_content, wr_comment, wr_parent, wr_datetime, wr_last, wr_homepage, wr_name, wr_reply, wr_link1, wr_link2, ca_name, wr_hit from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
를
$sql = " select wr_id, wr_subject, wr_option, wr_content, wr_comment, wr_parent, wr_datetime, wr_last, wr_homepage, wr_name, wr_reply, wr_link1, wr_link2, ca_name, wr_hit from $tmp_write_table where wr_is_comment = 0 AND wr_reply = '' order by wr_num limit 0, $rows ";
으로 수정
$sql = " select wr_id, wr_subject, wr_option, wr_content, wr_comment, wr_parent, wr_datetime, wr_last, wr_homepage, wr_name, wr_reply, wr_link1, wr_link2, ca_name, wr_hit from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
를
$sql = " select wr_id, wr_subject, wr_option, wr_content, wr_comment, wr_parent, wr_datetime, wr_last, wr_homepage, wr_name, wr_reply, wr_link1, wr_link2, ca_name, wr_hit from $tmp_write_table where wr_is_comment = 0 AND wr_reply = '' order by wr_num limit 0, $rows ";
으로 수정
/lib/latest.lib.php파일에서
아래 구문을
$sql = " select * from $tmp_write_table where wr_comment > -1 order by wr_id desc limit 0, $rows ";
다음으로 대체 합니다.
$sql = " select * from $tmp_write_table where wr_comment > -1 and wr_reply = '' order by wr_id desc limit 0, $rows ";
활용팁에서 찾았어요.
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=682
아래 구문을
$sql = " select * from $tmp_write_table where wr_comment > -1 order by wr_id desc limit 0, $rows ";
다음으로 대체 합니다.
$sql = " select * from $tmp_write_table where wr_comment > -1 and wr_reply = '' order by wr_id desc limit 0, $rows ";
활용팁에서 찾았어요.
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=682