[그누보드] 리스트에서 새코멘트 표시하기
-
웹스터디 / 2013.03.19 18:28 / hit 5,867 추천 0

/lib/common.lib.php(홈페이지 전체 적용시)
개별 적용할때는 게시판 list.skin.php 에 적용
$list['icon_comment'] = "";if ($list['wr_last'] >= date("Y-m-d H:i:s", $g4['server_time'] - ($board['bo_new'] * 3600)))$list['icon_comment'] =" <img src='$skin_path/img/icon_comment.gif' alt='' />";
사용하는 게시판 list.skin.php 추가
echo $list[$i]['icon_comment'] ? " ".$list[$i]['icon_comment'] : "";
게시판 img 폴더에 이미지 추가
$list[$i][icon_comment] = "";
if ($list[$i][wr_last] >= date("Y-m-d H:i:s", $g4['server_time'] - ($board['bo_new'] * 3600))&&($list[$i][wr_comment]))
$list[$i][icon_comment] =" <img src='$skin_path/img/icon_comment.gif' alt='' />";