질문하나만..^^ 드릴께요 게시판출력시 div

· 16년 전 · 829 · 2
3333.jpg
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

게시판 글쓰고 출력할때(예약게시판)

글쓰고 엔터를치면 글양쪽에 <DIV> ㄴㄹㄴㅇㄹㄴ</DIV> 이런식으로 나오는데

게시판스킨 어느부분을 수정해줘야하는지.. 잘모르겠어서 이렇게 글남깁니다.


------------------------------아래 VIEW 입니다..----------------------

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

<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>

<!-- 링크 버튼 -->
<?
ob_start();
?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr height=35>
<td width=75%>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>

<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>

<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>

</td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>

<!-- 제목, 글쓴이, 날짜, 조회, 추천, 비추천 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td height=2 bgcolor=#B0ADF5></td></tr>
<tr><td height=30 bgcolor=#F8F8F9 style="padding:5px 0 5px 0;">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td style='word-break:break-all;'>  <strong><span id="writeSubject"><? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?=$view[wr_subject]?></span></strong></td>
<td width=50><a href="javascript:scaleFont(+1);"><img src='<?=$board_skin_path?>/img/icon_zoomin.gif' border=0 title='글자 확대'></a>
<a href="javascript:scaleFont(-1);"><img src='<?=$board_skin_path?>/img/icon_zoomout.gif' border=0 title='글자 축소'></a></td>
</tr>
</table></td></tr>


<tr><td height=30>  <font color=#7A8FDB>예약자성명</font> : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?>    
<font color=#7A8FDB>날짜</font> : <?=substr($view[wr_datetime],2,14)?>    
<font color=#7A8FDB>조회</font> : <?=$view[wr_hit]?>    
<? if ($is_good) { ?><font color=#7A8FDB>추천</font> : <?=$view[wr_good]?>    <?}?>
<? if ($is_nogood) { ?><font color=#7A8FDB>비추천</font> : <?=$view[wr_nogood]?>    <?}?>
<? if ($trackback_url) { ?><a href="javascript:trackback_send_server('<?=$trackback_url?>');" style="letter-spacing:0;" title='주소 복사'>트랙백 주소</a><?}?>
</td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>

<tr><td height=30>  <font color=#7A8FDB>연락처</font> : <?=$view[wr_1]?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>

<tr><td height=30>  <font color=#7A8FDB>예약날짜</font> : <?=$view[wr_2]?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>

<tr><td height=30>  <font color=#7A8FDB>선택사항</font> : <?=$view[wr_3]?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>

<tr><td height=30>  <font color=#7A8FDB>여행인원</font> : <?=$view[wr_4]?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>

<!-- <tr><td height=30>  <font color=#7A8FDB>입  금 액</font> : <?=number_format($view[wr_5])?> 원</td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr> -->

<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
//echo "<tr><td height=22>  <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
echo "<tr><td height=22>  <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
}
}

// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=22>  <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><strong>{$link}</strong> ({$view[link_hit][$i]})</a></td></tr>";
}
}
?>

<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height="150"
style='word-break:break-all;padding:5px;border:1px solid #BBBBBB;background:#F8F8F9;'>
<span id="writeContents" class="ct lh">
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>

<!-- 내용 출력 -->
<span class="ct lh"><?=$view[content];?></span>

<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>

<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?></td>
</tr>
</table><br>

<?
// 코멘트 입출력
include_once("./view_comment.php");
?>

<?=$link_buttons?>

</td></tr></table><br>

<script language="JavaScript">
function file_download(link, file) {
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href=link;
}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
resizeBoardImage(<?=(int)$board[bo_image_width]?>);
drawFont();
}
</script>
<!-- 게시글 보기 끝 -->

첨부파일

3333.jpg (33.1 KB)
0회 2009-03-28 11:16
|

댓글 2개

글쓰기 부분에 html 체크부분 어떻게 되어 있는지 확인해 보세요
<!-- 내용 출력 -->
<span class="ct lh"><?=$view[content];?></span>

이부분이 잘못되었어요..

<?=$view[wr_content];?>로 고치시면 <div>가 없어 집니다.
wr_이 빠져서 그런 겁니다. 늦었지만 고생하실 분이 계실것 같아서 답변 올립니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
16년 전 조회 1,023
16년 전 조회 788
16년 전 조회 914
16년 전 조회 2,043
16년 전 조회 919
16년 전 조회 983
16년 전 조회 881
16년 전 조회 949
16년 전 조회 937
16년 전 조회 830
16년 전 조회 1,515
16년 전 조회 1,537
16년 전 조회 906
16년 전 조회 1,586
16년 전 조회 956
16년 전 조회 834
16년 전 조회 1,785
16년 전 조회 887
16년 전 조회 1,577
16년 전 조회 1,015
🐛 버그신고