최근게시몰 해결좀 도와주세요.ㅠ > 그누4 질문답변

그누4 질문답변

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

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

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

본문

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

계속 <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>
<? } ?>

  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로