쑤

메인의 최근게시물 제목길이 줄이는법

sample.gif
메인에 최근게시물 작업중인데요.

제목이 길면 두줄 세줄이되는데 이걸 30이 넘으면 .. 으로 표시되게하고싶은데 잘 모르겠어요.




꼭 알려주세요


-------------------------------------------------------------

<table border="0" id="table1" cellspacing="1">
<tr>
<td width="17"><img src='<?=$latest_skin_path?>/img/<?=$i+1?>.gif' align="absmiddle" /></td>
<td width="230">



<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:??; font-size:9pt; color:#2C88B9;'>{$list[$i]['subject']}</font>";
else
echo "<font style='font-family:??; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a></td><td width=65>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:??; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a></td><td width=65>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i]['icon_new'];
echo " " . $list[$i][datetime];
?></td>
</tr>
</table></td>
</tr>

첨부파일

sample.gif (2.7 KB)
0회 2009-03-27 02:29

댓글 2개

최신글 파일에서 줄일필요가 없구요
최신글 불러오는 함수에서 지정하면됩니다.

<?=latest("basic", bo_table, 10, 70);?>
요기서 70이 70바이트이니 30으로 하시면 30자이상은 ... 입니다.
와~ 감사합니다, 어제 혼자 계속 안되서 고생했는데.
진작에 질문올리는건데 그랬어요 감사합니다 ^-^*
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
09-03-27 조회 1,059
09-03-27 조회 1,041
09-03-27 조회 918
09-03-27 조회 840
09-03-27 조회 882
09-03-27 조회 1,169
09-03-27 조회 1,610
09-03-27 조회 922
09-03-26 조회 1,033
09-03-26 조회 860
09-03-26 조회 876
09-03-26 조회 1,057
09-03-26 조회 1,080
09-03-26 조회 3,575
09-03-26 조회 1,054
09-03-26 조회 898
09-03-26 조회 953
09-03-26 조회 888
09-03-26 조회 1,026
09-03-26 조회 1,304