최근게시물 질문드립니다.. 정보
최근게시물 질문드립니다..본문
어떤분꼐서 께서 적어준대로 하니...
내용물이 아예 안나오드라구요....
근데.. 최근게시부분에 내용은 나오면서.....
내용이 코드로 안나오게 하는 법 없는가요???
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>
<? } ?>
대략 이렇습니다...
어느 부분을 고쳐야 하는지 알려 주실수 없나요?...
내용물이 아예 안나오드라구요....
근데.. 최근게시부분에 내용은 나오면서.....
내용이 코드로 안나오게 하는 법 없는가요???
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>
<? } ?>
대략 이렇습니다...
어느 부분을 고쳐야 하는지 알려 주실수 없나요?...
댓글 전체

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

$content = cut_str(strip_tags($list[$i][wr_content]),200,"...");
echo $content;
echo $content;