cheditor 사용이 안되네요.. 정보
cheditor 사용이 안되네요..관련링크
본문
안녕하세요..제목그대로 글창이 안뜨네요..
몇번해보다가 잘안되서 이렇게 질문올립니다.
밑에는 write.skin.php 화일 복사한것입니다...
부디 고수분들 해결좀 부탁드립니다..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/cheditor4.lib.php");
if ($w != 'u') $content = '';
?>
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
<?=cheditor1('wr_content', '100%', '250');?>
<script language="javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=null>
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sca value="<?=$sca?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=70>
<colgroup width=''>
<tr><td colspan=4 height=2 bgcolor=#b0adf5></td></tr>
<tr><td style='padding-left:20px' colspan=4 height=38 bgcolor=#f8f8f9><strong><?=$title_msg?></strong></td></tr>
<? if ($is_name) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 이름</td>
<td><input class=ed maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$name?>"></td></tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_password) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 패스워드</td>
<td><input class=ed type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td></tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_email) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 이메일</td>
<td><input class=ed maxlength=100 size=50 name=wr_email email itemname="이메일" value="<?=$email?>"></td></tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_homepage) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 홈페이지</td>
<td><input class=ed size=50 name=wr_homepage itemname="홈페이지" value="<?=$homepage?>"></td></tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<input type='hidden' name='html' value='html1'>
<? if ($is_notice || $is_secret || $is_mail) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 옵션</td>
<td><? if ($is_notice) { ?><input type=checkbox name=notice value="1" <?=$notice_checked?>>공지 <? } ?>
<?/* if ($is_html) { ?><INPUT onclick="html_auto_br(this);" type=checkbox value="<?=$html_value?>" name="html" <?=$html_checked?>><span class=w_title>HTML</span> <? } */?>
<? if ($is_secret) { ?><input type=checkbox value="secret" name="secret" <?=$secret_checked?> checked="checked"><span class=w_title>비밀글</span> <? } ?>
<? if ($is_mail) { ?><input type=checkbox value="mail" name="mail" <?=$recv_email_checked?>>답변메일받기 <? } ?></td></tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_category) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 분류</td>
<td><select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select></td></tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 제목</td>
<td><input class=ed style="width:100%;" name=wr_subject itemname="제목" required value="<?=$subject?>"></td></tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td style='padding-left:20px; height:30px;'><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">· 휴대폰</font></td>
<td colspan="3" > <input type="text" name="wr_3" size="40" value="<?=$write["wr_3"]?>"> *문자메세지로 견적결과를 알려드립니다.
</td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<? if ($is_admin) { ?>
<tr>
<td style='padding-left:20px; height:30px;'><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">
· 진행상태</font>
</td>
<td colspan="3" >
<select id=wr_1 name=wr_1>
<option value='1' <? if (!$write[wr_1] || $write[wr_1]==0) echo "selected";?>>차량구입
<option value='2' <? if ($write[wr_1]==2) echo "selected";?>>즉시팔기
<option value='3' <? if ($write[wr_1]==3) echo "selected";?>>내차견적
</select>
</td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<? } else { ?>
<input type="hidden" id=wr_1 name=wr_1 value="<?=$write[wr_1]?>">
<? } ?>
<tr>
<td style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">· 제조사</font></td>
<td height="27">
<input type="text" name="wr_4" size="30" maxlength="30" value="<?=$write[wr_4]?>" />
</td>
<td height="27"><span style="padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: ">· 모델및 등급</span></td>
<td height="27"><input name="wr_7" size="40" maxlength="40" value="<?=$write[wr_7]?>" /></td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td width="100" style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%"></font>· 차량연식</td>
<td height="27" ><input name="wr_2" size="40" maxlength="40" value="<?=$write[wr_5]?>" /></td>
<td height="27" ><span style="padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: ">·색상</span></td>
<td height="27" ><input name="wr_5" size="40" maxlength="40" value="<?=$write[wr_13]?>" /></td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">· 변속기</font></td>
<td height="27" >
<? if(!$write[wr_8]) { ?>
<select name="wr_8">
<option value="">선택하세요</option>
<option value="오토">오토</option>
<option value="스틱">스틱</option>
<option value="세미오토">세미오토</option>
</select>
<? } else {
echo "$write[wr_8]"; ?>
<input type="hidden" name="wr_8" value="<?=$write[wr_8]?>" />
<? } ?>
</td>
<td style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">· 희망가격</font></td>
<td height="27" >
<input name="wr_9" size="5" maxlength="5" value="<?=$write[wr_9]?>" />만원 (숫자만 기입하세요)
</td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td width="100" style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">·주행거리</td>
<td height="27" ><input name="wr_6" size="5" maxlength="5" value="<?=$write[wr_6]?>" />
km</td>
<td width="100" style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">·배기량</td>
<td height="27" ><input name="wr_10" size="5" maxlength="5" value="<?=$write[wr_13]?>" />
cc</td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td width="100" style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">·연료</td>
<td height="27" >
<? if(!$write[wr_15]) { ?>
<select name="wr_15">
<option value="">선택하세요</option>
<option value='휘발유'>휘발유</option>
<option value='경유'>경유</option>
<option value='LPG'>LPG</option>
<option value='LPG겸용'>LPG겸용</option>
<option value='전기'>전기</option>
</select>
<? } else {
echo "$write[wr_15] | "; ?>
<input type="hidden" name="wr_15" value="<?=$write[wr_15]?>" />
<? } ?></td>
<td width="100" style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">· 사고유무</font></td>
<td height="27" >
<? if(!$write[wr_17]) { ?>
<select name="wr_17">
<option value="">선택하세요</option>
<option value='완전무사고'>완전무사고</option>
<option value='단순교체'>단순교체</option>
<option value='사고'>사고</option>
<option value='모름'>모름</option>
</select>
<? } else {
echo "$write[wr_17] | "; ?>
<input type="hidden" name="wr_17" value="<?=$write[wr_17]?>" />
<? } ?></td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td width="100" style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">·구입경로</td>
<td height="27" >
<? if(!$write[wr_19]) { ?>
<select name="wr_19">
<option value="">선택하세요</option>
<option value='신차구입'>신차구입</option>
<option value='중고차구입'>중고차구입</option>
<option value='기타'>기타</option>
</select>
<? } else {
echo "$write[wr_19] | "; ?>
<input type="hidden" name="wr_19" value="<?=$write[wr_19]?>" />
<? } ?>
기타 <input name="wr_20" size="10" maxlength="30" value="<?=$write[wr_20]?>" />
</td>
<td width="100" style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">· 사고내역</font></td>
<td height="27" >
<input name="wr_21" size="34" maxlength="34" value="<?=$write[wr_21]?>" />
</td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">· 외관상태</font></td>
<td height="27" >
<? if(!$write[wr_23]) { ?>
<select name="wr_23">
<option value="">선택하세요</option>
<option value='양호'>양호</option>
<option value='보통'>보통</option>
<option value='파손'>파손</option>
<option value='기타'>기타</option>
<? } else {
echo "$write[wr_23] | "; ?>
<input type="hidden" name="wr_23" value="<?=$write[wr_23]?>" />
<? } ?>
</select>
</td>
<td width="100" style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">· 연락시간</font></td>
<td height="27" >
<? if(!$write[wr_24]) { ?>
<select name="wr_24">
<option value="">선택하세요</option>
<option value='오전'>오전</option>
<option value='오후'>오후</option>
<option value='저녁'>저녁</option>
<option value='기타'>기타</option>
</select>
<? } else {
echo "$write[wr_24] | "; ?>
<input type="hidden" name="wr_24" value="<?=$write[wr_24]?>" />
<? } ?>
기타 <input name="wr_25" size="10" maxlength="30" value="<?=$write[wr_25]?>" />
</td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td width="100" style='padding-left:20px; height:30px;><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">· 옵션및 튜닝내역</font></td>
<td height="27" colspan="3"><input name="wr_33" size="100" maxlength="100" value="<?=$write[wr_33]?>" /></td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td style='padding-left:20px; height:30px;'><font color="<?=$Fontcolort?>" style="font-family: '굴림', '돋움','Arial';font-size: 12px; line-height:140%">내 용</font></td>
<td colspan="3" >
<?=cheditor2('wr_content', $content);?>
</td>
</tr>
<? if ($is_file) { ?>
<tr>
<td style='padding-left:20px; height:30px;'><table cellpadding=0 cellspacing=0><tr><td style=" padding-top: 10px;">· 파일 <span onclick="add_file();" style='cursor:pointer; font-family:굴림; font-size:10pt;'>+</span> <span onclick="del_file();" style='cursor:pointer; font-family:굴림; font-size:10pt;'>-</span></td></tr></table></td>
<td style='padding:5 0 5 0;'><table id="variableFiles" cellpadding=0 cellspacing=0></table><?// print_r2($file); ?>
<script language="JavaScript">
var flen = 0;
function add_file(delete_code)
{
var upload_count = <?=(int)$board[bo_upload_count]?>;
if (upload_count && flen >= upload_count)
{
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
return;
}
var objTbl;
var objRow;
var objCell;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];
objRow = objTbl.insertRow(objTbl.rows.length);
objCell = objRow.insertCell(0);
objCell.innerHTML = "<input type='file' class=ed size=32 name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
if (delete_code)
objCell.innerHTML += delete_code;
else
{
<? if ($is_file_content) { ?>
objCell.innerHTML += "<br><input type='text' class=ed size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
<? } ?>
;
}
flen++;
}
<?=$file_script; //수정시에 필요한 스크립트?>
function del_file()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
{
objTbl.deleteRow(objTbl.rows.length - 1);
flen--;
}
}
</script></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_trackback) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 트랙백주소</td>
<td><input class=ed size=50 name=wr_trackback itemname="트랙백" value="<?=$trackback?>">
<? if ($w=="u") { ?><input type=checkbox name="re_trackback" value="1">핑 보냄<? } ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_norobot) { ?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td style='padding-left:20px; height:30px;'>· <?=$norobot_str?></td>
<td><input class=ed type=input size=10 name=wr_key itemname="자동등록방지" required> * 왼쪽의 글자중 <font color="red">빨간글자만</font> 순서대로 입력하세요.</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
</table>
</table>
<? } ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="30" background="<?=$board_skin_path?>/img/write_down_bg.gif"></td>
</tr>
<tr>
<td width="100%" align="center" valign="top">
<input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s'>
<a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a></td>
</tr>
</table>
</td></tr>
</form>
</table>
<script language="javascript">
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
echo "
if (typeof(document.fwrite.ca_name) != 'undefined')
{
document.fwrite.ca_name.options.length += 1;
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
}";
}
?>
with (document.fwrite) {
if (typeof(wr_name) != "undefined")
wr_name.focus();
else if (typeof(wr_subject) != "undefined")
wr_subject.focus();
else if (typeof(wr_content) != "undefined")
wr_content.focus();
if (typeof(ca_name) != "undefined")
if (w.value == "u")
ca_name.value = "<?=$write[ca_name]?>";
}
function html_auto_br(obj)
{
if (obj.checked)
{
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_check(f)
{
var s = "";
if (s = word_filter_check(f.wr_subject.value))
{
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
//for(i in ed_wr_content) document.write(i+"<br>"); return;
/*
var myobj = eval('ided_wr_content');
var el = myobj.document.documentElement;
var mydoc = this.IE ? el.outerHTML : el.innerHTML;
alert(mydoc); return;
if (s = word_filter_check(document.getElementById('ided_wr_content').innerText)) {
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
*/
if (typeof(f.wr_key) != "undefined")
{
if (hex_md5(f.wr_key.value) != md5_norobot_key)
{
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
<?=cheditor3('wr_content');?>
f.action = "./write_update.php";
f.submit();
}
</script>
댓글 전체

/cheditor4 랑 제대로 있는지 확인해 보세요...
소스 카피해보니 잘 보입니다.

$g4[cheditor4_path]
값을 확인해 보세요.
원인은 스킨이 구버젼에 나왔던거라 폴더및 위치가 틀렸었네요..
config.php 에서 폴더 조정후 하니까 되네요.
다시한번 감사드립니다.^^