이

문자 자르기 질문드립니다.

· 2010-08-07 (토) 02:19:47 · 1669 · 3
snap83.jpg
위 그림과 같이 스킨을 만드는 중인데요.
내용까지 전부 나와 한줄로 나오게 문자를 자르려 합니다.
{$list[$i][wr_1]} <- 이렇게 하니 글자가 전부 나와버리네요.
이 문자를 자를수 있는 방법좀 알려주세요.

list.skin.php 일부
<table width="98%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr><td></td><td></td></tr>

<tr>
<td width="150px" height=28 align="left">
<img src="{$board_skin_path}/img/homepagemake_icon.gif" width="9" height="9">
<font size="" color="#FF0000"><b>Product Name</b></font>
</td>
<td width="300px" height=28 align="left">
{$checkbox}{$view_href}<b>{$list[$i][subject]}</a></b>
</td>
</tr>


<tr><td></td><td></td></tr>
<tr>
<td width="150px" height=28 align="left">
<img src="{$board_skin_path}/img/homepagemake_icon.gif" width="9" height="9">
Product Features
</td>
<td width="300px" height=28 align="left">
{$list[$i][wr_1]}</a></b>
</td>
</tr>



<tr><td></td><td></td></tr>
<tr>
<td width="150px" height=28 align="left">
<img src="{$board_skin_path}/img/homepagemake_icon.gif" width="9" height="9">
Directions
</td>
<td width="300px" height=28 align="left">
{$list[$i][wr_2]}</a></b>
</td>
</tr>



<tr><td></td><td></td></tr>
<tr>
<td width="150px" height=28 align="left">
<img src="{$board_skin_path}/img/homepagemake_icon.gif" width="9" height="9">
Packing Units
</td>
<td width="300px" height=28 align="left">
{$list[$i][wr_content]}</a></b>
</td>
</tr>

<tr><td height=28 align="left"> </td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td><td height=1 bgcolor=#E7E7E7></td></tr>
</tr>
</table>

첨부파일

snap83.jpg (71.3 KB)
0회 2010-08-07 02:19
|

댓글 3개

{cut_str(strip_tags($list[$i][wr_content]),500,"…")} 이렇게 하면 될것 같네요...^^
2010-08-07 (토) 12:16:21
{cut_str(strip_tags($list[$i][wr_content]),500,"…"} 이 부분이 내용에 나와 버립니다.
최신게시물에선 어떨지 모르지만

게시판 리스트에선 안되네요.
게시판 리스트에서 문자열 자를수 있는 방법이 없을까요.
여유필드 wr_1 , wr_2 , 두개와
내용 wr_content 입니다.

아니면 list.skin.php 내용중 어느부분중에 소스를 더 추가해야되는지요..?
{cut_str(strip_tags($list[$i][wr_1]),500,"…"} 하시면 되겠죠.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
10-08-07 조회 1,465
10-08-07 조회 1,076
10-08-07 조회 1,041
10-08-07 조회 1,065
10-08-07 조회 1,608
10-08-07 조회 1,773
10-08-07 조회 1,556
10-08-07 조회 1,218
10-08-07 조회 1,670
10-08-07 조회 1,606
10-08-06 조회 1,332
10-08-06 조회 1,078
10-08-06 조회 2,185
10-08-06 조회 1,603
10-08-06 조회 1,045
10-08-06 조회 1,601
10-08-06 조회 1,817
10-08-06 조회 1,581
10-08-06 조회 1,113
10-08-06 조회 1,011