안녕하세요 그누보드 차근차근 배워 가고 있는 초보입니다.
현재 그누보드 기본 베이직 게시판을 쓰고 있는데요 이미지에 동그라미 친부분이
글을 쓰면 하나씩 올라가자나요 처음 글을쓰면 1 그다음 2 이렇게 올라가는데
그 시작 번호를 바꿀수는 없는지요? 2000이면 2000부터 번호가 시작하게 말이에요^^
제발 답변좀 부탁드리옵니다 감기 조심들 하시구요 매번 답변해주시는분들 정말 대단하시고 존경스럽습니다!!
현재 그누보드 기본 베이직 게시판을 쓰고 있는데요 이미지에 동그라미 친부분이
글을 쓰면 하나씩 올라가자나요 처음 글을쓰면 1 그다음 2 이렇게 올라가는데
그 시작 번호를 바꿀수는 없는지요? 2000이면 2000부터 번호가 시작하게 말이에요^^
제발 답변좀 부탁드리옵니다 감기 조심들 하시구요 매번 답변해주시는분들 정말 대단하시고 존경스럽습니다!!
첨부파일
댓글 3개
list.php
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_path, $board[bo_subject_len]);
if (strstr($sfl, "subject"))
$list[$i][subject] = search_font($stx, $list[$i][subject]);
$list[$i][is_notice] = false;
//$list[$i][num] = number_format($total_count - ($page - 1) * $board[bo_page_rows] - $k);
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k;
$i++;
$k++;
}
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k; 를
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k + 2000;
으로 수정해보세요.
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_path, $board[bo_subject_len]);
if (strstr($sfl, "subject"))
$list[$i][subject] = search_font($stx, $list[$i][subject]);
$list[$i][is_notice] = false;
//$list[$i][num] = number_format($total_count - ($page - 1) * $board[bo_page_rows] - $k);
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k;
$i++;
$k++;
}
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k; 를
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k + 2000;
으로 수정해보세요.
게시글 목록
| 번호 | 제목 |
|---|---|
| 283395 | |
| 283385 | |
| 283383 | |
| 283382 | |
| 283379 | |
| 283377 | |
| 283374 | |
| 283370 | |
| 283368 | |
| 283367 | |
| 283366 | |
| 283365 | |
| 283364 | |
| 283353 | |
| 283346 | |
| 283345 | |
| 283338 | |
| 283334 | |
| 283331 | |
| 283322 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기