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

· 2012-11-06 (화) 15:58:32 · 1790 · 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++;
}
}
}

이렇게 바꿔보세요
2014-03-21 (금) 06:16:26
안되네요 해봣어요
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
12-11-06 조회 1,681
12-11-06 조회 1,560
12-11-06 조회 1,690
12-11-06 조회 1,791
12-11-06 조회 1,488
12-11-06 조회 930
12-11-06 조회 629
12-11-06 조회 1,035
12-11-06 조회 3,512
12-11-06 조회 1,329
12-11-06 조회 2,495
12-11-06 조회 878
12-11-06 조회 1,416
12-11-06 조회 875
12-11-06 조회 758
12-11-06 조회 3,954
12-11-06 조회 1,622
12-11-06 조회 668
12-11-06 조회 1,432
12-11-06 조회 1,628