오늘 올라온 게시물 오늘 올라온 코멘트가 있으면 new를 붙여줍니다.
제로보드폴더에 있는 아웃로그인파일을 수정합니다  (outlogin.php)

일반게시판에도 적용이 됩니다.
일반게시판일경우 스킨폴더의 list_main.php파일에 추가하면 됩니다.


                $main_data = "";
                while($data=mysql_fetch_array($result)) {
//-----------------------------------------------------------------------------------------------------
//오늘 게시물, 오늘 코멘트가 있을경우 new글자 출력
unset($a4);
$a2=date("Y-m-d");//오늘 날자
$a3=date("Y-m-d", $data[reg_date]);
$result2 = mysql_query("select * from $t_board"."_comment_$id where parent='$data[no]'", $connect);
while($data2=mysql_fetch_array($result2)){

$a4=date("Y-m-d", $data2[reg_date]);
}
if(($a2==$a3)or($a2==$a4)){$a5="<font size='1' color='ff0000'>new</font>";}
else{$a5="";}

                        $name = stripslashes($data[name]);
                        $subject = cut_str(stripslashes($data[subject]),$textlen)."</font></b>";
                        $date = date($datetype, $data[reg_date]);
                        if($data[total_comment]) $comment = "[".$data[total_comment]."]".$a5; else $comment="".$a5;
//여기까지---------------------------------------------------------------------------------------------
                        $main = $loop;
                        $main = str_replace("[name]",$name,$main);
                        $main = str_replace("[date]",$date,$main);
                        $main = str_replace("[subject]","<a href='".$_zb_url.$target."&no=$data[no]'>".$subject."</a>",$main);
                        $main = str_replace("[comment]",$comment,$main);
                        $main_data .= "\n".$main;