"전체"는 뺄수 없나요? > 그누4 질문답변

그누4 질문답변

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

"전체"는 뺄수 없나요? 정보

"전체"는 뺄수 없나요?

본문

<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
         <td width="4" nowrap="nowrap"></td>
         <td>
         <table width="100%" border="0" cellspacing="0" cellpadding="7">
           <tr>
             <td width="70%" align="left" nowrap="nowrap">
    <? if ($is_category) { ?>
     <? if (!$wr_id) {  ?>
      <? 
         $cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
         $cnt = 1;
         $cnt0 = 0;
         $bb_s=""; $bb_e="";
         $b_s=""; $b_e="";
         $arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
         $str = " |";
      
      for ($i=0; $i<count($arr); $i++)
            if (trim($arr[$i]))  {
           if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>"; $b_e="</b>"; } else {$b_s=""; $b_e="";}
                $str .= " <a href='./board.php?bo_table=$bo_table&sca=".urlencode($arr[$i])."' class='cate_link'>$b_s$arr[$i]$b_e</a> |";
        if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
           $cnt++;
       }
         if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
      ?>
       <?echo " | ";echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>' class='cate_link'>전체</a><?=$bb_e?>
       <?=$str?>
     <? } ?>
      <? } else { ?>
     <!-- 페이지 -->
     <? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/prev_btn.jpg' width='13' height='13' border='0' align='absmiddle' title='이전검색'></a>"; } ?>
      <? echo $write_pages; ?>
     <? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/next_btn.jpg' width='13' height='13' border='0' align='absmiddle' title='다음검색'></a>"; } ?>
    <? } ?>
    </td>
            <td width="30%" align="right"  nowrap="nowrap">
     <? if ($admin_href) { ?>게시물 <?=number_format($total_count)?>건  <? } ?>
     <? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/rss_btn.jpg' title="RSS" border="0" align="absmiddle"></a><?}?>
     <? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_btn.jpg" title="관리자" border="0" align="absmiddle"></a><?}?>
    </td >
          </tr>
         </table>
         </td>
         <td width="4" nowrap="nowrap"></td>
       </tr>
  </table>
  • 복사

댓글 전체

이부분만 지우시면 됩니다. (가급적 주석처리를 권합니다.)

<a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>' class='cate_link'>전체</a>


또는 아래와 같이 주석처리 하시면 되겠습니다.
<!--
<a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>' class='cate_link'>전체</a>
-->
아래의 코드입니다.

if ($is_checkbox) echo "<tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n";


다음과 같이 바꾸시면 비회원도 제목이 보이게 될것 같습니다.

echo "<tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n";


단지 if ($is_checkbox) 만 지웠습니다.
© SIRSOFT
현재 페이지 제일 처음으로