게시판 글 - 제목 표시 되고, 내용이 제목 밑단에 2줄 정도 표시되어야 하는데, 사라졌어요. 정보
게시판 글 - 제목 표시 되고, 내용이 제목 밑단에 2줄 정도 표시되어야 하는데, 사라졌어요.본문
$wr_subject = get_text(cut_str($list[$i][wr_subject], 55));
if ($is_category && $list[$i][ca_name]) {
$wr_subject = "<span class='normal_17px_bold'>[<a href='{$list[$i][ca_name_href]}'>{$list[$i][ca_name]}호</a>]</span> "."<a href='{$list[$i][href]}'><span class='normal_17px_bold'>{$wr_subject}</span></a>";
}else{
$wr_subject = "<a href='{$list[$i][href]}'><span class='normal_17px_bold'>{$wr_subject}</span></a>";
}
$wr_content = strip_tags($wr_content);
$wr_content = get_text(cut_str($wr_content, 300));
$wr_content = str_replace("##","<!--",$wr_content);
$wr_content = str_replace("**","-->",$wr_content);
if (file_exists($thumb)){
$size = getimagesize($thumb);
$img = "<img src='$thumb' alt='{$list[$i][subject]}' border='0'>";
$divheight = 100;
if($size[1] < 100) $divheight = $size[1];
echo "
<tr>
<td><table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td><div style='padding:0 7 0 0'><a href=\"{$list[$i][href]}\" onfocus=\"this.blur()\">$img</a></div></td>
<td><table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td height='25' style='padding:0 0 0 0'>{$wr_subject}</td>
</tr>
<tr>
<td height='35' style='padding:0 0 0 0'><a href='{$list[$i][href]}'><span class='normal_12px' style='line-height:150%'>{$wr_content}</span></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>";
}else{
echo "
<tr>
<td height=25 style='padding:0 0 0 0'>{$wr_subject}</td>
</tr>
<tr>
<td height=25 style='padding:0 0 0 0'><a href='{$list[$i][href]}'><span class='normal_12px' style='line-height:150%'>{$wr_content}</span></a></td>
</tr>
";
}
echo "
<tr><td height=10></td></tr>
<tr><td height=1 background='{$g4[path]}/images/dotline.gif'></td></tr>
<tr><td height=10></td></tr>
";
}
?>
if ($is_category && $list[$i][ca_name]) {
$wr_subject = "<span class='normal_17px_bold'>[<a href='{$list[$i][ca_name_href]}'>{$list[$i][ca_name]}호</a>]</span> "."<a href='{$list[$i][href]}'><span class='normal_17px_bold'>{$wr_subject}</span></a>";
}else{
$wr_subject = "<a href='{$list[$i][href]}'><span class='normal_17px_bold'>{$wr_subject}</span></a>";
}
$wr_content = strip_tags($wr_content);
$wr_content = get_text(cut_str($wr_content, 300));
$wr_content = str_replace("##","<!--",$wr_content);
$wr_content = str_replace("**","-->",$wr_content);
if (file_exists($thumb)){
$size = getimagesize($thumb);
$img = "<img src='$thumb' alt='{$list[$i][subject]}' border='0'>";
$divheight = 100;
if($size[1] < 100) $divheight = $size[1];
echo "
<tr>
<td><table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td><div style='padding:0 7 0 0'><a href=\"{$list[$i][href]}\" onfocus=\"this.blur()\">$img</a></div></td>
<td><table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td height='25' style='padding:0 0 0 0'>{$wr_subject}</td>
</tr>
<tr>
<td height='35' style='padding:0 0 0 0'><a href='{$list[$i][href]}'><span class='normal_12px' style='line-height:150%'>{$wr_content}</span></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>";
}else{
echo "
<tr>
<td height=25 style='padding:0 0 0 0'>{$wr_subject}</td>
</tr>
<tr>
<td height=25 style='padding:0 0 0 0'><a href='{$list[$i][href]}'><span class='normal_12px' style='line-height:150%'>{$wr_content}</span></a></td>
</tr>
";
}
echo "
<tr><td height=10></td></tr>
<tr><td height=1 background='{$g4[path]}/images/dotline.gif'></td></tr>
<tr><td height=10></td></tr>
";
}
?>
댓글 전체
수정해야하는데, 수정할 부분을 모르겠어요. 아니면 다시 코딩해야하나요?
$wr_content출력하는곳 --> {$wr_content}이 부분에 제목만 넣어주면 되겟네요
{$list[$i][subject]}<br>{$wr_content} 이렇게 되도록
{$list[$i][subject]}<br>{$wr_content} 이렇게 되도록
php 코드 중에서
$wr_content = strip_tags($wr_content);
$wr_content = strip_tags($list[$i][wr_content]); 바꿨습니다.
균이님의 놀라운 힌트에 감사드립니다.
$wr_content = strip_tags($wr_content);
$wr_content = strip_tags($list[$i][wr_content]); 바꿨습니다.
균이님의 놀라운 힌트에 감사드립니다.