테스트 사이트 - 개발 중인 베타 버전입니다

게시판 dhtml 사용하기 질문 드립니다.

스킨자료실에서

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=34958&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%86%8C%EA%B0%9C&sop=and&page=18

스킨을 받아서 사용하고 있습니다.

그런데 게시판 관리에서 dhtml 체크를 해도

글쓰기에서 dhtml이 표시 자체가 되질 않습니다.

그래서 그누 기본 게시판 write.skin과 비교를 해서

cheditor4.lib도 인클루드 시켜 보고 해도

돼질 않습니다.

혹시 아시는분 계신지 해서 글남겨봅니다

그럼 수고하세요~

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 4개

채디터 폴더를 지우고 새버전으로 받아서 업데이트 해보세요
스킨이 옛날거라서.. 다른방법으로 해결해야 할듯 해서요..
*상단에
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');
}
이거 추가하시고

중간에
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=50% 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=20 itemname="내용" required
<? 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>

위에 것을 아래것으로 바꾸시면 됩니다.

<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
<? } else { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=50% 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=20 itemname="내용" required
<? 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>

스킨만 옛날거라 생각하고 그누보드 최신버전에 적용한거라 그누보드 구버전은 안해봐서 모르겠네요.
먼저 감사드립니다.
write.skin에 적용해보니 잘 나옵니다.
근데 view페이지에서 표시가 안되는데
view.skin은 어디를 수정해 주면 돼는지요?

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440