메인의 최근게시물 제목길이 줄이는법 > 그누4 질문답변

그누4 질문답변

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

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

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

본문

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

제목이 길면 두줄 세줄이되는데 이걸 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자이상은 ... 입니다.
© SIRSOFT
현재 페이지 제일 처음으로