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

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> </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년 전 조회 776
17년 전 조회 777
17년 전 조회 1,539
17년 전 조회 4,536
17년 전 조회 804
17년 전 조회 757
17년 전 조회 759
17년 전 조회 726
17년 전 조회 726
17년 전 조회 769
17년 전 조회 791
17년 전 조회 1,538
17년 전 조회 853
17년 전 조회 1,647
17년 전 조회 744
17년 전 조회 737
17년 전 조회 852
17년 전 조회 1,542
17년 전 조회 1,527
17년 전 조회 840