이곳은 ZEROBOARD 4버전 관련 질문/답변 게시판입니다.
안녕하세요?
이번에 깜보게시판 6210을 사용하다가
7002버전으로 업뎃했는데요
6210에서는 제로보드/include/list_check.php파일을 아래소스로 일정조회수 이상일때 cool을
그이상일때 hot를 나타냈었습니다
하지만 7002버전으로 업뎃하고나니 cool밖에 설정이 불가능하네요
어디를 고쳐야 가능할런지요?
조민님 부탁드립니다.
수고하세요
<?
if($_list_check_included) return;
$_list_check_included = true;
/*********************************************************************************************
* 넘겨지는 데이타에 대한 일괄 정리
********************************************************************************************/
function list_check(&$data,$view_check=0) {
global $keyword, $sn, $ss, $sc, $setup, $member, $href, $id, $dir, $category_data, $is_admin, $_zbResizeCheck,
$name,$email,$subject, $sort, $prev_no, $no,$homepage, $memo, $hit, $vote, $ip, $comment_num, $sitelink1, $sitelink2,
$file_name1, $file_name2, $file_download1, $file_download2, $file_size1, $file_size2,
$upload_image1, $upload_image2, $category_name, $date, $reg_date, $insert, $icon, $face_image,$number,$loop_number,
$a_file_link1, $a_file_link2, $a_reply, $a_delete, $a_modify, $zbLayer, $_zbCheckNum,
$_listCheckTime, $cool;
// 윗줄에 $cool 추가함
$_listCheckTimeStart = getmicrotime();
if($view_check) $setup[only_board]=0;
// 제목에 5줄로 툴바 만듬
if($setup[use_status]) {
$tmpData = explode("\n",stripslashes($data[memo]));
$totalCommentLineNum = count($tmpData);
if($totalCommentLineNum>10) {
$showCommentStr_tail.="\n".($totalCommentLineNum - 10)." lines more... (total : $totalCommentLineNum lines)";
$tmpData_Count = 10;
} else $tmpData_Count = $totalCommentLineNum;
$showCommentStr = "";
for($i=0;$i<$tmpData_Count;$i++) {
$tmpStr = trim($tmpData[$i]);
if($tmpStr) $showCommentStr .= $tmpStr."\n";
}
$showCommentStr = str_replace("'","",$showCommentStr);
$showCommentStr = str_replace("\"","",$showCommentStr);
$showCommentStr .= $showCommentStr_tail;
}
$_zbCount = check_zbLayer($data);
// HTML 사용일 경우 현재 회원의 html 권한이 없거나 관리자가 아니라면 style 속성을 제거
if($data[use_html]&&$data[islevel]>$setup[grant_html]) {
$style_pattern = "/(\<.*?)style=(.*?)(\>?)/i";
$data[memo]=preg_replace($style_pattern,"\\1\\3",$data[memo]);
}
// ' 등의 특수문자때문에 붙인 \(역슬래쉬)를 떼어낸다
$name=$data[name]=stripslashes($data[name]);
$temp_name = get_private_icon($data[ismember], "2");
if($temp_name) $name="<img src='$temp_name' border=0 align=absmiddle>";
$subject=$data[subject]=stripslashes($data[subject]); // 제목
$subject=cut_str($subject,$setup[cut_length]); // 제목 자르는 부분
// 검색어에 해당하는 글자를 빨간;; 색으로 바꾸어줌;;
if($keyword) {
$keyword_pattern = "/".str_replace("\0","\\0",preg_quote($keyword,"/"))."/i";
if($sn=="on") $name = preg_replace($keyword_pattern, "<span style='color:#FF001E;background-color:#FFF000;'>$keyword</span>", $name);
if($ss=="on") $subject = preg_replace($keyword_pattern, "<span color='FF001E' style='color:#FF001E;background-color:#FFF000;'>$keyword</span>", $subject);
}
$hit=$data[hit]; // 조회수
$vote=$data[vote]; // 투표수
$comment_num="[".$data[total_comment]."]"; // 간단한 답글 수
if($data[total_comment]==0) $comment_num="";
if($setup[use_alllist]) $view_file="zboard.php"; else $view_file="view.php";
//추가 시작
//cool 설정하는 곳
$cool="";
if($hit>=30)$cool="<img src=image/cool.gif>";
if($hit>=35)$cool="<img src=image/hot.gif>";
if($hit<=29)$cool="";
