최신글에서 클릭이 안됩니다. > 그누4 질문답변

그누4 질문답변

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

최신글에서 클릭이 안됩니다. 정보

최신글에서 클릭이 안됩니다.

본문

안녕하세요.
 
제가 아래와 같이 최신글을 사용하고 있습니다.
 
게시판에서 여분필드를 추가했구요.
게시판 글쓰기, 리스트, 보기는 다 잘됩니다.
 
최신글 역시 오달수님께서 알려주신 덕분에 너무나도 잘 보입니다.
 
그런데 문제는...
 
최신글에서
subject는 클릭이 잘되는데...
나머지 wr_...은 클릭이 되지를 않습니다.
 
줄마춤 때문에 꼭 테이블을 짜야하는데...
그런다고 테이블 문제는 아니더군요.
<td>안에 일렬로 모든 항목을 놓아도 각 항목별로 <a href=...></a>를 따로 나누어 주면 클릭이 안되기는 마찬가지입니다.
 
최신글 소스
-------------------------------------------
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=430 cellpadding=0 cellspacing=0>
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
       
<table width=430>
<tr>
<td height='10' width='70'>
<a href='<?="{$list[$i][href]}"?>'><?=cut_str($list[$i][subject],5,"...");?></a></td>
<td height='10' width='80>
<a href='<?="{$list[$i][href]}"?>'><?=cut_str($list[$i][wr_1],10,"...");?></a></td>
<td height='10' width='80>
<a href='<?="{$list[$i][href]}"?>'><?=cut_str($list[$i][wr_2],10,"...");?></a></td>
<td height='10' width='95>
<a href='<?="{$list[$i][href]}"?>'><?=cut_str($list[$i][wr_3],10,"...");?></a></td>
<td height='10' width='80>
<a href='<?="{$list[$i][href]}"?>'><?=cut_str($list[$i][wr_4],10,"...");?></a></td>
<td height='10' width='25>
<a href='<?="{$list[$i][href]}"?>'><?=cut_str($list[$i][wr_7],3,"...");?></a></td>
</tr>
            <?
            if ($list[$i][comment_cnt])
                echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>
{$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_link];
            ?>

<tr><td bgcolor=#EBEBEB colspan='6' height=1></td></tr>
</table>

</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><?
} ?>
</table>
----------------------------------------------------------
 
그런데 희안한건 홈페이지 소스보기를 하면 아래와 같이 제대로 보인다는 겁니다.
 
 
<table width=430>
<tr>
<td height='10' width='70'>
<a href='./bbs/board.php?bo_table=bbs&wr_id=7'>제목</td>
 
<td height='10' width='80>
<a href='./bbs/board.php?bo_table=bbs&wr_id=7'>항목1</a></td>
<td height='10' width='80>
<a href='./bbs/board.php?bo_table=bbs&wr_id=7'>항목2</a></td>
<td height='10' width='95>
<a href='./bbs/board.php?bo_table=bbs&wr_id=7'>항목3</a></td>
<td height='10' width='80>
<a href='./bbs/board.php?bo_table=bbs&wr_id=7'>항목4</a></td>
<td height='10' width='25>
<a href='./bbs/board.php?bo_table=bbs&wr_id=7'>항목5</a></td>
</tr>
<tr><td bgcolor=#EBEBEB colspan='6' height=1></td></tr>
</table>
 
그런데 제목외엔 나머지 항목은 클릭이 되지를 않고...
 
이거 도대체 무슨 문제 인가요...?
역시 초보의 한계 이네요.
 
혹시 아시는분 도움 부탁 드리겠습니다.

 
  • 복사

댓글 전체

ㅎㅎㅎ
딱보니 정상적으로 걸렸는데... 링크가 안잡혀서..깜짝놀랐습니다.

다음 소스에서 width 지정하는 부분에서 첫줄과 두번째줄 이하의 차이를 봐보세요.
보이시죠 이거 ' 쌍을 맞춰줘야 겠죠..
<td height='10' width='70'><a href='./bbs/board.php?bo_table=bbs&wr_id=2'>제목 2</a></td>
<td height='10' width='80><a href='./bbs/board.php?bo_table=bbs&wr_id=2'>3</a></td>
<td height='10' width='80><a href='./bbs/board.php?bo_table=bbs&wr_id=2'>C</a></td>
<td height='10' width='95><a href='./bbs/board.php?bo_table=bbs&wr_id=2'>항목3</a></td>
<td height='10' width='80><a href='./bbs/board.php?bo_table=bbs&wr_id=2'>항목4</a></td>
<td height='10' width='25><a href='./bbs/board.php?bo_table=bbs&wr_id=2'>1</a></td></tr>
© SIRSOFT
현재 페이지 제일 처음으로