CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

Contents Management System

http://reedyfox.com/bbs/view.php?id=building&page=3&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=7&read.html■ Powered by 김수진 in Nzeo (아이디 : complain)

1) 제로보드 include/list_check.php 를 열어 상단에 있는

function list_check(&$data,$view_check=0) {
        global         $keyword, ....(생략).....,$_listCheckTime;

부분에 다음과 같이 변수를 하나 추가해준다.

function list_check(&$data,$view_check=0) {
        global         $keyword, ....(생략).....,$_listCheckTime,$t_comment;


2) 그리고 검색해서
$comment_num="[".$data[total_comment]."]"; // 간단한 답글 수
이 행을 삭제한다.(지우는게 가슴아프면 주석처리하든가......)

3) 그리고 바로 그 다음 행에 아래 코드를 삽입한다.
(여기서 12와 24는 시간 단위이니 적절히 수정할 수 있다.)

/* 새로운 코멘트 표시  */
$last_comment = mysql_fetch_array(mysql_query("select * from $t_comment"."_$id where parent='$data[no]' order by reg_date desc limit 1"));
$last_comment_time = $last_comment['reg_date'];
if(time()-$last_comment_time<60*60*12) $comment_num = "<font color=#FF0000 style="cursor:hand"title="".cut_str(stripslashes($last_comment['memo']),$textlen)."">[".$data[total_comment]."]</font>";
elseif(time()-$last_comment_time<60*60*24) $comment_num = "<font color=#FF7F50 style="cursor:hand" title="".cut_str(stripslashes($last_comment['memo']),$textlen)."">[".$data[total_comment]."]</font>";
else $comment_num = "[".$data[total_comment]."]";

코멘트 내용에 따라 글목록에 표시되는 코멘트 갯수가 깨지는 버그가 있다.
이 문제의 해결을 위해서는 위 소스에서 title 부분을 지워주시라.

title 부분이란...
title="".cut_str(stripslashes($last_comment['memo']),$textlen).""

추천한 사람

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기