[제로] 쓰기에서 허용태그 미리보여주기
페이지 정보
루루아빠
3,695
2005.09.11 09:40:19
짧은주소
-
https://yadolee.com/tip/72 주소복사
본문
스킨의 write.php 파일을 수정합니다.
우선 맨 위에 아래의 소스를 넣습니다.
<?
$result=mysql_query("select * from zetyx_admin_table where name='$id'", $connect);
$data=mysql_fetch_array($result);
$pds_ext1 = stripslashes($data[pds_ext1]);
$pds_ext2 = stripslashes($data[pds_ext2]);
?>
다음 HTML사용, 비밀글, 공지 등이 들어가는 부분에 아래의 소스를 추가합니다.
<?=$hide_html_start?>
<tr>
<td align=center>
<table cellpadding=0 cellspacing=0 border=0 width=90% style="table-layout:fixed;">
<tr>
<td>사용가능한 태그</td>
<td>
<?=$data[avoid_tag]?>
</td>
</tr>
</table>
</td>
</tr>
<?=$hide_html_end?>
그리고 업로드용량 표시하는 부분을 아래와 같이 바꿔줍니다.
<tr>
<td align=right><?if ($data[pds_ext1]) echo "#1에는 $pds_ext1"; else echo "#1에는 모든"; ?><?if ($data[pds_ext2]) echo "#2에는 $pds_ext2"; else echo "#2에는 모든"; ?> 확장자의 파일을 <?=$upload_limit?>까지 첨부할 수 있습니다.</td>
</tr>
추천인
Progress Bar 14.66%
최신댓글이 없습니다.


댓글
첫 번째 댓글을 남겨 주세요