최신글이 단 하나만 보여요.. > 그누3질답

그누3질답

최신글이 단 하나만 보여요.. 정보

그누보드 최신글이 단 하나만 보여요..

본문

<?=latest('gallery',playnmusical, 3, 30);?>

이렇게 넣었는데, 메인페이지부분엔 가장 최근게시물 하나만 나타나네요..

스킨은 아래의
http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=skin3&sselect=wr_subject%7Cwr_content&stext=%C3%D6%BD%C5&soperator=1&page=9&wr_id=2388

 [최신글] zzzz님의 영화소개스킨 최신글, 을 사용하고 있어요.

#latest.skin.php은 아래와 같구요..

<?
$image_width  = 74; // 너비
$image_height = 104; // 높이
?>
<table width=250 cellpadding=0 cellspacing=1 border=0 style=table-layout:fixed>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0){?>
<tr bgcolor=#ffffff>
<td width="80" rowspan=3><a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><img src='<?=$list[$i][file_image1]?>' width='<?=$image_width?>' height='<?=$image_height?>' border=1 style='border-color:EFEFEF;' align=left></a></td>

<td width=3>&nbsp;</td>

<td width='170' height='110' nowrap><span class=content><img src='<?=$latest_skin?>/icon_li_s.gif'>&nbsp;<a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><strong><font color="0075A5"><?=$list[$i][subject]?></font></strong> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></a> <?=$list[$i][icon_new]?></span><br>
    <font color="4499B7">장르</font> : <?=$list[$i][wr_2]?><br><font color="4499B7">감독</font> : <?=$list[$i][wr_1]?><br><font color="4499B7">출연</font> : <?=$list[$i][wr_4]?>
</td>

<td width=3>&nbsp;</td>

    <td height="20" colspan=2>
<table>
<? }else{?>
  <tr><td><img src='<?=$latest_skin?>/icon_li.gif'><a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><?=$list[$i][subject]?></a> <?=$list[$i][commentcnt]?></td></tr>

<? } ?>
<? } ?>
</table>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
  </td>
</TR>
</TABLE>




저는 최신글이 3개가 보이게 하고 싶거든요..

메인 페이지 내에다가 <?=latest('gallery',playnmusical, 3, 30);?>를 삽입하는것 이외에

#latest.skin.php 파일을 수정해야 한다면 어떻게 해야 하는건지...도움 부탁 드립니다..
  • 복사

댓글 전체

기본적으로 따로 프로그래밍 하지 않는한 최신글은 모두 latest() 함수를 사용해야하며
latest.skin.php 에서는 latest() 에서 호출된 게시판 하나에 대한 처리만 가능합니다.

만약 유나님 말씀처럼 할려면 그누보드 기본 설치시 설치된 main.php, lib/latest.lib.php, 최신글스킨/latest.skin.php를 하나로 묶어서 처리하는 프로그램을 짜야합니다.
최신글 끌어오기는 그누보드 기본 함수 입니다.

그러므로 <?latest('최신글스킨', '테이블이름', 보여질겟수, 글씨겟수)?> 이렇게 정확하게 했는데도 그런다면
최신 그누보드의 lib 의 latest.lib.php 를 바꾸는 것도 함 해보세요.
© SIRSOFT
현재 페이지 제일 처음으로