사이트 내 전체검색
그누보드
튜닝 공지사항이 있는 게시물은 읽지 않기 (중복읽음..)
로빈아빠
https://cmd.kr/gnu/97 URL이 복사되었습니다.

본문

목록에서 이미 공지에 올라와있는 내용이라면.. 공지아래 목록에서는 다시 읽을필요가 없다.
많은 트래픽에서는 다소 도움이 된다.
bbs/list.php 에서 수정



 
while ($row = sql_fetch_array($result))
{
    // 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다


 if ($sca || $stx) {
  //코멘트를 사용하지 않으면 wr_parent 검색하고 또 $row를 검색할 필요가 없다.. 그러므로 바로 * 필드 검색 2009-11-02 김성대
  if (!$board[bo_hide_comment]) {
   $row = sql_fetch(" select * from $write_table where wr_id = '$row[wr_parent]' ");
  }
 }

 //이미 공지에서 불러온 내용이면 찾아서 읽음
 if ($arr_notice&&in_array($row[wr_id],$arr_notice)) {
  for($i2=0;$i2<count($list[$i2]);$i2++) {
      if ($list[$i2][wr_id] = $row[wr_id]) {
       $list[$i] = $list[$i2];
      // echo " {$list[$i2][wr_id]} 찾음<BR>";
   
    break;
   }
  }
 }
 else
     $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++;
}

 

댓글목록

등록된 댓글이 없습니다.

그누보드
190 (3/4P)

Search

Copyright © Cmd 명령어 3.129.218.223