댓글에 답글을 쓰면, "수정"이라는 글이 나오게 한상태입니다.
하지만 번호는 계속 순차적으로 나가네요..
답글은 건너뛰고, 댓글 번호가 연속으로 나왔으면 합니다.
view_comment.skin.php파일
<?
for ($i=1; $i<count($list); $i++) {
$n = 0;
$comment_id = $list[$i][wr_id];
// 여분필드 wr_1 불러오기
$wr1 = explode("|",$list[$i][wr_1]);
?>
<a name="<?=$comment_id?>"</a>
<tr>
<td style="border-bottom-width:1px; border-bottom-color:#FF6600; border-bottom-style:dotted;"> <span style="font-weight:bold;">
<? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) { $n = 1;
echo"수정"; ?><? } ?>
<? if($n == 0) echo"$i"; ?>
</span>
이 부분을 수정하면 될듯한데... 알려주시면 감사하겠습니다.
하지만 번호는 계속 순차적으로 나가네요..
답글은 건너뛰고, 댓글 번호가 연속으로 나왔으면 합니다.
view_comment.skin.php파일
<?
for ($i=1; $i<count($list); $i++) {
$n = 0;
$comment_id = $list[$i][wr_id];
// 여분필드 wr_1 불러오기
$wr1 = explode("|",$list[$i][wr_1]);
?>
<a name="<?=$comment_id?>"</a>
<tr>
<td style="border-bottom-width:1px; border-bottom-color:#FF6600; border-bottom-style:dotted;"> <span style="font-weight:bold;">
<? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) { $n = 1;
echo"수정"; ?><? } ?>
<? if($n == 0) echo"$i"; ?>
</span>
이 부분을 수정하면 될듯한데... 알려주시면 감사하겠습니다.
첨부파일
게시글 목록
| 번호 | 제목 |
|---|---|
| 284438 | |
| 284437 | |
| 284435 | |
| 284430 | |
| 284420 | |
| 284417 | |
| 284409 | |
| 284401 | |
| 284399 | |
| 284397 | |
| 284380 | |
| 284378 | |
| 284371 | |
| 284370 | |
| 284366 | |
| 284364 | |
| 284360 | |
| 284357 | |
| 284355 | |
| 284354 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기