메인의 최근게시물 제목길이 줄이는법 정보
메인의 최근게시물 제목길이 줄이는법본문
메인에 최근게시물 작업중인데요.
제목이 길면 두줄 세줄이되는데 이걸 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>
제목이 길면 두줄 세줄이되는데 이걸 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>
댓글 전체

최신글 파일에서 줄일필요가 없구요
최신글 불러오는 함수에서 지정하면됩니다.
<?=latest("basic", bo_table, 10, 70);?>
요기서 70이 70바이트이니 30으로 하시면 30자이상은 ... 입니다.
최신글 불러오는 함수에서 지정하면됩니다.
<?=latest("basic", bo_table, 10, 70);?>
요기서 70이 70바이트이니 30으로 하시면 30자이상은 ... 입니다.
와~ 감사합니다, 어제 혼자 계속 안되서 고생했는데.
진작에 질문올리는건데 그랬어요 감사합니다 ^-^*
진작에 질문올리는건데 그랬어요 감사합니다 ^-^*