현재의 기능을 G4 처럼 사용하기를 원하는 분들도 있군요
bbs/list.php
아래처럼 3곳을 수정하면 됩니다
주석처리
/*
// 공지글이 있으면 변수에 반영
if(!empty($notice_array)) {
$from_record -= count($notice_array);
if($from_record < 0)
$from_record = 0;
if($notice_count > 0)
$page_rows -= $notice_count;
if($page_rows < 0)
$page_rows = $list_page_rows;
}
*/
// if(!empty($notice_array)) $sql .= " and wr_id not in (".implode(', ', $notice_array).") ";
수정 $list_num = $total_count - ($page - 1) * $list_page_rows; // - $notice_count; <-- 여기
bbs/list.php
아래처럼 3곳을 수정하면 됩니다
주석처리
/*
// 공지글이 있으면 변수에 반영
if(!empty($notice_array)) {
$from_record -= count($notice_array);
if($from_record < 0)
$from_record = 0;
if($notice_count > 0)
$page_rows -= $notice_count;
if($page_rows < 0)
$page_rows = $list_page_rows;
}
*/
// if(!empty($notice_array)) $sql .= " and wr_id not in (".implode(', ', $notice_array).") ";
수정 $list_num = $total_count - ($page - 1) * $list_page_rows; // - $notice_count; <-- 여기
댓글 5개
분류를 선택해도 상단에 항상 공지사항이 떠있게
기존은 전체분류만 공지사항이 상단에 위치해 있음
분류로 들어가면 기존과 같이 시간순
현재의 기능을 G4 처럼 사용하기를 원하는 분들도 있군요
bbs/list.php
아래처럼 3곳을 수정하면 됩니다
주석처리
/*
// 공지글이 있으면 변수에 반영
if(!empty($notice_array)) {
$from_record -= count($notice_array);
if($from_record < 0)
$from_record = 0;
if($notice_count > 0)
$page_rows -= $notice_count;
if($page_rows < 0)
$page_rows = $list_page_rows;
}
*/
// if(!empty($notice_array)) $sql .= " and wr_id not in (".implode(', ', $notice_array).") ";
수정 $list_num = $total_count - ($page - 1) * $list_page_rows; // - $notice_count; <-- 여기
기존은 전체분류만 공지사항이 상단에 위치해 있음
분류로 들어가면 기존과 같이 시간순
현재의 기능을 G4 처럼 사용하기를 원하는 분들도 있군요
bbs/list.php
아래처럼 3곳을 수정하면 됩니다
주석처리
/*
// 공지글이 있으면 변수에 반영
if(!empty($notice_array)) {
$from_record -= count($notice_array);
if($from_record < 0)
$from_record = 0;
if($notice_count > 0)
$page_rows -= $notice_count;
if($page_rows < 0)
$page_rows = $list_page_rows;
}
*/
// if(!empty($notice_array)) $sql .= " and wr_id not in (".implode(', ', $notice_array).") ";
수정 $list_num = $total_count - ($page - 1) * $list_page_rows; // - $notice_count; <-- 여기
게시글 목록
| 번호 | 제목 |
|---|---|
| 22569 | |
| 22566 | |
| 22565 | |
| 22559 | |
| 22530 | |
| 22527 | |
| 22525 | |
| 22521 | |
| 22518 | |
| 22506 | |
| 22500 | |
| 22490 | |
| 22487 | |
| 22481 | |
| 22480 | |
| 22473 | |
| 22471 | |
| 22468 | |
| 22453 | |
| 22449 | |
| 22440 | |
| 22436 | |
| 22435 | |
| 22415 | |
| 22407 | |
| 22404 | |
| 22376 | |
| 22364 | |
| 22362 | |
| 22353 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기