답변 3개 / 댓글 1개
채택된 답변
+20 포인트
해당부분은 기본 갤러리 게시판 같네요 index.php에서 사진 최신글이라 적힌 부분을 지우시면 될것같아요
echo latest('pic_block', 'gallery', 4, 23);
이렇게 되어있는 부분일꺼에요
1.게시판마다 게시글을 적습니다. (예 공지사항 게시판이면 공지사항)
2.추출한 부분에 글이 올라오면 그 게시판을 찾아서 삭제합니다.
3.$sql .= " and a.bo_table not in ('notice', 'gallery') "; ->이 부분에 게시판아이디를 적으면 같은 효과를 볼수 있습니다.
Copy
<?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 .= " and a.bo_table not in ('notice', 'gallery') ";
$sql .= " order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$lt_style = '';
if ($i%3 !== 0 ) $lt_style = "margin-left:2%";
?>
<div style="float:left;<?php echo $lt_style ?>" class="lt_wr">
<?php
echo latest('basic', $row['bo_table'], 6, 24);
?>
</div>
<?php
}
?>
여기도 지워보세요
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.
