안녕하세요 그누보드 차근차근 배워 가고 있는 초보입니다.
현재 그누보드 기본 베이직 게시판을 쓰고 있는데요 이미지에 동그라미 친부분이
글을 쓰면 하나씩 올라가자나요 처음 글을쓰면 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;
으로 수정해보세요.
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기