
자유 게시판
리빌더 웹사이트를 보면서 하나씩 수정해보고 있습니다.

- 이전글로고 날라가서 변경 하고 있긴한데 마음에 들지가 않네요.ㅠ2026.02.24
- 다음글Github 라는 것을 해보았습니다.2026.02.23
댓글목록


// 새글에 NEW 아이콘
function get_new_ico($bo_table, $ca_name) {
global $g5;
$new_icon = '';
$bbs = sql_fetch("select * from {$g5['board_table']} where bo_table = '{$bo_table}'");
if($bbs && isset($bbs['bo_table'])) {
$write_table = $g5['write_prefix'].$bbs['bo_table'];
if(isset($ca_name) && !empty($ca_name)) {
$time = sql_fetch("select * from {$write_table} where wr_is_comment = 0 and ca_name = '{$ca_name}' order by wr_id desc limit 1");
} else {
$time = sql_fetch("select * from {$write_table} where wr_is_comment = 0 order by wr_id desc limit 1");
}
}
if (isset($bbs['bo_new']) && isset($time['wr_datetime']) && $time['wr_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - ($bbs['bo_new'] * 3600))) {
$new_icon = '<span class="gnb_new_ico">n</span>';
}
return $new_icon;
}
위 함수가 내장되어있습니다.
이걸 활용해보시면 좋을것같습니다.
get_new_ico('게시판ID', '카테고리명'); 또는
get_new_ico('게시판ID');
2026-02-24 00:39

