웹마스터 팁
초보 헤메다가 팁//댓글기능 보이기 감추기
2008.07.15 17:59
게시판에서 가끔 댓글기능을 감추고 싶을때가 있더라고요 그래서 올려 봅니다
/zbxe/modules/board/skins/xe_board/skin.xml 파일에서
<var name="default_style" type="select">
<title xml:lang="ko">기본 형태</title>
<title xml:lang="jp">デフォルトスタイル</title>
<title xml:lang="zh-CN">默认样式</title>
<title xml:lang="en">Default Form</title>
<title xml:lang="es">Formulario por defecto</title>
<description xml:lang="ko">
목록형, 웹진형, 갤러리의 기본 스타일을 지정할 수 있습니다.</description>
<description xml:lang="jp">
목록형, 웹진형, 갤러리의 기본 스타일을 지정할 수 있습니다.</description>
<description xml:lang="zh-CN">
목록형, 웹진형, 갤러리의 기본 스타일을 지정할 수 있습니다.</description>
<description xml:lang="en">
목록형, 웹진형, 갤러리의 기본 스타일을 지정할 수 있습니다.</description>
<description xml:lang="es">
목록형, 웹진형, 갤러리의 기본 스타일을 지정할 수 있습니다.</description>
<default>list</default>
<default>webzine</default>
<default>gallery</default>
</var>
부분 다음에
<var name="display_comment" type="select">
<title xml:lang="ko">댓글</title>
<title xml:lang="jp">comment</title>
<title xml:lang="zh-CN">comment</title>
<title xml:lang="en">comment</title>
<title xml:lang="es">comment</title>
<default>N</default>
<default>Y</default><description xml:lang="ko">
댓글기능을 사용하시겠습니까? </description>
</var>
을 추가 합니다
다음 /zbxe/modules/board/skins/xe_board/view_document.html 파일에서
<!-- 댓글 -->
<a name="comment"></a>
<!--#include("./comment.html")-->
<!-- 댓글 입력 폼 -->
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
<!--%import("filter/insert_comment.xml")-->
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="boardEditor" >
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="comment_srl" value="" />
<input type="hidden" name="content" value="" />
<div class="boardWrite commentEditor">
<div class="userNameAndPw">
<!--@if(!$is_logged)-->
<label for="userName">{$lang->writer}</label>
<input type="text" name="nick_name" value="" class="userName inputTypeText" id="userName"/>
<label for="userPw">{$lang->password}</label>
<input type="password" name="password" value="" id="userPw" class="userPw inputTypeText" />
<label for="emailAddress">{$lang->email_address}</label>
<input type="text" name="email_address" value="" id="emailAddress" class="emailAddress inputTypeText"/>
<label for="homePage">{$lang->homepage}</label>
<input type="text" name="homepage" value="" id="homePage" class="homePage inputTypeText"/>
<!--@else-->
<input type="checkbox" name="notify_message" value="Y" id="notify_message" />
<label for="notify_message">{$lang->notify}</label>
<!--@end-->
<input type="checkbox" name="is_secret" value="Y" id="is_secret" />
<label for="is_secret">{$lang->secret}</label>
</div>
<div class="editor">{$oDocument->getCommentEditor()}</div>
</div>
<div class="commentButton tRight">
<span class="button"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
</div>
</form>
<!--@end-->
위 부분을 다음과 같이 바꿔 줍니다
<!--@if($module_info->display_comment!='N')-->
<!-- 댓글 -->
<a name="comment"></a>
<!--#include("./comment.html")-->
<!-- 댓글 입력 폼 -->
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
<!--%import("filter/insert_comment.xml")-->
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="boardEditor" >
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="comment_srl" value="" />
<input type="hidden" name="content" value="" />
<div class="boardWrite commentEditor">
<div class="userNameAndPw">
<!--@if(!$is_logged)-->
<label for="userName">{$lang->writer}</label>
<input type="text" name="nick_name" value="" class="userName inputTypeText" id="userName"/>
<label for="userPw">{$lang->password}</label>
<input type="password" name="password" value="" id="userPw" class="userPw inputTypeText" />
<!--@else-->
<!--@end-->
</div>
<div class="editor">{$oDocument->getCommentEditor()}</div>
</div>
<div class="commentButton tRight">
<span class="button"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
</div>
</form>
<!--@end-->
<!--@else-->
<!--@end-->
다음 관리자페이지 > 게시판관리 > 스킨관리에서
설정을 바꾸어 주시면 됩니다.