노

공지글 첫페이지만 나오게 하는방법문의합니다.

· 2012-11-06 (화) 15:58:32 · 1830 · 2
1.jpg
2.jpg
1페이지 2페이지에 위에 공지사항이 계속 나오는데요
이것을 첫페이지에만 공지사항이 나오게 하고싶어요
어떻게 해야할까요?

첨부파일

1.jpg (40.8 KB)
0회 2012-11-06 15:58
2.jpg (29.5 KB)
0회 2012-11-06 15:58

댓글 2개

bbs/list.php 에

if (!$sca && !$stx)
{
$arr_notice = explode("\n", trim($board[bo_notice]));
for ($k=0; $k<count($arr_notice); $k++)
{
if (trim($arr_notice[$k])=='') continue;

$row = sql_fetch(" select * from $write_table where wr_id = '$arr_notice[$k]' ");

if (!$row[wr_id]) continue;

$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
$list[$i][is_notice] = true;

$i++;
}
}

이런부분이있는데

if($page==1){
if (!$sca && !$stx)
{
$arr_notice = explode("\n", trim($board[bo_notice]));
for ($k=0; $k<count($arr_notice); $k++)
{
if (trim($arr_notice[$k])=='') continue;

$row = sql_fetch(" select * from $write_table where wr_id = '$arr_notice[$k]' ");

if (!$row[wr_id]) continue;

$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
$list[$i][is_notice] = true;

$i++;
}
}
}

이렇게 바꿔보세요
안되네요 해봣어요
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
12-11-06 조회 1,718
12-11-06 조회 1,596
12-11-06 조회 1,719
12-11-06 조회 1,831
12-11-06 조회 1,527
12-11-06 조회 962
12-11-06 조회 658
12-11-06 조회 1,080
12-11-06 조회 3,533
12-11-06 조회 1,379
12-11-06 조회 2,539
12-11-06 조회 904
12-11-06 조회 1,475
12-11-06 조회 918
12-11-06 조회 783
12-11-06 조회 3,983
12-11-06 조회 1,660
12-11-06 조회 702
12-11-06 조회 1,468
12-11-06 조회 1,650