인기검색어 글자수 줄이는 방법 아시는분 ?

<? if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 ?><?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table>
<tr>
 <td width="80"><font color=#fefefe><b>인기검색어 : </b></font></td>
<? for ($i=0; $i<count($list); $i++) { ?>
 <td>
        <table>
        <tr>
            <td>
<?

    echo "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."'><font color=#fefefe>{$list[$i][pp_word]}</a></font>";
 
?>
</td></tr>
        </table></td>
<? if ($i+1 < count($list)) { //마지막 라인 생략?><td><font color=#f2f2f2>ㅣ</font></td><? } ?>
<? } ?>
</tr>
        </table>
이게 popular.skin.php 소스인데 글자수 줄이는 방법 아시는분 계신가요 ? 누가 검색어 글자를 길게 해서 장난치는것 같아요.. 방법 아시는분 답변좀 해주3

http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=51820#c_51827 

검색하면 여기 나오는데 인기검색어 스킨이 달라요..

|

댓글 7개

http://au3.php.net/manual/en/function.substr.php
봐도 무슨말인지 모르겠어요 ^^;
{$list[$i][pp_word]}

".substr($list[$i][pp_word],0,20)."
조금더 구체적으로 설명좀 해주세요 초보자임.. ㅋ
{$list[$i][pp_word]}

위처럼 되어있는 부분을 아래처럼 바꾸라는 것이였습니다~

".substr($list[$i][pp_word],0,20)."


[http://www.sir.co.kr/img/emoticon/md45.gif]
^^ 정말 감사드립니다...
초보는 어려워 ㅎㅎ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고