테스트 사이트 - 개발 중인 베타 버전입니다

최신글에서 공지 고정하는 소스를 알 수 있을까요..

· 14년 전 · 1513 · 2
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<div style="text-align:center;">
<div id="Layer0" style="width: 100%; border: 1 solid #cccccc">

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

<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 #ebebeb;" <?}?> >
&nbsp;
<?
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:10px; color:#FF6600;'>{$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>


-------------------------------------------------------
제가 사용하고 있는 최신글 소스입니다

게시판에서 글쓰기 공지 체크하면
최신글 상단에 항상 고정되게 할 수 있을까요...

부탁드립니다 ㅠㅠ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

현제 소스를 <tr><td> 위에 아래와 같이 추가 해보세요.

<tr><td>
<?
if ($list[$i][is_notice]) { // 만약 공지사항 이면
echo "<a href='{$list[$i]['href']}'>";
echo "- {$list[$i]['subject']}";
echo "</a>";
}
?>
</td></tr>
아길이님...죄송합니다 ㅜㅜ 왜 안될까요...ㅠㅠ
질문을 소스 전문으로 수정했습니다 ㅠㅠ

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440