최근게시물에서 내용 출력할 때... 태그까지 같이 출력이 되요..

· 17년 전 · 764
img.GIF
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://www.yebiclub.com/gnuboard4/index01.php


아래는 불러오는 부분 스킨 주소입니다.

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



<table width="277" border="0" cellspacing="0" cellpadding="0" style="background-image:url(<?=$latest_skin_path?>/img/title.gif); background-repeat:no-repeat;">
<tr>
<td height="32" align="right" style="padding:0 5px 0 0; ">
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" alt="more" width="34" height="13" align="absmiddle" border="0"/></a></td>
</tr>
<!-- 최신글 목록 -->
<tr>
<td style="padding:6px 5px 5px 10px;">
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>

<style>
.imgBoxContent2 {
border:0px solid #dddddd;
width:87px;
height:67px;
}
div.index01_title {
font:12px Gulim, "돋움", tahoma;
margin:5px 0px 5px 5px;
color:#A2A932;
letter-spacing:-0.04em;
}
div.index01_title a:hover {
color:#A2A932;
text-decoration:none;
}
.index01_title {
font:12px Gulim, "돋움", tahoma;
color:#A2A932;
letter-spacing:-1px;
}
</style>

<?
for ($i=0; $i<count($list); $i++)
{
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 82, "");

// 태그 웹표준으로 변경
$content = str_replace("<P>", "", $content);
$content = str_replace("</P>", "", $content);
$content = str_replace("<BR>", "", $content);


$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table&amp;wr_id={$list[$i][wr_id]}";

$upday = cut_str($list[$i][wr_datetime], 10, "");
$tmp = explode("-", $upday);

echo "
<div style='float:left; padding: 0 5px 0 0'>
<a href='$href'>
<img src='{$img}' class='imgBoxContent2' alt='' />
</a>
</div>
<div style='float:left;' >
<a class='index01_title'>
{$list[$i][subject]} {$list[$i]['comment_cnt']}<br />
<span class='index01_txt'>$content</span>
</a>
</div>

<div style='clear:both; margin:5px;'></div>

";

}
?>

<? if (count($list) == 0) { ?>
<div>게시물이 없습니다.</div>
<? } ?>
</td>
</tr>
</table>

왜 그런지 이유를 좀 알려주세요ㅠㅠ

첨부파일

img.GIF (6.1 KB)
0회 2008-08-01 16:57
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 941
17년 전 조회 1,511
17년 전 조회 791
17년 전 조회 971
17년 전 조회 813
17년 전 조회 1,396
17년 전 조회 1,521
17년 전 조회 829
17년 전 조회 899
17년 전 조회 765
17년 전 조회 771
17년 전 조회 792
17년 전 조회 968
17년 전 조회 1,506
17년 전 조회 812
17년 전 조회 753
17년 전 조회 948
17년 전 조회 687
17년 전 조회 709
17년 전 조회 741
🐛 버그신고