질문 & 답변 게시판
참고를 해 보세요.
수정할 파일은 미리 백업을 해 둔뒤에
수정시엔 워드패드 같은 텍스트에디터로만 사용을......................
조금 복잡합니다.
제로보드 폴더 > _head.php 파일 소스중
if(!$desc) $desc="asc";
위에 소스를 찾아서 아래 소스로 변경을...
$desc = ($id=="특정게시판 이름") ? $desc="desc" : $desc="asc";
다음)
제로보드 폴더 > zboard.php 파일 소스중
//가상번호를 정함
$loop_number=$total-($page-1)*$page_num;
if($setup[use_alllist]&&!$prev_no) $prev_no=$no;
// 뽑혀진 데이타만큼 출력함
while($data=@mysql_fetch_array($result)) {
list_check(&$data);
$_skinTimeStart = getmicrotime();
if($data[headnum]>-2000000000) {include $dir."/list_main.php";}
else {include $dir."/list_notice.php"; }
$_skinTime += getmicrotime()-$_skinTimeStart;
$loop_number--;
}
위에 소스를 찾아서 아래 소스로 변경을 해 줍니다..
//가상번호를 정함
$loop_number = ($id=="특정게시판 이름") ? $loop_number=1 : $loop_number=$total-($page-1)*$page_num;
// 뽑혀진 데이타만큼 출력함
if($id=="특정게시판 이름") {
while($data=@mysql_fetch_array($result)) {
list_check(&$data);
$_skinTimeStart = getmicrotime();
if($data[headnum]>-2000000000) {include $dir."/list_main.php";}
else {include $dir."/list_notice.php"; }
$_skinTime += getmicrotime()-$_skinTimeStart;
$loop_number++;
}
} else {
while($data=@mysql_fetch_array($result)) {
list_check(&$data);
$_skinTimeStart = getmicrotime();
if($data[headnum]>-2000000000) {include $dir."/list_main.php";}
else {include $dir."/list_notice.php"; }
$_skinTime += getmicrotime()-$_skinTimeStart;
$loop_number--;
}
}


