답변 1개
2016-03-04 (금) 03:02:29
임시적이지만 해결했습니다. list.php의 공지 처리를
Copy
// 공지 처리//if (!$sca && !$stx) {//}
위처럼 주석처리하고 아래로 내리다 보면
Copy
if($page_rows > 0) { $result = sql_query($sql); $k = 0; while ($row = sql_fetch_array($result)) { // 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다 if ($sca || $stx) $row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' "); $list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']); if (strstr($sfl, 'subject')) { $list[$i]['subject'] = search_font($stx, $list[$i]['subject']); } $list[$i]['is_notice'] = false; if($sca == '질문') $list_num = $total_count - $k; else if($sca == '자유') $list_num = $total_count - $k; else $list_num = $total_count - $notice_count; $list[$i]['num'] = $list_num; $i++; $k++; $notice_count++; }}
빨간색처럼 질문,자유에 본인 게시판에 맞는 분류를 넣어 주시면 됩니다.
답변을 작성하려면 로그인이 필요합니다.
