링크 1주소로 가시면 방긋님의 today 최근게시물 스킨이 나옵니다. 현재 링크된 방긋님의 스킨을 사용중인데요...아래처럼 최근게시물을 불러왔습니다.
<?
echo latest_today("today", "free", "cate", 5, 20, "", "", date("Y-m-d", strtotime("-1 week")) . " " . date("Y-m-d") );
?>
근데 게시물만 나와야 되는데... 이상하게 댓글이 순위에 나오고 있습니다. (이미지 첨부 하였습니다.)
---------------------------------------------------------------------------------------
아래는 최근게시물 today 폴더의 latest.skin.php 소스 입니다. (현재 사용중)
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
span.comment { font-family:Tahoma; font-size:10px; color:#EE5A00; }
a.latest_title { color:dimgray; font-family:gulim; font-weight:bold; font-size:13px; width:100%; display:block;}
a.latest_more { color:dimgray; font-family:Tahoma; font-size:11px; width:100%; display:block;}
a.latest_title:hover, a.latest_more:hover { color:red;}
</style>
<table width=100% cellpadding=0 cellspacing=0 style="margin-bottom:0px;">
<font color="black" size="2pt"><b>오늘 최고</b></font>
<br>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 style="padding-left:0px;" height="20">
<?
echo sprintf("%2d.", ($i+1));
echo " <a href='{$list[$i]['href']}'>";
echo "{$list[$i]['subject']}";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"> <span style='font:8pt tahoma;color:#E9281D; class='comment'>{$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>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>없습니다.</a></td></tr><? } ?>
</table>
어느 부분을 어떻게 고쳐야 댓글이 순위에 안나오게 할 수 있을까요?;; 가르쳐 주세요...
<?
echo latest_today("today", "free", "cate", 5, 20, "", "", date("Y-m-d", strtotime("-1 week")) . " " . date("Y-m-d") );
?>
근데 게시물만 나와야 되는데... 이상하게 댓글이 순위에 나오고 있습니다. (이미지 첨부 하였습니다.)
---------------------------------------------------------------------------------------
아래는 최근게시물 today 폴더의 latest.skin.php 소스 입니다. (현재 사용중)
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
span.comment { font-family:Tahoma; font-size:10px; color:#EE5A00; }
a.latest_title { color:dimgray; font-family:gulim; font-weight:bold; font-size:13px; width:100%; display:block;}
a.latest_more { color:dimgray; font-family:Tahoma; font-size:11px; width:100%; display:block;}
a.latest_title:hover, a.latest_more:hover { color:red;}
</style>
<table width=100% cellpadding=0 cellspacing=0 style="margin-bottom:0px;">
<font color="black" size="2pt"><b>오늘 최고</b></font>
<br>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 style="padding-left:0px;" height="20">
<?
echo sprintf("%2d.", ($i+1));
echo " <a href='{$list[$i]['href']}'>";
echo "{$list[$i]['subject']}";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"> <span style='font:8pt tahoma;color:#E9281D; class='comment'>{$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>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>없습니다.</a></td></tr><? } ?>
</table>
어느 부분을 어떻게 고쳐야 댓글이 순위에 안나오게 할 수 있을까요?;; 가르쳐 주세요...
댓글 6개
<- 코멘트 이부분이 나오지 않게 하려면
<?
if($list[$i]['subject']){
echo sprintf("%2d.", ($i+1));
echo " <a href='{$list[$i]['href']}'>";
echo "{$list[$i]['subject']}";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"> <span style='font:8pt tahoma;color:#E9281D; class='comment'>{$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'];
*/
}
?>
이렇게 하면 되겠지만 왜 제목글이 없고 코멘트 겟수만 있을까요?
제목없는 게시글은 아닌지...
<?
if($list[$i]['subject']){
echo sprintf("%2d.", ($i+1));
echo " <a href='{$list[$i]['href']}'>";
echo "{$list[$i]['subject']}";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"> <span style='font:8pt tahoma;color:#E9281D; class='comment'>{$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'];
*/
}
?>
이렇게 하면 되겠지만 왜 제목글이 없고 코멘트 겟수만 있을까요?
제목없는 게시글은 아닌지...
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기