요게 왜 안될까요? 정보
요게 왜 안될까요?본문
뭐가 안되는건지 도저히 모르겠어요..
최신글 스킨부분인데요..
이미지는 나오는데
cut_str ($list[$i][wr_1], 20, '..' )
이부분이 안되네요..!!
최신글에wr_1값이아닌 cut_str (Array[wr_1], 20, '..' ) 이렇게 나와요.!!
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
if ( file_exists($thumb) )
$img = $thumb;
$style = "style='font-family:돋움; font-size:9pt; color:#686695;' ";
if ($list[$i][icon_new]) {
$style = "style='font-family:돋움; font-size:9pt; color:#134980;' "; }
$subject = "<span $style>".$list[$i][subject]."</span>"; //제목 글자수 자르기
$wr_hit = $list[$i]['wr_hit'];
$wr_id = $list[$i]['wr_id'];
// if ($list[$i]['comment_cnt']) //코
// $cmt = "({$list[$i]['comment_cnt']})";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td background='{$latest_skin_path}/img/la_bg.gif' valign='top' align='center'>
<a href=\"$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\">
<img src='{$img}' width='150' height='100' border=0' style='border:1 solid #B2BAEE'>
</a></td></tr>";
echo "<tr><td height='12' align='center' style='font-size:11px; color:#CCCCCC;'>cut_str ($list[$i][wr_1], 20, '..' ) </td></tr>";
echo "</table>";
?>
최신글 스킨부분인데요..
이미지는 나오는데
cut_str ($list[$i][wr_1], 20, '..' )
이부분이 안되네요..!!
최신글에wr_1값이아닌 cut_str (Array[wr_1], 20, '..' ) 이렇게 나와요.!!
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
if ( file_exists($thumb) )
$img = $thumb;
$style = "style='font-family:돋움; font-size:9pt; color:#686695;' ";
if ($list[$i][icon_new]) {
$style = "style='font-family:돋움; font-size:9pt; color:#134980;' "; }
$subject = "<span $style>".$list[$i][subject]."</span>"; //제목 글자수 자르기
$wr_hit = $list[$i]['wr_hit'];
$wr_id = $list[$i]['wr_id'];
// if ($list[$i]['comment_cnt']) //코
// $cmt = "({$list[$i]['comment_cnt']})";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td background='{$latest_skin_path}/img/la_bg.gif' valign='top' align='center'>
<a href=\"$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\">
<img src='{$img}' width='150' height='100' border=0' style='border:1 solid #B2BAEE'>
</a></td></tr>";
echo "<tr><td height='12' align='center' style='font-size:11px; color:#CCCCCC;'>cut_str ($list[$i][wr_1], 20, '..' ) </td></tr>";
echo "</table>";
?>
댓글 전체
echo "<tr><td height='12' align='center' style='font-size:11px; color:#CCC;'>".cut_str ($list[$i][wr_1], 20, '..' )."</td></tr>";
감사합니다.^^