겔러리 최근 게시물 리플 오류입니다..

http://madeinweb.co.kr/~ff498 에 들어가 보시면

최근게시물에 저수지정보와 나도월척조사 부분에 겔러리 최근게시물에
이플을 달게 되면 아래위로 같이 달렸다고 나옵니다...
윗쪽에 리플 (2)개를 달면 바로 아래 사진에 달지도 않은 리플 (2)라고 나옵니다...
어떻게 고칠수 있는 방법 없을까요???

사용 스킨은 latest_shim4u_nogal 이고..
latest.skin.php안의 소스는
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

list($height, $row_cnt, $cut_len) = explode(",", $options);
$all_cnt = 0;
?>

<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='left'>
<tr><td align='center'>

<table width=100% align=center cellpadding=0 cellspacing=0>
<colgroup width=20>
<colgroup>
<colgroup width=37>

</table>

</td></tr>

<tr><td align='center'>

<table width='100%'>
<? for ($k=0; $k<$row_cnt; $k++ ) { ?>
<tr>
<?
for ($i=0; $i<count($list)/$row_cnt; $i++)
{
if ($i > 0)
echo '<td width=20>&nbsp;</td>';
$title = get_text($list[$all_cnt][wr_subject]);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$all_cnt][file][0][file]);
if (!file_exists($img) || !$list[$all_cnt][file][0][file])
{ $img = "$latest_skin_path/img/no_image.gif"; }

$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$stitle = cut_str($list[$all_cnt][subject],$cut_len,"..");

echo <<<HEREDOC
<td width='<?=$subject_len?>' valign='top' align='center'>

<table width='<?=$subject_len?>' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='<?=$subject_len?>' height='5' align='center'></td>
</tr>

<tr>
<td align=center style='border:0px solid #CCCCCC; padding:0px' width='<?=$subject_len?>' height='<?=$height?>'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$all_cnt][wr_id]}'><img src='{$img}' width='$subject_len' height='$height' border='0' align='absmiddle' title='$title' alt='$title'></a>
</td>
</tr>

<tr>
<td width='<?=$subject_len?>' height='5' align='center'></td>
</tr>

<tr>
<td width='<?=$subject_len?>' height='20' align='center' nowrap><nobr><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$all_cnt][wr_id]}'>{$stitle}</a>
HEREDOC;

if ($list[$i][comment_cnt]) {
echo <<<HEREDOC
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>
<span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span>
</a>
HEREDOC;
}

echo <<<HEREDOC
</td>
</tr>
</table>

</td>
HEREDOC;
$all_cnt++;

}
?>
</tr>
<? } ?>

<? if (count($list) == 0) { ?>
<tr><td colspan=2 align='center' height=25>게시물이 없습니다.</td></tr>
<? } ?>
</table>

</td></tr>
</table>

입니다...

어느부분을 고쳐야 제대로 되는지 가르쳐 주시면 감사하겟습니다....
|

댓글 1개

if ($list[$i][comment_cnt])


if ($list[$all_cnt][comment_cnt])

바꾸어 보세요
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 756
17년 전 조회 755
17년 전 조회 1,517
17년 전 조회 4,511
17년 전 조회 782
17년 전 조회 737
17년 전 조회 743
17년 전 조회 712
17년 전 조회 705
17년 전 조회 750
17년 전 조회 771
17년 전 조회 1,518
17년 전 조회 831
17년 전 조회 1,630
17년 전 조회 727
17년 전 조회 721
17년 전 조회 832
17년 전 조회 1,519
17년 전 조회 1,515
17년 전 조회 821
🐛 버그신고