최신글에서 코멘트달리면 new 아이콘 뜨게.. 정보
최신글에서 코멘트달리면 new 아이콘 뜨게..본문
처음으로 올려보네요.
활용팁에서 찾아보니까,
bbs랑 lib 까지 수정하는 소스더군요.
그냥 latest스킨에서만 수정하면 comment글이 등록되었을때
new_icon이 뜨도록 소스를 짜봤습니다.
latest.skin.php에서,
echo " " . $list[$i]['icon_new']; <---이 소스를 ..
이걸로 바꿔주세요
$Co = sql_fetch("select * from $tmp_write_table where wr_num = {$list[$i][wr_num]} and wr_is_comment = 1 and wr_comment = {$list[$i][wr_comment]}");
$Co_datetime = substr($Co[wr_datetime],0,-9);
$Co_datetime = substr($Co_datetime,0,4).substr($Co_datetime,5,2).substr($Co_datetime,8,2);
$To_datetime = date("Ymd");
if($To_datetime - $Co_datetime < 3){
echo " <img src='$latest_skin_path/img/icon_new.gif' align=absmiddle>";
}else
echo " " . $list[$i]['icon_new'];
추천
0
0
댓글 3개
초보자들을 위해 latest.skin.php 파일이 어느 폴더에 있는지 가르쳐 주시면 안될까요!
skin/ 폴더로 가시면 각각의 스킨들이 있어요.
게시판을 위한 board 회원관리를 위한 member 설문 poll 아웃로긴을 위한 outlogin
등등
최신글을 위한 스킨은 latest 라는 폴더 안에 있는데,
여기에 latest.skin.php 가 들어있습니다.
게시판을 위한 board 회원관리를 위한 member 설문 poll 아웃로긴을 위한 outlogin
등등
최신글을 위한 스킨은 latest 라는 폴더 안에 있는데,
여기에 latest.skin.php 가 들어있습니다.
감사합니다^^