제로보드4는 공식적으로 더 이상 개발되지도 배포되지도 않습니다.
제로보드4를 사용하기 위한 팁보다 제로보드4를 안전하고 무사히 다른 툴로 이전하는 팁들을 게재해주시면 감사하겠습니다.
시간이 오래 지난 만큼 오래된 프로그램은 보안 및 사용성에 있어 문제가 많으니 이해 바랍니다.

원본 주소 : http://cafen.net/home/86

1. 레인에디터 설치 - 에디터 설치 메뉴얼 참조 (이하 /editor/ 에 설치되었다고 간주함)

2. 제로 보드용 Lib 설치 zeroboard/include/rain_editor.php (아래 내용을 해당 파일에 넣어 둠)

<?

// 에디터 설치 경로에 맞춤
$rain_editor_root = '../';

include_once($rain_editor_root."editor/library/rainUtil.php");
include_once($rain_editor_root."editor/library/rainRequest.php");
include_once($rain_editor_root."editor/library/rainProperties.php");
include_once($rain_editor_root."editor/library/rainFile.php");
include_once($rain_editor_root."editor/library/rainFileManager.php");
$editor_key = '4d4e81d3f9219886bcadb3dc9b503f82';

$req = new rainRequest($_REQUEST, $_SERVER);
$rfile = new rainFile(rainUtil::getConf("path_uploads"));

function rainParse($memo, $old_contents = '') {
 global $req, $rfile, $editor_key;
 $contents= ($memo != '') ? $req->get($memo) : '';
 if (eregi($editor_key, $contents) || eregi($editor_key, $old_contents)) {
  $contents = $rfile->rainEditAttachSaveDelete($contents, $old_contents);
  $contents_view = rainUtil::addslashes($rfile->rainContents_html);
  $contents_text = $rfile->stripTags($rfile->rainContents_html);
  $contents_attach = $rfile->rainAttachParse(false);
  $contents_image = $rfile->rainAttach_image;
  $is_movie = $rfile->rainAttach_movie;
  $attach_size = $rfile->totalattach_size;
 }
 return $contents;
}

function rainParseContents($memo) {
 global $req, $rfile, $editor_key;
 if (eregi($editor_key, $memo)) {
  $contents = $rfile->rainEditContents($memo);
  $contents_view = $rfile->rainContents_html;
  $contents_text = $rfile->stripTags($rfile->rainContents_html);
  $contents_attach = stripslashes($rfile->rainAttachParse(false));
  $contents_image = $rfile->rainAttach_image;
  $is_movie = $rfile->rainAttach_movie;
  $attach_size = $rfile->totalattach_size;
  return <<<EOT
 $contents_attach<br>
<div class=blogtext>$contents_view</div>
EOT;
 } else
  return $memo;
}

 

?>

 

3. 스타일 쉬트 편집

 - zeroboard/style.css

