해피정

방명록스킨에서 "DHTML 에디터 사용" 이 정상작동 안되는 이유가 뭘까요?

오류 주소 : http://happyjung.com/gnuboard/bbs/board.php?bo_table=guest

소스 코드에서 "DHTML 에디터 사용" 관련된 코드도 삽입했는데 도통 작동할 생각을 안하네요.
write.skin.php 에서 $is_dhtml_editor 그리고 $option 이 정상 작동하지 않습니다.

분명 코드는 정상삽입했는데... 뭔가 더 있어야 하는거 같아서요...
이것을 어떻게 점검하면 좋을까요?

사용스킨은 http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=77935 입니다.
|

댓글 3개

관리자페이지에서 "DHTML 에디터 사용" 에 체크 하셨나요?
체크를 했는데 안된다면 다른 부분을 좀더 봐야 할거같구요.

관리자페이지에 정상 적용 됐다는 가정하에 설명을 드리면...

==============================================


textarea 부분에 아래의 소스가 정상 적용됐는지 확인해보시구요.
<textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=15 itemname="내용" required
<? if ($is_dhtml_editor) echo ' geditor '; ?>
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>



제일 하단에 아래의 스크립트 확인해보시고 없으면 삽입해주세요
<? if ($is_dhtml_editor) {?><script language="JavaScript" src="<?="$g4[path]/geditor/geditor.js"?>"></script><?}?>
1. 관리자페이지에서 "DHTML 에디터 사용" 체크 ... OK

2. write.skin.php 에서 Option 및 DHTML 관련 코드 ... OK

<? if ($option) { ?>
<tr>
<td width="100" class="hp_skin_title">옵 션</td>
<td class="hp_skin_padding"><?=$option?></td>
</tr>
<? } ?>
<tr>
<td width="100" class="hp_skin_title">내용</td>
<td class="hp_skin_padding">
<? if (!$is_dhtml_editor) { ?>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="bottom"><span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_up.gif" /></span> <span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_init.gif" /></span> <span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_down.gif" /></span></td>
<td align="right"><? if ($write_min || $write_max) { ?><span id="char_count"></span>글자<? } ?></td>
</tr>
</table>
<? } ?>
<textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows="5" itemname="내용" required="required" <? if ($is_dhtml_editor) echo ' geditor '; ?> <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<? } ?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?>
<script language="javascript"> check_byte('wr_content', 'char_count'); </script><? } ?>
</td>
</tr>

3. write.skin.php 제일 하단에 DHTML관련 자바스크립트 호출 ... OK

<script language="JavaScript" src="<?=$g4[path]?>/js/board.js"></script>
<? if ($is_dhtml_editor) {?><script language="JavaScript" src="<?=$g4[path]?>/geditor/geditor.js"></script><? } ?>
<script language="JavaScript">
window.onload=function() {
drawFont();
}
</script>


이렇게 되어있는데 작동이 안되고 있습니다.
$is_dhtml_editor 를 한번 echo 시켜보세요.
제 생각으로는 $is_dhtml_editor 변수가 넘어오지 않은듯 싶네요
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 894
17년 전 조회 743
17년 전 조회 839
17년 전 조회 950
17년 전 조회 1.3만
17년 전 조회 801
17년 전 조회 1,135
17년 전 조회 743
17년 전 조회 768
17년 전 조회 1,069
17년 전 조회 735
17년 전 조회 750
17년 전 조회 746
17년 전 조회 799
17년 전 조회 738
17년 전 조회 653
17년 전 조회 762
17년 전 조회 641
17년 전 조회 766
17년 전 조회 1,115
🐛 버그신고