new 표시 기능 때문에 문의 드립니다.. 정보
new 표시 기능 때문에 문의 드립니다..본문
말러83님의 new표시 기능입니다.
그런데.. 새글이 올라왔을 때만 new표시가 나오는데.
게시판에 새댓글이 올라왔을때도 new표시가 나오도록 하고 싶습니다.
방법 좀 전수해 주시기 바랍니다. 감사합니다.
=================================================================
저는 아래와 같은 함수를 /extend/function.extend.php 파일에 넣어두고 있습니다.
function new_icon($bo_table) {
global $g4;
$temp = sql_fetch("select bo_new from `$g4[board_table]` where bo_table = '$bo_table'");
$timefrom = date("Y-m-d H:i:s", time() - $temp[bo_new] * 60 * 60);
if(sql_fetch("select wr_datetime from `$g4[write_prefix]$bo_table` where !wr_is_comment AND wr_datetime > '$timefrom'")) echo " <img src=\"$g4[path]/skin/board/basic/img/icon_new.gif\" />";
}
그런데.. 새글이 올라왔을 때만 new표시가 나오는데.
게시판에 새댓글이 올라왔을때도 new표시가 나오도록 하고 싶습니다.
방법 좀 전수해 주시기 바랍니다. 감사합니다.
=================================================================
저는 아래와 같은 함수를 /extend/function.extend.php 파일에 넣어두고 있습니다.
function new_icon($bo_table) {
global $g4;
$temp = sql_fetch("select bo_new from `$g4[board_table]` where bo_table = '$bo_table'");
$timefrom = date("Y-m-d H:i:s", time() - $temp[bo_new] * 60 * 60);
if(sql_fetch("select wr_datetime from `$g4[write_prefix]$bo_table` where !wr_is_comment AND wr_datetime > '$timefrom'")) echo " <img src=\"$g4[path]/skin/board/basic/img/icon_new.gif\" />";
}
댓글 전체
!wr_is_comment AND 이거 빼버리면 안될까요?
되네요? 감사합니다. ^^
감사합니다