[급] 최신글 소스 수정 부탁드립니다. 정보
그누보드 [급] 최신글 소스 수정 부탁드립니다.본문
최근게시물을 그림처럼 하였는데
게시물 출력에 에러가 납니다.
게시물을 3개 출력하려는데
2개밖에 출력안합니다.
(하나는 이미지 내용포함
하나는 리스트)
리스트 출력을 2개로 하려는데..
어느부분을 수정하면 됩니까?
아래는 latest.skin.php 소스입니다.
___________________________________________________________________________________
<?
$image_height = 70; // 높이
$image_width = 60; // 너비
?>
<table width=100% cellpadding=0 cellspacing=0 border=0 style="margin-top:5;">
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0) { ?>
<tr>
<td>
<? if (!file_exists($list[$i][file_image1])) { ?>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign="top">
<table cellpadding=1 cellspacing=3 border=0>
<tr>
<td style="padding-left:3">
<a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=subject><b><?=cut_str($list[$i][subject],50,"...");?></b></span></a> <span style='font-size:11'></span> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span> <?=$list[$i][icon_new]?>
</td>
</tr>
<tr>
<td>
<div align="justify" style="margin-right:1; margin-left:1;"><a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><?=cut_str($list[$i][wr_content],150,"…");?></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
<? }else{ ?>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign="middle" ><p><img src='<?=$list[$i][file_image1]?>' width='<?=$image_width?>' height='<?=$image_height?>' style='border-color:#A5A5A5;' border=0 align=left></p></td>
<td valign="top">
<table cellpadding=1 cellspacing=3 border=0>
<tr>
<td style="padding-left:3">
<a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=subject><b><?=cut_str($list[$i][subject],50,"...");?></b></span></a> <span style='font-size:11'></span> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span> <?=$list[$i][icon_new]?>
</td>
</tr>
<tr>
<td>
<div align="justify" style="margin-right:1; margin-left:1;"><a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><?=cut_str($list[$i][wr_content],100,"…");?>more</a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
</td>
</tr>
<?} ?>
<? } else if ($i==1) { ?>
<tr>
<td>
<? if (!file_exists($list[$i][file_image1])) { ?>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign="top">
<table cellpadding=1 cellspacing=3 border=0>
<tr>
<td style="padding-left:3"> <span class=subject><img src='<?=$latest_skin?>/icon_li.gif' border="0">
<a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><?=cut_str($list[$i][subject],50,"...");?> </a>
</span> <span style='font-size:11'></span> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span> <?=$list[$i][icon_new]?>
</td>
</tr>
<tr>
<td><div align="justify" style="margin-right:1; margin-left:1;"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
</td>
</tr>
<?} ?>
<!--일반게시물-->
<? } else { ?>
<tr> </tr>
<? } ?>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=25>자료가 없습니다.</td></tr>"; } ?>
<tr> </tr>
</table>
_________________________________________________________________________________________
감사합니다!
게시물 출력에 에러가 납니다.
게시물을 3개 출력하려는데
2개밖에 출력안합니다.
(하나는 이미지 내용포함
하나는 리스트)
리스트 출력을 2개로 하려는데..
어느부분을 수정하면 됩니까?
아래는 latest.skin.php 소스입니다.
___________________________________________________________________________________
<?
$image_height = 70; // 높이
$image_width = 60; // 너비
?>
<table width=100% cellpadding=0 cellspacing=0 border=0 style="margin-top:5;">
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0) { ?>
<tr>
<td>
<? if (!file_exists($list[$i][file_image1])) { ?>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign="top">
<table cellpadding=1 cellspacing=3 border=0>
<tr>
<td style="padding-left:3">
<a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=subject><b><?=cut_str($list[$i][subject],50,"...");?></b></span></a> <span style='font-size:11'></span> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span> <?=$list[$i][icon_new]?>
</td>
</tr>
<tr>
<td>
<div align="justify" style="margin-right:1; margin-left:1;"><a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><?=cut_str($list[$i][wr_content],150,"…");?></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
<? }else{ ?>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign="middle" ><p><img src='<?=$list[$i][file_image1]?>' width='<?=$image_width?>' height='<?=$image_height?>' style='border-color:#A5A5A5;' border=0 align=left></p></td>
<td valign="top">
<table cellpadding=1 cellspacing=3 border=0>
<tr>
<td style="padding-left:3">
<a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=subject><b><?=cut_str($list[$i][subject],50,"...");?></b></span></a> <span style='font-size:11'></span> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span> <?=$list[$i][icon_new]?>
</td>
</tr>
<tr>
<td>
<div align="justify" style="margin-right:1; margin-left:1;"><a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><?=cut_str($list[$i][wr_content],100,"…");?>more</a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
</td>
</tr>
<?} ?>
<? } else if ($i==1) { ?>
<tr>
<td>
<? if (!file_exists($list[$i][file_image1])) { ?>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign="top">
<table cellpadding=1 cellspacing=3 border=0>
<tr>
<td style="padding-left:3"> <span class=subject><img src='<?=$latest_skin?>/icon_li.gif' border="0">
<a href='<?="./?doc=bbs/board.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><?=cut_str($list[$i][subject],50,"...");?> </a>
</span> <span style='font-size:11'></span> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span> <?=$list[$i][icon_new]?>
</td>
</tr>
<tr>
<td><div align="justify" style="margin-right:1; margin-left:1;"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
</td>
</tr>
<?} ?>
<!--일반게시물-->
<? } else { ?>
<tr> </tr>
<? } ?>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=25>자료가 없습니다.</td></tr>"; } ?>
<tr> </tr>
</table>
_________________________________________________________________________________________
감사합니다!
댓글 전체
만도님의 그룹별 최신글 등의 특별소스 외에는
<? latest('스킨이름', 게시판이름, 7(요기 숫자를 고치세요), 23); ?>
위의 방식으로 숫자를 조정하는 것으로 알고 있습니다.
<? latest('스킨이름', 게시판이름, 7(요기 숫자를 고치세요), 23); ?>
위의 방식으로 숫자를 조정하는 것으로 알고 있습니다.
아무래도 고수님들이 봐주셔야겠내요...
혹시 게시물이 두개 밖에 없는 것 아닌가요?
혹시 게시물이 두개 밖에 없는 것 아닌가요?
<? latest('스킨이름', 게시판이름, 7(요기 숫자를 고치세요), 23); ?>
소스수정이 아니라 불러오는 곳에서 숫자조정합니다.
소스수정이 아니라 불러오는 곳에서 숫자조정합니다.
그걸 고쳐도 안됩니다.ㅠㅜ'