블

하나의 게시판에 dhtml 2개 달려면~~

· 2011-07-07 (목) 05:01:53 · 2372 · 1
aps.jpg
하나의 게시판에 Content와 Wr_1 에 Dhtml을 달려면 어떻게 해야 하나요?

모양만 2개 Dhtml 달면 되는게 아닌가봐요.

모양은 그림과 같이 2개 나오게 했는데 글을 쓰니~ ㅎㅎㅎ 글이 입력이 안되네요.

도움 좀 부탁합니다.

첨부파일

aps.jpg (112.3 KB)
0회 2011-07-07 05:01
|

댓글 1개

adm/board_form.php 요 파일 참조해보세요~

핵심소스만~
<?=include_once ("$g4[path]/lib/cheditor4.lib.php");?>
<?=cheditor1('bo_content_head', '100%', '200');?>
<?=cheditor1('bo_content_tail', '100%', '200');?>

<!--글나오는부분 -->
<?=cheditor2('bo_content_head', $board[bo_content_head]);?>
<?=cheditor2('bo_content_tail', $board[bo_content_tail]);?>

<script type="text/javascript">
<?=cheditor3('bo_content_head')."\n";?>
<?=cheditor3('bo_content_tail')."\n";?>
</script>



게시판일 경우

상단...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
echo cheditor1('wr_1', '100%', '250'); //추가
}
?>

<!-- 글 입력창 --!>
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
....
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<?=cheditor2('wr_1', $write[wr_1]);?> <!-- 추가 -->
</td>
</tr>

<!-- 하단 javascript 란 --!>
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_1'); //추가
?>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
11-07-07 조회 974
11-07-07 조회 2,373
11-07-07 조회 2,414
11-07-07 조회 1,094
11-07-06 조회 958
11-07-06 조회 1,603
11-07-06 조회 1,102
11-07-06 조회 1,033
11-07-06 조회 1,092
11-07-06 조회 1,195
11-07-06 조회 892
11-07-06 조회 890
11-07-06 조회 951
11-07-06 조회 1,095
11-07-06 조회 1,085
11-07-06 조회 902
11-07-06 조회 906
11-07-06 조회 1,692
11-07-06 조회 948
11-07-06 조회 1,422