기존 게시물에 코멘트가 달릴때 new아이콘 탑재문의 정보
기존 게시물에 코멘트가 달릴때 new아이콘 탑재문의본문
제목 그대로 인데요
기존 게시물에 코멘트가 새로 달리거나 수정될때
new아이콘이 뜨게 하고 싶습니다.
아무리 찾아봐도 없네여 ㅠ
알려주실분?~?~
기존 게시물에 코멘트가 새로 달리거나 수정될때
new아이콘이 뜨게 하고 싶습니다.
아무리 찾아봐도 없네여 ㅠ
알려주실분?~?~
댓글 전체
if ($list[$i]['comment_cnt']) {
$co_time = date("Y-m-d ", strtotime("-1 day")); // 24시간 이내
$sql = "select count(*) AS cnt FROM $write_table WHERE wr_is_comment = '1' and wr_parent = '{$list[$i][wr_id]}' and wr_datetime >='$co_time'";
$row = sql_fetch($sql);
if ($row[cnt])
echo " <a href="{$list[$i][comment_href]}">{$list[$i][comment_cnt]}</a>";
else
echo " ";
}
echo " " . $list[$i][icon_new]; // 위쪽에 위 소스 추가
위 소스는 24시간 이내 게시된 코멘트 수
{$list[$i][comment_cnt]} 부분을 사용할 이미지로 img src 적용.수정
$co_time = date("Y-m-d ", strtotime("-1 day")); // 24시간 이내
$sql = "select count(*) AS cnt FROM $write_table WHERE wr_is_comment = '1' and wr_parent = '{$list[$i][wr_id]}' and wr_datetime >='$co_time'";
$row = sql_fetch($sql);
if ($row[cnt])
echo " <a href="{$list[$i][comment_href]}">{$list[$i][comment_cnt]}</a>";
else
echo " ";
}
echo " " . $list[$i][icon_new]; // 위쪽에 위 소스 추가
위 소스는 24시간 이내 게시된 코멘트 수
{$list[$i][comment_cnt]} 부분을 사용할 이미지로 img src 적용.수정
너무 잘되네여 감사합니다
답은 항상 그누보드 안에 존재하는군요 ㅎㅎ
답은 항상 그누보드 안에 존재하는군요 ㅎㅎ