웹마스터 팁
초보 헤메다가 팁//댓글기능 보이기 감추기
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-->
다음 관리자페이지 > 게시판관리 > 스킨관리에서
설정을 바꾸어 주시면 됩니다.
댓글 5
제목 | 글쓴이 | 날짜 |
---|---|---|
다수의 업로드 mp3 파일 jwplayer로 재생하기 [3] | 공수래 | 2011.05.30 |
1.5.x 이후 문서보기 유저 지정 애드온 안되는 현상 해결방법. [6] | 해피신 | 2012.01.31 |
XE 도쿠위키 세션으로 연동 [5] | 도라란 | 2011.11.17 |
업데이트했는데 관리메뉴중 일부가 안보일때 [2] | 요술봉 | 2012.03.04 |
특정게시판, 비밀글로 작성하기 [19] | 대암지기 | 2008.02.13 |
Xe 1.5.0.9 사용자 설치메뉴얼 제2부 [22] | 황비 | 2011.11.22 |
게시판 본문에 글쓴이 전화번호 추출하여 보이기 | 늘푸른이 | 2012.03.03 |
1.4.5.10 이하에서 1.5.x 이상 업데이트시 백지상태 되는 경우 다운그레이드 방법 [2] | WhiteAT2 | 2011.10.29 |
ie9에서 회원가입폼 클릭이 안될때 | 엔키오 | 2012.03.01 |
스크롤바색상 변하게 [5] | 김민787 | 2008.05.28 |
XE관리자 메뉴 활용 방법 ^^ [24] | 똥똥 | 2011.12.09 |
외부페이지를 생성해서 사용하면 무척 빠릅니다. [2] | 퍼니엑스이 | 2012.02.27 |
모바일 페이지가 스마트폰에서 가로폭이 넓게 나올경우의 팁 [2] | 카워시 | 2012.02.27 |
관리자메뉴에 사이트메뉴 안나오시는분 수정 하세요!! [5] | 박인영647 | 2012.02.16 |
초보 헤메다가 팁//댓글기능 보이기 감추기 [5] | 리히토 | 2008.07.15 |
v1.5를 위한 제어판 테마 애드온 정식 [4] | 우진홈 | 2012.02.13 |
드림위버로 FTP 파일 바로 수정하기 : FTP다운로드->수정->FTP업로드 번거러운 수정과정 X [3] | Treasurej | 2011.05.21 |
1.5.1.3용 youtube, vimeo, ted 썸네일 적용 document.item.php 수정 안내 [2] | 하얀마법 | 2012.01.27 |
XE 레이아웃에 로고 넣을때 주의할점!!! [1] | JHRunning | 2012.02.23 |
첨부파일 보이기 숨기기 옵션추가 [18] | ☜ TeRy ☞ | 2009.02.10 |