최근게시물 (갤러리 / 최신글)
이번에는 갤러리와 최신글 스킨을 올려봅니다.
그누보드 기본스킨을 수정하여 제작되었습니다.
특별한 기능은 없습니다. ㅠㅠ
가로폭은 210으로 되어있으며, 가로폭 수치를 사이트에 맞게 조절하시면 됩니다.
latest.skin.php 11줄~15줄
<table width="210" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><img src="/images/main_v1/cscenter/main_cs03.gif" alt="" width="91" height="19"></a></td>
</tr>
</table>
게시판 타이틀명은 이미지로 되어있습니다. 이미지를 사용하지 않으시려면 아래와 같이 수정하시면 됩니다.
<table width="210" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><?=$board[bo_subject]?></a></td>
</tr>
</table>
갤러리 사용법
ex) <?=latest("gallery", 게시판명, 출력갯수); ?>
최신글 사용법
ex) <?=latest("basic", 게시판명, 출력갯수, 글자수); ?>
그누보드 기본스킨을 수정하여 제작되었습니다.
특별한 기능은 없습니다. ㅠㅠ
가로폭은 210으로 되어있으며, 가로폭 수치를 사이트에 맞게 조절하시면 됩니다.
latest.skin.php 11줄~15줄
<table width="210" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><img src="/images/main_v1/cscenter/main_cs03.gif" alt="" width="91" height="19"></a></td>
</tr>
</table>
게시판 타이틀명은 이미지로 되어있습니다. 이미지를 사용하지 않으시려면 아래와 같이 수정하시면 됩니다.
<table width="210" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><?=$board[bo_subject]?></a></td>
</tr>
</table>
갤러리 사용법
ex) <?=latest("gallery", 게시판명, 출력갯수); ?>
최신글 사용법
ex) <?=latest("basic", 게시판명, 출력갯수, 글자수); ?>
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 10개
그런데 올린이 닉네임도 같이 출력되게 하는 방법은 없을까요? 제가 소스 수정하는법을 잘 몰라서...
<?=$list[$i][name]?>
최신글 바로 옆에 출력하시고자 할경우
latest.skin.php 30행 밑에 아래와 같이 적용해보세요
<td><font style='font-family:돋움; font-size:8.5pt; color:#666666; letter-spacing:-1pt; line-height:120%;'><?=$list[$i][name]?></font></td>
$board[bo_1] = "120"; // 가로목록 픽셀
$board[bo_2] = "90"; // 세로목록 픽셀
수치를 변경하시면 됩니다.