정보 대문 최근글 구성
본문
대문 최근글 목록에... 원하는 필수 게시판만 출력해봅니다.
이런 구성으로 해봤습니다.
여러분들의 도움글들을 참고하여 index.php 파일내의 테이블을 이렇게 수정했습니다.
-----------------------------------------------------------------------------------------------------
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="3" valign="top">
<div><img src="/img/mid.gif"></div><p></p>
</td>
</tr>
<tr>
<td width="396" valign="top">
<div class="item"><?=latest("mw.list", notice, 5, 80)?></div>
</td>
<td width="5"></td>
<td width="396" valign="top">
<div class="item"><?=latest("mw.list", free, 5, 80)?></div>
</td>
</tr>
<tr>
<td colspan="3" valign="top">
<div class="item"><?=latest("mw.index.list.img", photo_me, 6, 28, 1)?></div>
</td>
</tr>
<tr>
<td colspan="3" valign="top">
<div class="item"><?=latest("mw.index.list.img", postcard, 6, 28, 1)?></div>
</td>
</tr>
</table>
-----------------------------------------------------------------------------------------------------
"mw.list", notice, 5, 80
(스킨, 테이블 명, 게시글 수, 글자 제한 수)
"mw.index.list.img", photo_me, 6, 28, 1
(스킨, 테이블 명, 사진 수, 글자 제한 수, ?) 마지막의 '1'은 뭔지 모르겠네요.
꼭 이대로 하실 필요는 없고... 참고하여 만드세요.
그리고... 저는 전체 크기를 늘렸기 때문에 숫자들이 저렇습니다.
(참고글 : 아래의 '게시판 크기 변경' )
396, 5, 396의 원본은 350, 10, 345 이고
사진 게시판은 6을 5로 바꿔야될겁니다.
그리고... 사진 아래의 빈 공간을 줄여야하므로
skin\latest\mw.index.list.img\latest.skin.php
15번 줄
.<?=$style_name?> .post-subject { width:115px; height:35px; overflow:hidden; padding:5px 5px 0 0; letter-spacing:-1px; font-size:11px; }
에서
height:20px로 변경해줍니다.
mw.index.list.img 폴더는 Lite판에는 없으므로... v1.0.7 Beta판에서 복사해서 넣어줘야 합니다.
왕초보입니다. 많은 지도편달 부탁드립니다~^^
자주 가는 곳 : SIR
관리자님의 댓글
관리자 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일<P>배추빌더 관리자님의 답변을 추가합니다.<BR><BR>function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")</P>
<P>추가 옵션을 넣는 부분인데 mw.index.list.img 스킨에서는 사용되지 않으니 입력하지 않으셔도 됩니다.</P>
<P><?=latest("mw.index.list.img", photo_me, 6, 28)?></P>