홈페이지 접속했을때 목록질문입니다.
본문
홈페이지 들어갓을때
메뉴 추가한거 보여지는 목록수 어떻게 설정하나요??

답변 1
'index.php' 파일을 수정하면 됩니다.
아래의 글을 참고하십시오.
위 내용이 혹시 어렵다면...
<?php
// 최신글
$sql = " select bo_table
from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id)
where a.bo_device <> 'mobile' ";
if(!$is_admin)
$sql .= " and a.bo_use_cert = '' ";
$sql .= " order by b.gr_order, a.bo_order ";
$sql = " select bo_table, bo_subject from {$g5['board_table']} where bo_table not in ('free', 'song') order by gr_id, bo_table";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i%2==1) $lt_style = "margin-left:20px";
else $lt_style = "";
?>
<div style="float:left;<?php echo $lt_style ?>">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("basic", $row['bo_table'], 5, 25);
?>
</div>
<?php
}
?>
<!-- } 최신글 끝 -->
의 예와 같이
$result = sql_query($sql);
바로 윗 줄에
$sql = " select bo_table, bo_subject from {$g5['board_table']} where bo_table not in ('free', 'song') order by gr_id, bo_table";
한 줄만 추가해 주면 됩니다.
대문에서 제외할 게시판 아이디를 위 빨간 글씨처럼 입력해주면 됩니다.
"아이디1', '아이디2', '아이디3', '아이디4', '아이디5'
답변을 작성하시기 전에 로그인 해주세요.