코멘트가 달리면 상태 이미지가 변하는(접수완료->답변완료) 게시판의 상태 이미지를 최신글에 포함시키고 싶습니다.

· 12년 전 · 1492 · 2

그러니까
최신글에 제목하고 상태에 있는 이미지를 내보내고 싶은데
어떻게 해야 할까요
저 완전 생초보라서 자세히좀 설명 부탁드릴게요ㅠㅠㅠ

원 게시판 상태창에 달았던건

<?if($list[$i][comment_cnt]){?>
<img src="img/btn_complete.gif">
<?}else{?>
<img src="img/btn_wait.gif">
<?}?>

이거입니다..


그리고 최신글 스킨 latest.skin.php 소스입니다


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td width='14'><img src='<?=$latest_skin_path?>/img/xe_latest_left.gif'></td>
<td width='100%' background='<?=$latest_skin_path?>/img/xe_latest_bg.gif'>  <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
<td width=37 background='<?=$latest_skin_path?>/img/xe_latest_bg.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/xe_latest_right.gif' border='0'></a></td>
</tr>
</table>

<table width='100%' cellpadding='0' cellspacing='0'>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan='4' align='center'>
<table width='98%'>
<tr>
<td height='25' style='font-size:11px;color:777;'><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>  
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:11px; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:11px; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:11px; color:#777;'>{$list[$i]['comment_cnt']}</span></a>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i]['icon_new'];
echo " " . $list[$i]['icon_file'];
echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?></td>
<td width='60' align='right' style='font-size:11px;color:777;'><?if($list[$i][comment_cnt]){?>
<img src="img/btn_complete.gif">
<?}else{?>
<img src="img/btn_wait.gif">
<?}?></td></tr>
</table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>





|

댓글 2개

다르게는 해당 코멘트의 숫자 1이 올라가면 완료가 된다는 뜻이되는데 리스트에 보시는 숫자의 값을 정의한 $가 있을겁니다.{$list[$i]['comment_cnt']}이게 그거인거 같구요. 이 값으로 if 하시면 됩니다. 0보다 크면 src= img는 답변완료.gif 로 합니다.
아... 더 자세하게 알려주실수 없을까요?ㅠㅠ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
12년 전 조회 1,560
12년 전 조회 1,598
12년 전 조회 825
12년 전 조회 1,800
12년 전 조회 1,251
12년 전 조회 1,582
12년 전 조회 1,711
12년 전 조회 1,712
12년 전 조회 1,548
12년 전 조회 1,493
12년 전 조회 1,229
12년 전 조회 1,620
12년 전 조회 1,545
12년 전 조회 983
12년 전 조회 793
12년 전 조회 2,104
12년 전 조회 2,551
12년 전 조회 1,744
12년 전 조회 1,118
12년 전 조회 1,564
🐛 버그신고