최근게시물에서 내용 출력할 때... 태그까지 같이 출력이 되요.. > 그누4 질문답변

그누4 질문답변

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

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

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

본문

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

오류 주소 : 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>

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

댓글 전체

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