최근게시물에서 최신글만 진하게 할려면 어떻게 해야 하나요 정보
최근게시물에서 최신글만 진하게 할려면 어떻게 해야 하나요본문
최근게시물에서 최신글에 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>
이 아이콘이 붙은 게시물만 진하게 하고 싶은데 스킨의 어디를 수정해야할까요?
<?
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>
댓글 전체
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]['icon_new']}</b>" : $list[$i]['icon_new'];
이렇게 해보세요.
네 감사합니다. 그런데 아래처럼 해야 잘나오네요
echo $subject = ($list[$i]['icon_new']) ? "<b>{$list[$i]['subject']}</b>" : $list[$i]['subject'];
echo $subject = ($list[$i]['icon_new']) ? "<b>{$list[$i]['subject']}</b>" : $list[$i]['subject'];
아 ^^;; 죄송합니다.
코드를 잘못 적었는데 잘 이해 하시고 해결 하신것 같네요 ^^;;
코드를 잘못 적었는데 잘 이해 하시고 해결 하신것 같네요 ^^;;