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

글쓰기(wr_id) 오류 도움요청합니다.

· 13년 전 · 1565 · 3
익스플러러8 크롬,파이어폭스 세가지 프로그램으로 테스트를 하고있는중입니다.

그런데 익스플러러 만 글쓰기 오류(wr_id는 글씨기에서 사용할수없습니다.)
가 나면서 글등록이 안되고 있습니다.

공지에있는데로 따라 해보았지만 계속 오류가 납니다.

아래는 해당 부분 소스입니다. 한번 보시고 잘못된곳이없나 확인좀 해주셨으면 합니다.

링크는 해당 게시판입니다. 혹시 테스트 아이디가 필요하시다면 test / 1을 사용하시면 됩니다
==================================================
<?
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_9', '100%', '200');
}
$wr_8 = explode("|",$board['bo_2']);
?>

====
<tr>
<td style='padding-left:20px; height:30px;'>· 제조사</td>
<td > <select name="wr_8" id="wr_8" class="ddl">
<option value="">선택</option>
<?php
foreach((array)$wr_8 as $wr_8_name)
{
$selected = ($wr_8==$wr_8_name) ? "selected" : "";

echo '<option value="'.$wr_8_name.'" '.$selected.'>'.$wr_8_name.'</option>';

}
?>
</select>
</td>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
</tr>

<tr>
<td style='padding-left:20px;'>· 상세내용 </td>
<td style='padding:5 0 5 0;'> <? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_9', $write[wr_9]);?>
<? } else { ?>
<textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=6 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
<? } ?>

</td>
</tr>

===

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();
else if (typeof(wr_9) != "undefined")
wr_9.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_submit(f)
{

if (document.getElementById('char_count')) {
if (char_min > 0 || char_max > 0) {
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt) {
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return false;
}
else if (char_max > 0 && char_max < cnt) {
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return false;
}
}
}

if (document.getElementById('tx_wr_content')) {
if (!ed_wr_content.outputBodyText()) {
alert('내용을 입력하십시오.');
ed_wr_content.returnFalse();
return false;
}
}

<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
echo cheditor3('wr_9');
?>


var subject = "";
var content = "";
var wr_9 = "";


$.ajax({
url: "<?=$board_skin_path?>/ajax.filter.php",
type: "POST",
data: {
"subject": f.wr_subject.value,
"content": f.wr_content.value,
"wr_9":f.wr_9.value,

},
dataType: "json",
async: false,
cache: false,
success: function(data, textStatus) {
subject = data.subject;
content = data.content;
wr_9 = data.wr_9;
}
});

if (subject) {
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
f.wr_subject.focus();
return false;
}

if (content) {
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
if (typeof(ed_wr_content) != "undefined")
ed_wr_content.returnFalse();
else
f.wr_content.focus();
return false;
}

if (wr_9) {
alert("내용에 금지단어('"+wr_9+"')가 포함되어있습니다");
if (typeof(ed_wr_9) != "undefined")
ed_wr_9.returnFalse();
else
f.wr_9.focus();
return false;
}


if (typeof(f.wr_key) != 'undefined') {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert('자동등록방지용 글자가 제대로 입력되지 않았습니다.');
f.wr_key.select();
f.wr_key.focus();
return false;
}
}

document.getElementById('btn_submit').disabled = true;
document.getElementById('btn_list').disabled = true;

<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
else
echo "f.action = './write_update.php';";
?>

return true;
}

댓글 작성

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

로그인하기

댓글 3개

<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
else
echo "f.action = './write_update.php';";
?>


function fwrite_submit(f)
{

바로 아래에 넣어 보세요
function fwrite_submit(f)
{ <?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
else
echo "f.action = './write_update.php';";
?>

이렇게 말씀하시는거죠?? 이렇게 해두 안되더라구요
13년 전
보니 wr_9 칼럼을 상세내용 항목으로 쓰셨네요

IE 에서 확인해보니 필터링 부분 오류가 나는데

ajax.filter.php 파일에 wr_9 부분이 추가 되어있는지 확인해보세요
그부분 오류인거 같습니다

게시글 목록

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