최근게시물 질문드립니다..

어떤분꼐서 께서 적어준대로 하니...
내용물이 아예 안나오드라구요....

근데.. 최근게시부분에 내용은 나오면서.....
내용이 코드로 안나오게 하는 법 없는가요???

http://madeinweb.co.kr/~ff498/index.php 이페이지 처럼 내용이 코드로 나오는걸
그냥 글로 나오게 수정 하고 싶어서입니다...



저 스킨 코드는
----------------------------------
<?
for ($i=0; $i<count($list); $i++)
{
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 110, "");

// 태그 웹표준으로 변경
$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&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='imgBoxContent1' alt='' />
</a>
</div>
<div style='float:left;' class='ctview1'>
<a href='$href'>
<b>{$list[$i][subject]}</b> {$list[$i]['comment_cnt']}
<br /><br />
<span>$content</span>
</a>
<div class='ctviewDate1'>($upday) </div>
</div>

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

}
?>

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


대략 이렇습니다...
어느 부분을 고쳐야 하는지 알려 주실수 없나요?...
|

댓글 3개

$content = strip_tags($list[$i][wr_content]);

echo $content;
렘브란트님 근데 저렇게 하면 문제가 생기는데...
최근게시물에 뿌려지는 제목수랑 내용수를 정하지를 못하는데....
있는 그대로 다나와 버리는데...
제목수랑 내용수 어디서 조절 할수 있나요???
$content = cut_str(strip_tags($list[$i][wr_content]),200,"...");

echo $content;
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 767
17년 전 조회 839
17년 전 조회 960
17년 전 조회 769
17년 전 조회 767
17년 전 조회 647
17년 전 조회 984
17년 전 조회 795
17년 전 조회 964
17년 전 조회 729
17년 전 조회 765
17년 전 조회 1,005
17년 전 조회 1,867
17년 전 조회 2,697
17년 전 조회 798
17년 전 조회 773
17년 전 조회 726
17년 전 조회 777
17년 전 조회 830
17년 전 조회 819