채택완료

게시판을 수정하고 싶습니다 도와주세요^^

2015-06-11 (목) 01:10:22 3,068

http://gimdaeman.dothome.co.kr/gnuboard4/bbs/board.php?bo_table=Memo

​

위 스킨을 사용하려고 하는데요.

비회원도 바로 사용할수있게 하고싶습니다

가능할까요? 

 

Copy
​<!--?if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가if (!$is_member) {    $write_error = "readonly onclick=\"alert('비회원은 하단의 일반글 등록을 이용해주세요.'); return false;\"";} if ($w == "") {	$is_name = false;	$is_password = false; 	if (!$member[mb_id] || ($is_admin && $w == 'u' && $member[mb_id] != $write[mb_id])) {		$is_name = true;	    $is_password = true;	} 	$password_required = "required";	$content = $board[bo_insert_content];} if (!$subject) $subject = "제목";if (!$wr_1) $write[wr_1] = "1";?--> <script type="text/javascript">function show() { 	document.getElementById('emoticon').style.visibility = "visible" ;} function hide() { 	document.getElementById('emoticon').style.visibility = "hidden" ;}  function insertSmiley(emo){	var skin_path = "<?=$board_skin_path?>";	if(document.fwrite) {		document.fwrite.mainimage.src = skin_path + "/emoticons/" + emo + ".gif";		document.fwrite.wr_1.value = emo;		hide();	}}</script><div style="height:10px; line-height:1px; font-size:1px;">&nbsp;</div> <form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;"><input type="hidden" name="w" value=""><input type="hidden" name="bo_table" value="<?=$bo_table?>"><input type="hidden" name="wr_id" value=""><input type="hidden" name="page" value="<?=$page?>"><input type="hidden" name="wr_subject" value="<?=$subject?>"><input type="hidden" name="wr_1" value="<?=$write[wr_1]?>"><!--? if ($is_password) { ?--><input type="hidden" name="wr_password" value="<?=$norobot_str?>"><!--? } ?--><!--? if ($is_norobot) { ?--><input type="hidden" name="wr_key" value="<?=$norobot_key?>" <?="$write_error?">&gt;<!--? } ?--> <table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0" style="border:3px solid #f13427; background-color:#fafafa;"><colgroup><col width="50"><col><col width="78"></colgroup><tbody><tr>	<td onclick="show()" valign="middle">	<img name="mainimage" src="&lt;?=$board_skin_path?&gt;/emoticons/&lt;?=$write[wr_1]?&gt;.gif" style="cursor:pointer; border:2px solid #fafafa;"><br>	<div id="emoticon" onmouseover="show();" onmouseout="hide();" style="position:absolute; z-index:0; visibility:hidden;">		";			echo "";		} 		if(!$list_emo) echo "\n";		?&gt;		<table border="0" cellpadding="0" cellspacing="0" style="background-color:#FFFFFF; border:3px solid #dadada;">		<!--? 		for($k=1; $k<=132; $k++){			$list_emo = ($k-1) % 12;				if(!$list_emo) echo "\n<tr--><tbody><tr><td width="50"><a onclick="insertSmiley('$k')"><img src="$board_skin_path/emoticons/$k.gif" width="50" height="50" border="0" style="cursor:pointer"></a></td><td>&nbsp;</td></tr></tbody></table>	</div></td> 	<td style="padding:8px 10px 10px 1px;">    <input id="wr_content" name="wr_content" class="tx" style="width:100%; word-break:break-all; font-size:13px; height:31px; padding:7px 0 7px 0;" itemname="내용" required="" <?="" if="" ($write_min="" ||="" $write_max)="" {="" ?="">onkeyup="check_byte('wr_content', 'char_count');"<!--?}?--> <!--?=$write_error?-->&gt;<!--?=$content?-->    <!--? if ($write_min || $write_max) { ?--><script language="javascript"> check_byte('wr_content', 'char_count'); </script><!--? } ?-->    </td>    <td><input type="image" id="btn_submit" src="&lt;?=$board_skin_path?&gt;/img/btn_write_submit_small.gif" border="0" accesskey="s" style="vertical-align:bottom;" <?="$write_error?">&gt;</td></tr></tbody></table> <table width="<?=$width?>" align="center" border="0" cellspacing="0" cellpadding="0" background="&lt;?=$board_skin_path?&gt;/img/box_shadow.gif"><tbody><tr><td height="20"></td></tr></tbody></table></form> <script type="text/javascript" src="&lt;?=" $g4[path]="" js="" jquery.kcaptcha.js"?="">"></script><script type="text/javascript">function fwrite_submit(f){    /*    var s = "";    if (s = word_filter_check(f.wr_subject.value)) {        alert("제목에 금지단어('"+s+"')가 포함되어있습니다");        return false;    }     if (s = word_filter_check(f.wr_content.value)) {        alert("내용에 금지단어('"+s+"')가 포함되어있습니다");        return false;    }    */     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 ($is_dhtml_editor) echo cheditor3('wr_content');    ?>     if (document.getElementById('tx_wr_content')) {        if (!ed_wr_content.outputBodyText()) {            alert('내용을 입력하십시오.');            ed_wr_content.returnFalse();            return false;        }    }     var subject = "";    var content = "";    $.ajax({        url: "<?=$board_skin_path?>/ajax.filter.php",        type: "POST",        data: {            "subject": f.wr_subject.value,            "content": f.wr_content.value        },        dataType: "json",        async: false,        cache: false,        success: function(data, textStatus) {            subject = data.subject;            content = data.content;        }    });     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 (typeof(f.wr_key) != 'undefined') {         if (!checkFrm()) {            return false;        }    }     <?    if ($g4[https_url])        echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";    else        echo "f.action = './write_update.php';";    ?>     return true;}</script> <script type="text/javascript" src="&lt;?=" $g4[path]="" js="" board.js"?="">"></script><script type="text/javascript"> window.onload=function() { drawFont(); } </script>
​ 
|

답변 1개 / 댓글 3개

채택된 답변
+20 포인트
Copy
$write_error = "readonly onclick=\"alert('비회원은 하단의 일반글 등록을 이용해주세요.'); return false;\"";  }

Copy
<?="$write_error?">
​

두부분 지우시고 해 보세요. 

답변에 대한 댓글 3개

2015-06-11 (목) 03:23:12
그대로 해봤는데 안돼네요 ㅠㅠㅠㅠㅠㅠㅠ
글쓰기 레벨을 해제 하셨나요?
2015-06-11 (목) 09:09:14
레벨해제는 관리자모드에서 하는건지요?
알려주시면 감사하겠습니다^^;
그런데 시킨대로 했을적엔 에러가 났었어요 write_update.php 하면서 에러떴었내요ㅜㅜ

답변을 작성하려면 로그인이 필요합니다.