function tto_new_icon($bo_table) {
global $g5;
$temp = sql_fetch("select bo_new from {$g5['board_table']} where bo_table = '$bo_table'");
$time_set = date("Y-m-d H:i:s", time() - $temp[bo_new] * 60 * 60);
$row = sql_fetch("select wr_id as cnt from {$g5['write_prefix']}$bo_table where wr_is_comment = '0' and wr_datetime > '$time_set'");
if($row[cnt])
echo " <img src='$g5[path]/img/icon_new.gif' alt='' />"; // 사용 이미지에 맞게 경로.파일 수정
}
lib/new.icon.lib.php 파일 생성 후 위 내용 추가.저장
(파일명 다르게 하는 경우 아래 include 부분 변경)
head.php 상단
include_once(G5_LIB_PATH.'/new.icon.lib.php'); // 추가
head.php 게시판명 출력 부분에 아이콘 출력 함수 추가
<?php echo $row2['bo_subject'] ?> <?php echo tto_new_icon($row2['bo_table']) ?>
global $g5;
$temp = sql_fetch("select bo_new from {$g5['board_table']} where bo_table = '$bo_table'");
$time_set = date("Y-m-d H:i:s", time() - $temp[bo_new] * 60 * 60);
$row = sql_fetch("select wr_id as cnt from {$g5['write_prefix']}$bo_table where wr_is_comment = '0' and wr_datetime > '$time_set'");
if($row[cnt])
echo " <img src='$g5[path]/img/icon_new.gif' alt='' />"; // 사용 이미지에 맞게 경로.파일 수정
}
lib/new.icon.lib.php 파일 생성 후 위 내용 추가.저장
(파일명 다르게 하는 경우 아래 include 부분 변경)
head.php 상단
include_once(G5_LIB_PATH.'/new.icon.lib.php'); // 추가
head.php 게시판명 출력 부분에 아이콘 출력 함수 추가
<?php echo $row2['bo_subject'] ?> <?php echo tto_new_icon($row2['bo_table']) ?>
댓글 2개
게시글 목록
| 번호 | 제목 |
|---|---|
| 926 | |
| 923 | |
| 920 | |
| 910 | |
| 907 | |
| 896 | |
| 895 | |
| 894 | |
| 872 | |
| 870 | |
| 866 | |
| 864 | |
| 859 | |
| 857 | |
| 854 | |
| 851 | |
| 849 | |
| 845 | |
| 839 | |
| 837 | |
| 832 | |
| 831 | |
| 821 | |
| 819 | |
| 811 | |
| 809 | |
| 801 | |
| 791 | |
| 783 | |
| 776 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기