/* 마지막에 다음 라인 추가 */
.blogtext FONT{line-height:170%;}
.blogtext P,
.blogtext H1,
.blogtext H2,
.blogtext H3,
.blogtext H4,
.blogtext H5,
.blogtext H6 {
 font-family:"굴림,Verdana";
 margin-top:2px;
 margin-bottom:2px;
}
.blogtext A,
.blogtext A:link,
.blogtext A:visited,
.blogtext A:hover {color:#404040; text-decoration:underline}

.blogtext H1 {font-family:arial,Dotum;font-weight:bold;color:#666633;font-size:12pt}
.blogtext H2 {font-family:굴림,Verdana;font-weight:bold;color:#454545;font-size:12pt}
.blogtext H3 {font-family:arial,Dotum;font-weight:bold;color:#999966;font-size:11pt}
.blogtext H4 {font-family:굴림,Verdana;font-weight:bold;color:#454545;font-size:9pt}
.blogtext H5 {}
.blogtext H6 {}

 

4. 프로그램 패치

 -  zeroboard/script/script_write.php

76  function view_preview() {

................

78 document.write.target = "_blank";
79+ try {RainEditor('memo','E'); } catch(ex) {}
...............

}

- zeroboard/view_preview.php

2 include "lib.php";
3 include "include/list_check.php";

4+ include "include/rain_editor.php";
103 <Tr bgcolor=white valign=top>
104 <td>
105+  <?=rainParseContents(stripslashes($_REQUEST['memo']))?>
106  </td>
107 </tr>

- zeroboard/view.php

6  if(!$_view_included) {include "_head.php";}

7+ include "include/rain_editor.php";

- zeroboard/skin/nzeo_ver4_bbs/view.php (해당 스킨의 경로)

44    <img src=<?=$dir?>/t.gif border=0 width=10><br>
45+    <?=rainParseContents($memo)?>
46    <div align=right class=list_eng><?=$ip?></div>

- zeroboard/skin/nzeo_ver4_bbs/write.php (해당 스킨의 경로)

9 + <script>
10+ var _editor_url = "/editor/";
11+ </script>

12+ <script language="Javascript1.2" src="/editor/prototype-1.4.0.js"></script>
13+ <script language="Javascript1.2" src="/editor/swfupload.js"></script>
14+ <script language="Javascript1.2" src="/editor/rain_util.js"></script>
15+ <script language="Javascript1.2" src="/editor/RainEditor_v10.js"></script>
...............................

74+ <td style=padding-top:8px;padding-bottom:8px;><textarea name=memo id=memo <?=size2(90)?> rows=18 class=textarea style=width:99%><?=$memo?></textarea></td>

....................

100 </table>
101 <br>
102+ <script>

102+ RainEditor('memo',{});

102+ </script>

- zeroboard/write_ok.php

7 include "_head.php";
8+ include "include/rain_editor.php";
...................

292 if($mode=="modify"&&$no) {
293+  $memo = rainParse('memo',$s_data[memo]);
.....................

400 } elseif($mode=="reply"&&$no) {
401+  $memo = rainParse('memo');
......................

449 } elseif($mode=="write") {
450+  $memo = rainParse('memo');

- zeroboard/delete_ok.php

3  require "lib.php";
4+  include "include/rain_editor.php";
........................

104 $query_time=getmicrotime();
105+ rainParse('',$s_data[memo]);
106 movepage("zboard.php?................");

앞에 붙어 있는 숫자는 zero 4.0 버전에서의 라인 번호 입니다. 누적 번호이기 때문에 필히 앞뒤의 스크립터를 확인하면서

설치를 하셔야 합니다. 버전에 따라서 라인번호가 변경될수 있습니다. 번호 뒤에 + 가 붙어 있는 라인만 변경해 줄것

 

 


 


[레벨:2]BBQ_Ol

2008.04.21 18:25:06
*.221.15.116

제가 초보인데 어떻게 설치하나요 ?
위에 설명을 보아도 도통 모르겠네요~

상세한 설명좀 부탁 드립니다 예를들어서 어디를 이렇게 수정하라 라건지...
제가 초보라 뭐가뭔지 모르겠습니다 ㅠㅠ

방문자

2008.06.21 07:02:21
*.188.113.238

이건 뭐...저렇게 설명을 해두고, 사용할 수 있는 사람이 얼마나 될까요?

[레벨:1]아파트맨

2008.08.01 11:29:03
*.57.58.20

아래한글 문서에서 표를 복사해서 붙여 놓았을때 이상없이 되나요? FCKeditor 에서는 잘 않되거든요....
List of Articles
번호 제목 글쓴이 날짜 조회 수
4429 아싸대박!!! 파일업로더 입니다. file [9] 이창욱 2008-04-11 16368
4428 글 등록,수정후 목록을 카테고리 구분없이 전체 리스트로 [3] [레벨:3]하날 2008-04-05 10858
4427 [1분 투자] 홈피를 들어갔을때 하트마우스로 바꿔보자 ^ㅡ^ [레벨:3]kmsang1493 2008-04-01 11380
4426 로그인이 안될때 [3] [레벨:1]김규태735 2008-04-01 1551
4425 최근덧글(코멘트) 출력하고 선택된 셀을 반전시키기 file [4] [레벨:2]gegoori 2008-03-31 11780
4424 UTF-8에서 php.ini 수정 후 관리자 로그인 문제해결 [레벨:1]Taijisk 2008-03-25 12438
» 제로보드에 레인에디터 설치하기 - 웹편집기 [3] 김종갑 2008-03-24 13226
4422 제로보드에 음성/화상 채팅 추가하기 [3] [레벨:6]digirave 2008-03-09 13113
4421 카테고리 일괄 이동하기(동시에 여러 글 카테고리 변경하기). [7] [레벨:2]엘라이어 2008-03-08 12126
4420 ... 질문게시판에 올리던 노프레임 아웃로그인 관련, 해결했습니다~ [1] [레벨:2]fansasypia2 2008-02-26 11492
4419 특정회원의 아이디로 로그인해야할때 [3] [레벨:2]And310 2008-02-26 11700
4418 간단한 이메일 인증법 (개요) [8] 이메일 2008-02-23 14635
4417 제로보드uft-8 현재접속자 스킨변경시 나오는 오류해결 [18] [레벨:2]코코로링 2008-02-18 13343
4416 스패머 가입자 막는방법 [19] [레벨:5]템플러 2008-02-17 15175
4415 특정게시판 파일업로드시 업로드되는 폴더위치 바꾸기 [3] [레벨:5]템플러 2008-02-17 10675
4414 줄바꿈이 ■ 다음과 같은 기호로 바뀌었을때.. file [3] 쮸니 2008-02-16 9900
4413 백업복구 후 신규가입자의 포인트가 올라가지 않는 버그.. [1] [레벨:2]Centell 2008-02-09 13917
4412 사진전용 게시판 리스트에 촬영날짜 보여주기.. file [레벨:2]pixyman.com 2008-01-30 9896
4411 스패머 쩐 가입자 가입못하게... [22] [레벨:3]하날 2008-01-28 9605
4410 제로보드 연동 채팅방 file [8] [레벨:1]넓은세상 2008-01-17 12069