소

최근게시물에서 최신글만 진하게 할려면 어떻게 해야 하나요

최근게시물에서 최신글에 new 아이콘이 붙잖아요

이 아이콘이 붙은 게시물만 진하게 하고 싶은데 스킨의 어디를 수정해야할까요?



<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<div style="text-align:center;">
<div id="Layer0" style="width: 98%; border: 1 solid #ffffff">

<table align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>

</tr>
<tr>
<td>
<table width=100% border=0 cellpadding=0 cellspacing=0 <?=$options?>>
<tr>
<td align=center valign=top>

<? for ($i=0; $i<$rows; $i++) { ?>

<table width=95% border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=25 <?if ($i<$rows-1) {?> style="padding:3px 0 0 0; border-bottom:1px dotted #cccccc;" <?}?> >
<img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle><?
echo $list[$i]['icon_reply'] . " ";
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-size:9px; color:#FF6600; font-weight: bold'>{$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>
</table>

<? } ?>

</td>
</tr>

</table>
</td>
</tr>
</table>
</div>
</div>


|

댓글 3개

echo "{$list[$i]['subject']}";

를

echo $subject = ($list[$i]['icon_new']) ? "<b>{$list[$i]['icon_new']}</b>" : $list[$i]['icon_new'];

이렇게 해보세요.
네 감사합니다. 그런데 아래처럼 해야 잘나오네요

echo $subject = ($list[$i]['icon_new']) ? "<b>{$list[$i]['subject']}</b>" : $list[$i]['subject'];
아 ^^;; 죄송합니다.
코드를 잘못 적었는데 잘 이해 하시고 해결 하신것 같네요 ^^;;
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13-10-22 조회 892
13-10-22 조회 1,006
13-10-22 조회 1,000
13-10-22 조회 1,149
13-10-22 조회 1,059
13-10-22 조회 1,733
13-10-22 조회 1,101
13-10-22 조회 1,111
13-10-22 조회 1,729
13-10-22 조회 1,192
13-10-22 조회 2,553
13-10-22 조회 1,224
13-10-22 조회 1,098
13-10-22 조회 1,304
13-10-22 조회 1,152
13-10-22 조회 1,695
13-10-22 조회 1,191
13-10-22 조회 1,342
13-10-22 조회 1,080
13-10-22 조회 1,840