해결해주세요 > 그누4 질문답변

그누4 질문답변

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

해결해주세요 정보

해결해주세요

본문

제가 지금, 게시판에 번호부분이 1, 2, 3, 4, 5, 로 나열되야하는데

글을 쓰면 쓸수록 모든 게시물이 최신글의 번호를 따옵니다;
이거 어떻게 수정못할까요?

아래 게시판 불러오는것입니다 ㅜ


bbs 파일이 문제가있어보입니다.
이걸 어떻게 해줘야할까요 ㅜ


모든 게시판 스킨은 전혀 이상이없습니다.
또 추가하는 게시판스킨마다 전부 위와같은 현상이니 문제가 확실하게 있습니다.

BBS파일 어디가 잘못됬는지..

bbs파일어딜수정을 해야할까요 ㅜ









<div style="border:1px solid #ddd; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
<table width=100% border=0 cellpadding=0 cellspacing=0 style="font-weight:bold;">
<tr height=34 align=center>
    <td width=50>번호</td>
    <? if ($is_checkbox) { ?><td width=30 class=checkbox><input onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td><?}?>
    <td>제   목</td>
    <td width=100>글쓴이</td>
    <td width=80><?=subject_sort_link('wr_datetime', $qstr2, 1)?>날짜 </td>
    <td width=40>조회<?=subject_sort_link('wr_hit', $qstr2, 1)?></td>
    <? if ($is_good) { ?><td width=40><?=subject_sort_link('wr_good', $qstr2, 1)?>추천</a></td><?}?>
    <? if ($is_nogood) { ?><td width=40><?=subject_sort_link('wr_nogood', $qstr2, 1)?>비추천</a></td><?}?>
</tr>
</table>
</div>
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>

<table width=100% border=0 cellpadding=0 cellspacing=0>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<? $list[$i][num] = $total_count - $list[$i][num] + 1; ?>
<tr height=28 align=center <?  if ($list[$i][is_notice])  { echo " bgcolor=#fafafa "; } ?>>
    <td width=50>
        <?
        if ($list[$i][is_notice]) // 공지사항
            echo "<img src=\"$board_skin_path/img/notice_icon.gif\">";
        else if ($wr_id == $list[$i][wr_id]) // 현재위치
            echo "<span style='font:bold 11px tahoma; color:#888888;'>{$list[$i][num]}</span>";
        else
            echo "<span style='font:normal 11px tahoma; color:#888888;'>{$list[$i][num]}</span>";
        ?>
    </td>
    <? if ($is_checkbox) { ?><td width=30 class=checkbox><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
    <td width="12"><?if ($list[$i][is_notice])$img_icon = "notice"; else $img_icon = "old";?><img src="<?=$board_skin_path?>/img/<?=$img_icon?>_head.gif" align="absmiddle"></td>
 <td class=subject>
  <?
  echo $nobr_begin;
  echo $list[$i][reply];
  echo $list[$i][icon_reply];
  if ($is_category && $list[$i][ca_name]) {
   echo "<span class=small><font color=gray>[<a href='{$list[$i][ca_name_href]}'>{$list[$i][ca_name]}</a>]</font></span> ";
  }
  $style = "";
  if ($list[$i][is_notice]) $style = " style='font-weight:bold;color:#000000;'";

  echo "<a href='{$list[$i][href]}' $style>";
  echo $list[$i][subject];
  echo "</a>";

  if ($list[$i][comment_cnt])
   echo " <img src='$board_skin_path/img/com.gif' align='absmiddle'><a href=\"{$list[$i][comment_href]}\"><span class='comment'>+{$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_file];
  echo " " . $list[$i][icon_link];
  echo " " . $list[$i][icon_new];
  echo " " . $list[$i][icon_hot];
  echo " " . $list[$i][icon_secret];
  echo $nobr_end;
  ?>
    </td>
 <td class="name" width="100"><?=$list[$i][name]?></td>
 <td class="datetime" width=80><?=$list[$i][datetime2]?></td>
 <td class="hit" width=40><?=$list[$i][wr_hit]?></td>
 <? if ($is_good) { ?><td class="good" width=40><?=$list[$i][wr_good]?></td><? } ?>
 <? if ($is_nogood) { ?><td class="nogood" width=40><?=$list[$i][wr_nogood]?></td><? } ?>
</tr>
<tr><td colspan='<?=$colspan?>' height='1' class='trbar'></td></tr>
<?}?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
</form>

<div style="clear:both; margin-top:15px; height:31px;">
 <div style="float:left;">
 <? if ($list_href) { ?>
 <a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0" align=absmiddle></a>
 <? } ?>
 <? if ($is_checkbox) { ?>
 <a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" align=absmiddle></a>
 <a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" align=absmiddle></a>
 <a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0" align=absmiddle></a>
 <? } ?>
 </div>

    <div style="float:right;">
    <? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
    </div>
</div>

댓글 전체

<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<? $list[$i][num] = $total_count - $list[$i][num] + 1; ?>
<tr height=28 align=center <?  if ($list[$i][is_notice])  { echo " bgcolor=#fafafa "; } ?>>

3번째줄 삭제해 보세요

<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height=28 align=center <?  if ($list[$i][is_notice])  { echo " bgcolor=#fafafa "; } ?>>
list.php를 수정했나요?
list.php에서 찾아보면 list[$i][num]를 만드는 부분이 있습니다
그 줄 아래쪽에 $i++; $k++;가 있습니다
값이 똑같이 나온다면 $k++ 가 삭제된 것 같군요
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT