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

· 2013-10-22 (화) 11:15:17 · 1083 · 3
최근게시물에서 최신글에 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개

2013-10-22 (화) 11:57:50
echo "{$list[$i]['subject']}";



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

이렇게 해보세요.
2013-10-22 (화) 12:39:48
네 감사합니다. 그런데 아래처럼 해야 잘나오네요

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

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-10-22 조회 878
13-10-22 조회 993
13-10-22 조회 988
13-10-22 조회 1,137
13-10-22 조회 1,047
13-10-22 조회 1,720
13-10-22 조회 1,089
13-10-22 조회 1,099
13-10-22 조회 1,720
13-10-22 조회 1,183
13-10-22 조회 2,536
13-10-22 조회 1,213
13-10-22 조회 1,084
13-10-22 조회 1,294
13-10-22 조회 1,141
13-10-22 조회 1,684
13-10-22 조회 1,176
13-10-22 조회 1,326
13-10-22 조회 1,060
13-10-22 조회 1,829