한줄 방명록 손님도 쓰기가 안되네요... > 그누4 질문답변

그누4 질문답변

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

한줄 방명록 손님도 쓰기가 안되네요... 정보

한줄 방명록 손님도 쓰기가 안되네요...

본문

사용중인데 손님은 글쓰기가 안됩니다...
어디를 어떻게 고쳐야 할가요??

<META http-equiv=Content-Type content="text/html; charset=euc-kr">
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 9;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;

if ($member[mb_id])
        $bigo="100%";
else $bigo="50%";
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
    if (bReset) { if ( f.wr_subject.value == '이곳에 메모를 입력하세요' ) f.wr_subject.value = ''; bReset = false; }
}
</script>

<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>

<table width="<?=$width?>"  align="center" cellpadding="0" cellspacing="0"><tr><td>
<!-- 제목 -->
<table width="100%" cellspacing="0" cellpadding="0">
<form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<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="page" value="<?=$page?>">
<input type="hidden" name="sw"   value="">
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<!-- <tr <? if ($list[$i][is_notice]) { echo "bgcolor='#F9FBFB'"; } else { echo " onmouseover=\"this.style.backgroundColor='#EEEEEE';return true;\" onMouseOut=\"this.style.backgroundColor='';return true;\""; }?>>  -->
<tr>
    <td width="12" ><img src="<?=$board_skin_path?>/img/ble.gif" width="12" height="25" hspace="6"></td>
    <td style='word-break:break-all;' height="25">
        <?
        echo $nobr_begin;
        echo $list[$i][reply];
        echo $list[$i][icon_reply];
        if ($list[$i][is_notice])
            echo "<font color='#2C8CB9'><strong>{$list[$i][subject]}</strong></font>";
        else
            echo "{$list[$i][subject]}";

        if ($list[$i][comment_cnt])
            echo " <span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span>";

        // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
        // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

        echo " " . $list[$i][icon_new];
        echo " " . $list[$i][icon_hot];
        echo " " . $list[$i][icon_secret];
        echo $nobr_end;
        ?><? if (($member[mb_id] && ($member[mb_id] == $write[mb_id])) || $is_admin) { ?>
    </td>
    <td width="80" align="center" nowrap><?=$list[$i][name]?></td>
    <td width="50"  align="center"><?=$list[$i][datetime2]?></td>
    <td width="40"  align="center"><a href="javascript:del('./delete.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=');"  title="삭제하기"><img src="<?=$board_skin_path?>/img/delete_btn.gif" alt="삭제" width="38" height="12" vspace="5" border="0" align="absmiddle" title="삭제하기"></a><? } ?>
</tr>
<tr>
    <td colspan="5" height="1" background="<?=$board_skin_path?>/img/dot_bg.gif"></td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=110 align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
</td></tr></table>
<table width="<?=$width?>"  align="center" cellpadding="0" cellspacing="0">
<form name="fwrite" method="post" action="./write_update.php" enctype="multipart/form-data" autocomplete="off">
<input type=hidden name=null>
<input type=hidden name=w        value="">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id    value="<?=$wr_id?>">
<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?>">
<tr>
    <td width="4" height="25" ><img src="<?=$board_skin_path?>/img/list_top_01.gif" width="4" height="25"></td>
      <td width="50" align="center" bgcolor="#EEEEEE"><font color='#FFFFFF'><img src="<?=$board_skin_path?>/img/memo_title.gif" width="50" height="20"></font></td>
    <td  align="center" bgcolor="#EEEEEE">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style="padding-left:5px;">
        <INPUT class=ed style="width:99%;" name=wr_subject itemname="제목" required value='이곳에 메모를 입력하세요' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);' maxlength=<?=$board[bo_subject_len]/2?>></td>
<?if (!$member[mb_id]) { ?>  
            <td width="31"><div align="right">이름 </div></td>    
        <td width="76"> <INPUT class=ed maxLength=20 size=10 name=wr_name itemname="이름" required value="<?=$member[name]?>"></td>
 <INPUT class=ed type=hidden maxLength=20 size=10 name=wr_password itemname="패스워드" >
      </tr>
<?}?>      
</table>    
    </td>
    <td width="50"  bgcolor="#EEEEEE" style="padding-right:10px;"><INPUT type=image id="btn_submit" src="<?=$board_skin_path?>/img/ok_btn.gif" border=0 accesskey='s'></td>
    <td width="4"><img src="<?=$board_skin_path?>/img/list_top_04.gif" width="4" height="25"></td>
</tr>
</form>
</table>


<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
    document.fsearch.sfl.value = "<?=$sfl?>";
    document.fsearch.sop.value = "<?=$sop?>";
}
</script>

<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
    var f = document.fboardlist;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]")
            f.elements[i].checked = sw;
    }
}

function check_confirm(str)
{
    var f = document.fboardlist;
    var chk_count = 0;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
            chk_count++;
    }

    if (!chk_count) {
        alert(str + "할 게시물을 하나 이상 선택하세요.");
        return false;
    }
    return true;
}

// 선택한 게시물 삭제
function select_delete()
{
    var f = document.fboardlist;

    str = "삭제";
    if (!check_confirm(str))
        return;

    if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
        return;

    f.action = "./delete_all.php";
    f.submit();
}

// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
    var f = document.fboardlist;

    if (sw == "copy")
        str = "복사";
    else
        str = "이동";
                       
    if (!check_confirm(str))
        return;

    var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");

    f.sw.value = sw;
    f.target = "move";
    f.action = "./move.php";
    f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
  • 복사

댓글 전체

제가 올린 백문백답 스킨을 유심히 보셨더라면 해결을 하였을 듯 하옵니다.

write.skin.php 상단에 아래 내용 추가 하세요. ^ ^

include_once("./norobot.inc.php");
그리고 글쓰는 부분에는 로봇을 넣어야겠죠...

<? if ($is_norobot) { ?>
<?=$norobot_str?>
<INPUT type=input name=wr_key size=10 itemname="자동등록방지" required>
<? } ?>
감사합니다~!

방명록 스킨에 올라와 있어서 그렇게 해ㅤㅂㅘㅅ는데 그렇게 하면 자동방지번호를 넣어야 하는데

암호 넣지 않고 그냥 바로 쓸수는 없나요??
제가하면 잘되네요...
로봇글자 입력안해도 되게... 아닌가요?

write.skin.php 스킨상단에
include_once("./norobot.inc.php");
시키구요...

제가올린스킨입니다.
한번해보세요.

http://sir.co.kr/bbs/board.php?bo_table=g4_skin_board&wr_id=6651&page=3
© SIRSOFT
현재 페이지 제일 처음으로