김종균님 답변입니다~ > Forum

본문 바로가기
  • kb@lovelet.com
사이트 내 전체검색

RESOURCES Forum

김종균님 답변입니다~

페이지 정보

본문

* 수정할 파일 : (제로보드 폴더)/lib.php


① 혹시 모를 상황에 대비하여 위의 파일을 백업합니다.


1. lib.php파일


② 아래에 해당하는 부분을 찾습니다. (아래 라인은 제로보드 원본파일 기준입니다.)


(중략..)


294| // 글의 아이콘을 뽑아줌;;
295| function get_icon($data) {
296| global $dir;


298| // 글쓴 시간 구함
299| $check_time=(time()-$data[reg_date])/60/60;


301| // 앞에 붙는 아이콘 정의
302| if($data[depth]) {
303| if($check_time<=12) $icon="reply_new_head.gif&nbsp;"; // 최근 글일경우
304| else $icon="reply_head.gif&nbsp;"; // 답글일때
305| } else {
306| if($check_time<=12) $icon="new_head.gif&nbsp;"; // 최근 글일경우
307| else $icon="old_head.gif&nbsp;"; // 답글이 아닐때
308| }
309| if($data[headnum]<=-2000000000) $icon="notice_head.gif&nbsp;"; // 공지사항일때
310| else if($data[is_secret]==1) $icon="비밀글입니다&nbsp;";
311| return $icon;
312| }


(중략..)


③ 아래와 같이 소스를 추가합니다. 빨간 부분의 숫자는 시간 단위이기 때문에 3일 = 24 시간 * 3 = 72시간으로 변경하시면 됩니다.


(중략..)


294| // 글의 아이콘을 뽑아줌;;
295| function get_icon($data) {
296| global $dir;


298| // 글쓴 시간 구함
299| $check_time=(time()-$data[reg_date])/60/60;


301| // 앞에 붙는 아이콘 정의
302| if($data[depth]) {
303| if($check_time<=72) $icon="reply_new_head.gif&nbsp;"; // 최근 글일경우
304| else $icon="reply_head.gif&nbsp;"; // 답글일때
305| } else {
306| if($check_time<=72) $icon="new_head.gif&nbsp;"; // 최근 글일경우
307| else $icon="old_head.gif&nbsp;"; // 답글이 아닐때
308| }
309| if($data[headnum]<=-2000000000) $icon="notice_head.gif&nbsp;"; // 공지사항일때
310| else if($data[is_secret]==1) $icon="비밀글입니다&nbsp;";
311| return $icon;
312| }


(중략..)



④ 수정된 파일을 모두 업로드 하시고, 실제 적용이 되는지 게시물을 작성하여 테스트 해보시기 바랍니다.

Share Post:

댓글목록

profile_image

김종균님의 댓글

김종균 작성일 아이피 125.♡.23.132

감사합니다. 쉽게 해결되었네요. ^^

Sign In
OR
Don't have an account? SIGN UP

Keywords

Visits

접속자

Total Visits
1,894,848