제목길이가 왜 이렇게 나타나는지 몰겠어요.??? 정보
제목길이가 왜 이렇게 나타나는지 몰겠어요.???본문
소스좀 봐주세요..
이상은 없는데 제목길이를 좀 늘이고싶은데 왜 이런지 몰겠어요 ㅡㅡ
부탁드립니다.
감사합니다.
<? if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="F4F4F4" class="title1"><?=$board[bo_subject]?>
<img src="<?=$latest_skin_path?>/img/left_news_icon.gif" align="absmiddle"></td>
</tr>
<tr>
<td height="1" bgcolor="D9D9D9"></td>
</tr>
<tr>
<td style="padding:10px 5px 10px 8px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) {?>
<?
$subject = $list[$i][subject];
?>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" style="padding-bottom:3px;"><img src="<?=$latest_skin_path?>/img/left_news_icon1.gif" align="absmiddle"> <a href='<?=$list[$i][href]?>'><span style="color:003C70; letter-spacing:-0.7px; font-size:11px;"><?=$subject?></span></a></td>
</tr>
<tr>
<td width="82">
<?
// 파일 출력
$file_url = $list[$i][file][0][path]."/".$list[$i][file][0][file];
$img_info = @getimagesize($file_url);
if (preg_match("/\.($config[cf_image_extension])$/i", $file_url) || $img_info[2]==1 || $img_info[2]==2 )
echo "<a href='{$list[$i][href]}'><img src='$file_url' width='75' height='50' border='0'></a>";
?>
<?$filter_arr = array("[미디어인뉴스]");
$wr_content = str_replace($filter_arr, "[미디어인뉴스]", $wr_content); ?> </td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="18" style="color:666666; letter-spacing:-0.5px; font-size:11px; font-family:돋음;">
<?
$html = 0;
if (strstr($list['wr_option'], "html1"))
$html = 1;
else if (strstr($list['wr_option'], "html2"))
$html = 2;
echo cut_str(strip_tags(str_replace("미디어인뉴스", "코리아닷미", $list[$i]['wr_content']) ),47,"...");
?>
</td>
</tr>
</table> </td>
</tr>
</table> </td>
</tr>
<? if( $i < count($list)-1 ) { ?>
<tr>
<td height="10"></td>
</tr>
<? } ?>
<? } ?>
</table> </td>
</tr>
</table>
</td>
</tr>
</table>
댓글 전체
<?=latest('최근게시물스킨이름', '게시판아이디', rows, 제목길이);?>
이렇게 최근게시물을 뽑아오셨겠죠?
저 제목길이를 늘이시면 됩니다.
<?
$subject = cut_str($list[$i][wr_subject],50,"...");
?>
CODINGROBOT님꼐서 주신대로는 해봤지만 늘어나지 않아서 바다로님의 답변을 채택하였습니다.
감사합니다.