최근게시몰 해결좀 도와주세요.ㅠ

· 2009-06-03 (수) 10:36:50 · 925 · 2

뉴스형 최근 게시몰을 쓰고 있는데요

계속 <DVI>글머머머</DVI> 이리 출력 되고 <BR> << 이것도 나올때도 있고 그래요.ㅠ

해결좀 도와주세요.

아래 소스 올립니다.

============================================================================================

<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<style>
.imgBoxContent2 {
    border:1px solid #dddddd;
    width:140px;
    height:120px;
}
div.ctview2 {
    font:14px Gulim, "굴림", tahoma;
    margin:5px 0px 5px 5px;
    color:#888;
    letter-spacing:-0.04em;
}
div.ctview2 a:hover {
    color:000000;
    text-decoration:none;
}
.ctviewDate2 {
    margin-top:3px;
    font:11px "굴림", tahoma; color:#888;
    letter-spacing:-0.04em;
}
</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);
    $content = str_replace("<DIV>", "", $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&wr_id={$list[$i][wr_id]}";

    $upday = cut_str($list[$i][wr_datetime], 10, "");
    $tmp = explode("-", $upday);
    $upday = $tmp[0]."년 ".$tmp[1]."월 ".$tmp[2]."일";

    echo "
            <div style='float:left;'>
                <a href='$href'>
                <img src='{$img}' class='imgBoxContent2' alt='' />
                </a>
            </div>
            <div style='float:left;'  class='ctview2'>
                <a href='$href'>
                    <b>{$list[$i][subject]}</b><br><br> {$list[$i]['comment_cnt']}
                    <br /><br />
                    <span>$content</span>
                </a>
                <div class='ctviewDate2'>($upday) </div>
            </div>
           
            <div style='clear:both; margin:10px;'></div>
    ";

}
?>
<? if (count($list) == 0) { ?>

 

<div>게시물이 없습니다.</div>
<? } ?>

|

댓글 2개

2009-06-03 (수) 10:50:37
$content = cut_str(strip_tags($list[$i][wr_content]), 82, "");
2009-06-03 (수) 19:50:41
감사합니다^^
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
09-06-03 조회 926
09-06-03 조회 1,044
09-06-03 조회 1,396
09-06-03 조회 1,037
09-06-03 조회 2,567
09-06-03 조회 924
09-06-03 조회 1,099
09-06-03 조회 1,173
09-06-02 조회 1,046
09-06-02 조회 1,072
09-06-02 조회 1,533
09-06-02 조회 2,475
09-06-02 조회 1,190
09-06-02 조회 1,626
09-06-02 조회 1,097
09-06-02 조회 970
09-06-02 조회 1,288
09-06-02 조회 1,637
09-06-02 조회 1,788
09-06-02 조회 1,044