웹마스터 팁
초보 헤메다가 팁//검색기능 보이기 감추기
2008.07.15 12:04
게시판에서 가끔 검색기능을 감추고 싶을때가 있더라고요 그래서 올려 봅니다
/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_search" type="select">
<title xml:lang="ko">검색</title>
<title xml:lang="jp">search</title>
<title xml:lang="zh-CN">search</title>
<title xml:lang="en">search</title>
<title xml:lang="es">search</title>
<default>N</default>
<default>Y</default><description xml:lang="ko">
검색기능을 사용하시겠습니까? </description>
</var>
을 추가 합니다.
다음 /zbxe/modules/board/skins/xe_board/list.html 파일에서
<!-- 검색 -->
<!--@if($grant->view && $module_info->default_style != 'blog')-->
<div class="boardSearch">
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="category" value="{$category}" />
<select name="search_target">
<!--@foreach($search_option as $key => $val)-->
<option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
<!--@end-->
</select>
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText"/>
<!--@if($last_division)-->
<a href="{getUrl('page',1,'document_srl','','division',$last_division,'last_division','')}" class="button"><span>{$lang->cmd_search_next}</span></a>
<!--@end-->
<a href="#" onclick="xGetElementById('fo_search').submit();return false;" class="button"><span>{$lang->cmd_search}</span></a>
<a href="{getUrl('','mid',$mid,'listStyle',$listStyle)}" class="button"><span>{$lang->cmd_cancel}</span></a>
</form>
</div>
<!--@end-->
위 부분을 다음과 같이 바꿔 줍니다
<!-- 검색 -->
<!--@if($module_info->display_search!='N')-->
<!--@if($grant->view && $module_info->default_style != 'blog'+
'+
')-->
<div class="boardSearch">
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="category" value="{$category}" />
<select name="search_target">
<option value="title" <!--@if($search_target==title)-->selected="selected"<!--@end-->>제목</option>
<option value="content" <!--@if($search_target==content)-->selected="selected"<!--@end-->>내용</option>
<option value="title_content" <!--@if($search_target==title_content)-->selected="selected"<!--@end-->>제목+내용</option>
<option value="user_name" <!--@if($search_target==user_name)-->selected="selected"<!--@end-->>글쓴이</option>
</select>
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText"/>
<!--@if($last_division)-->
<a href="{getUrl('page',1,'document_srl','+
'','+
'division',$last_division,'last_division','')}" class="button"><span>{$lang->cmd_search_next}</span></a>
<!--@end-->
<a href="#" onclick="xGetElementById('fo_search').submit();return false;" class="button"><span>{$lang->cmd_search}</span></a>
<a href="{getUrl('','mid',$mid,'listStyle',$listStyle)}" class="button"><span>{$lang->cmd_cancel}</span></a>
</form>
</div>
<!--@end-->
<!--@end-->
다음 관리자페이지 > 게시판관리 > 스킨관리에서
설정을 바꾸어 주시면 됩니다.
댓글 3
-
gnee
2008.07.16 18:00
-
리히토
2008.07.17 10:10
네~ ^^ -
알토란
2010.02.23 13:06
우...우왕!! 제가 찾던 내용이에요 ㅜㅜ 감사합니다 !!
제목 | 글쓴이 | 날짜 |
---|---|---|
정말 쉬운 이미지 롤오버 [3] | Nopedy Lee | 2002.12.05 |
엔지오처럼 메뉴가 아래위로 움직이는 소스[steelheart님 만듬]. [10] | 김태경 | 2002.11.23 |
iframe 내용에 맞게 자동으로 크기 조절하기 [36] | 행복한고니 | 2002.11.21 |
[파파스 1] 즐겨찾기 추가기능 소스 [5] | 파파스 | 2002.11.20 |
제로님 Select Box 조금 바꾼거... [5] | 행복한고니 | 2002.11.18 |
아래 행복한고니님의 할아버지 소스의 업글(?) 버젼입니다. [7] | (づ_-) 커터칼 | 2002.11.18 |
[re] 아래 행복한고니님의 할아버지 소스의 업글(?) 버젼입니다. [2] | Mahican | 2002.12.02 |
이미지 변환함수(롤오버) [3] | 행복한고니 | 2002.11.18 |
글상자글적으면 적은수가 숫자로 표시(글제한할때좋죠). [2] | 아벨라 | 2002.11.18 |
레이어를 원하는 곳에 고정하기입니다. [7] | 아벨라 | 2002.11.14 |
윈도우 할아버지 나타나게 하기 [11] | 행복한고니 | 2002.11.14 |
고정된 배경이미지는 싫다면서... [9] | 디아릭스 | 2002.11.12 |
엔지오같은 메뉴 만들기 #2 - Error 수정판 -_-;; [13] | Eccen | 2002.11.12 |
[re] 엔지오같은 메뉴 만들기 #2 -> 레이어배치 팁! //ⓦⓞⓞⓡⓨ님참고 [3] | Aracing™ | 2003.01.10 |
방문자가 특정부분 텍스트크기 바꿀수 있게 (확대/축소) [2] | 디아릭스 | 2002.11.05 |
링크 포커스 없애기 3탄 [10] | 멀대 | 2002.11.05 |
엔지오같은 메뉴 만들기 #1 - 수정판 [6] | Eccen | 2002.11.05 |
[자작] select 폼 태그 html로 허접하게나마 꾸며보기 [18] | zero | 2002.11.05 |
글씨 하이퍼링크시 밑줄 없에기 [8] | 이솔렛 | 2002.10.31 |
하이퍼링크 점선 테두리 없애기 [9] | 레드 | 2002.10.31 |
블로그 스킨에서만 가능한줄 알았는데,
홈페이지에서와 구분없이 다 가능한건가욤?