특정게시판, 비밀글로 작성하기

특정게시판, 비밀글로 작성하기

1. xe설치폴더/moudles/board/skins/xe_board/skin.xml파일의 ine 92아래줄에 소스를 삽입한다.

<var name="secret_document" type="select">
            <title xml:lang="ko">비밀글 작성</title>
            <title xml:lang="jp">비밀글 작성</title>
            <title xml:lang="zh-CN">비밀글 작성</title>
            <title xml:lang="en">비밀글 작성</title>
            <options value="Y"><title xml:lang="ko">YES</title></options>
            <options value="N"><title xml:lang="ko">NO</title></options>

            <description xml:lang="ko">모든글을 비밀글로 작성 하시겠습니까??</description>
</var>

 

2. xe설치폴더/moudles/board/skins/xe_board/write_form파일의

line65

 

<input type="checkbox" name="is_secret" value="Y" <!--@if($oDocument->isSecret())-->checked="checked"<!--@end--> id="is_secret" />
<label for="is_secret">{$lang->secret}</label>

 

을 아래의 소스로 변경한다.

<!--@if($module_info->secret_document=='Y')-->
     <input type="hidden" name="is_secret" value="Y" checked="checked" id="is_secret" />
     <!--@else-->
            <input type="checkbox" name="is_secret" value="Y" <!--@if($oDocument->isSecret())-->checked="checked"<!--@end--> id="is_secret" />
            <label for="is_secret">{$lang->secret}</label>
     <!--@end-->



3. 1.2.의 과정을 수행하시고 게시판설정>스킨관리에 가시면screet_document.JPG
비밀글 작성에 "Y"로 하시면 모든글이 비밀글로 작성됩니다.



출처 : http://www.xpressengine.com/tip/16495811


글쓰기