최신글 글 자르기 및 <br>적용 정보
최신글 글 자르기 및 <br>적용본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
웹진형 최신글에서
<br>도 먹히게 하고, 글도 일정 길이가 되면 잘리도록했는데
왜 이구문만 넣으면 자꾸 오류가 날까요...
<?=nl2br(stripslashes(cut_str($list[$i][wr_content], 324,'...')))?>
오류 주소 :
웹진형 최신글에서
<br>도 먹히게 하고, 글도 일정 길이가 되면 잘리도록했는데
왜 이구문만 넣으면 자꾸 오류가 날까요...
<?=nl2br(stripslashes(cut_str($list[$i][wr_content], 324,'...')))?>
댓글 전체
테스트 해봤는데 잘 되던데.. 무슨 에러 인지 에러 문구를 보여주시겠어요..
latest.skin.php파일입니다...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.member, .guest {
font-size:11px;
font-family:돋움;
font-weight:normal;
color:#333333;
}
</style>
<table width="93%" cellpadding=0 cellspacing=0 border="0" align=center>
<?
for ($i=0; $i<count($list); $i++) {
$list[$i]['content']=eregi_replace(" "," ",$list[$i]['content']);
if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"91\" height=\"91\">";
} else {
$file="<img src='$latest_skin_path/img/noimg.gif'>";
}
$time_arr=explode(" ",$list[$i]["datetime3"]);
$time_arr1=explode("-",$time_arr[0]);
$year=$time_arr1[0];
$month=$time_arr1[1];
$day=$time_arr1[2];
?>
<tr>
<td style="padding:0px 0px 0 0"><a href='<?=$list[$i]['href']?>' style='font-family:돋움;color:#7bd6c7;font-size:13px;line-height:15px;font-weight:bold;letter-
spacing:-1px;'><B><?=$list[$i]['subject']?></B></a></td>
</tr>
<tr>
<td style="padding:0 0px 0 0"><a href="<?=$list[$i]['href']?>"><span style='font-size:8pt;color:#ffffff;'>
<?=nl2br(stripslashes(cut_str($list[$i][wr_content], 324,'...')))?>
</td>
</tr>
<?if($i!=count($list)-1) { ?>
<tr>
<td colspan="2" height="30"><img src="<?=$latest_skin_path?>/img/line_1.gif" border="0" align="absmiddle"></td>
</tr>
<? } ?>
<? } ?>
<? if (count($list) == 0) { ?><tr><td align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.member, .guest {
font-size:11px;
font-family:돋움;
font-weight:normal;
color:#333333;
}
</style>
<table width="93%" cellpadding=0 cellspacing=0 border="0" align=center>
<?
for ($i=0; $i<count($list); $i++) {
$list[$i]['content']=eregi_replace(" "," ",$list[$i]['content']);
if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"91\" height=\"91\">";
} else {
$file="<img src='$latest_skin_path/img/noimg.gif'>";
}
$time_arr=explode(" ",$list[$i]["datetime3"]);
$time_arr1=explode("-",$time_arr[0]);
$year=$time_arr1[0];
$month=$time_arr1[1];
$day=$time_arr1[2];
?>
<tr>
<td style="padding:0px 0px 0 0"><a href='<?=$list[$i]['href']?>' style='font-family:돋움;color:#7bd6c7;font-size:13px;line-height:15px;font-weight:bold;letter-
spacing:-1px;'><B><?=$list[$i]['subject']?></B></a></td>
</tr>
<tr>
<td style="padding:0 0px 0 0"><a href="<?=$list[$i]['href']?>"><span style='font-size:8pt;color:#ffffff;'>
<?=nl2br(stripslashes(cut_str($list[$i][wr_content], 324,'...')))?>
</td>
</tr>
<?if($i!=count($list)-1) { ?>
<tr>
<td colspan="2" height="30"><img src="<?=$latest_skin_path?>/img/line_1.gif" border="0" align="absmiddle"></td>
</tr>
<? } ?>
<? } ?>
<? if (count($list) == 0) { ?><tr><td align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
($list[$i][wr_content], '<br>') 이렇게 한번 해보시겠어요?
답변감사합니다. 하지만 알려주신대로 하면 내용 자체가 나오지를 않네요..ㅜㅜ