답변 5개
채택된 답변
+20 포인트
12년 전
skin/member/basic/register_form.skin.php 아래 내용 주석 처리 <br />
<br />
&nbsp; <?php if ($req_nick) {&nbsp; ?><br />
&nbsp; &nbsp; <tr><br />
&nbsp; &nbsp; &nbsp; &nbsp; <th scope="row"><label for="reg_mb_nick">별명<strong class="sound_only">필수</strong></label></th><br />
&nbsp; &nbsp; &nbsp; &nbsp; <td><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="frm_info"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)<br><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 별명을 바꾸시면 앞으로 <?php echo (int)$config['cf_nick_modify'] ?>일 이내에는 변경 할 수 없습니다.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <input type="hidden" name="mb_nick_default" value="<?php echo isset($member['mb_nick'])?$member['mb_nick']:''; ?>"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <input type="text" name="mb_nick" value="<?php echo isset($member['mb_nick'])?$member['mb_nick']:''; ?>" id="reg_mb_nick" required class="frm_input required nospace" size="10" maxlength="20"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span id="msg_mb_nick"></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; </td><br />
&nbsp; &nbsp; </tr><br />
&nbsp; &nbsp; <?php }&nbsp; ?><br />
<br />
<br />
<br />
bbs/register_form_update.php<br />
<br />
// $mb_nick&nbsp; &nbsp; &nbsp; &nbsp; = escape_trim($_POST['mb_nick']);<br />
$mb_nick&nbsp; &nbsp; &nbsp; &nbsp; = escape_trim($_POST['mb_name']); // 별명에 이름사용<br />
<br />
<br />
적용 후 테스트
<br />
&nbsp; <?php if ($req_nick) {&nbsp; ?><br />
&nbsp; &nbsp; <tr><br />
&nbsp; &nbsp; &nbsp; &nbsp; <th scope="row"><label for="reg_mb_nick">별명<strong class="sound_only">필수</strong></label></th><br />
&nbsp; &nbsp; &nbsp; &nbsp; <td><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="frm_info"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)<br><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 별명을 바꾸시면 앞으로 <?php echo (int)$config['cf_nick_modify'] ?>일 이내에는 변경 할 수 없습니다.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <input type="hidden" name="mb_nick_default" value="<?php echo isset($member['mb_nick'])?$member['mb_nick']:''; ?>"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <input type="text" name="mb_nick" value="<?php echo isset($member['mb_nick'])?$member['mb_nick']:''; ?>" id="reg_mb_nick" required class="frm_input required nospace" size="10" maxlength="20"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span id="msg_mb_nick"></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; </td><br />
&nbsp; &nbsp; </tr><br />
&nbsp; &nbsp; <?php }&nbsp; ?><br />
<br />
<br />
<br />
bbs/register_form_update.php<br />
<br />
// $mb_nick&nbsp; &nbsp; &nbsp; &nbsp; = escape_trim($_POST['mb_nick']);<br />
$mb_nick&nbsp; &nbsp; &nbsp; &nbsp; = escape_trim($_POST['mb_name']); // 별명에 이름사용<br />
<br />
<br />
적용 후 테스트
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
12년 전
한가지 ㄷㅓ!<br />
<br />
member/스킨 register_form.skin.php 파일 하단 스크립트 수정!<br />
<div class="code-block-wrapper">
<button onclick="copyCodePrism(this)" class="copy-code-btn" style="position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(10px);" onmouseover="this.style.background='rgba(0,0,0,0.7)'; this.style.transform='translateY(-1px)'" onmouseout="this.style.background='rgba(0,0,0,0.5)'; this.style.transform='translateY(0)'">
<svg style="width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 4px;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
</svg>
<span class="copy-text">Copy</span>
</button>
<pre class="language-javascript"><code class="language-javascript">// 별명 검사
/* if ((f.w.value == "") || (f.w.value == "u" && f.mb_nick.defaultValue != f.mb_nick.value)) {
var msg = reg_mb_nick_check();
if (msg) {
alert(msg);
f.reg_mb_nick.select();
return false;
}
} */</code></pre>
</div> <br />
위 주석 처리!
<br />
member/스킨 register_form.skin.php 파일 하단 스크립트 수정!<br />
<div class="code-block-wrapper">
<button onclick="copyCodePrism(this)" class="copy-code-btn" style="position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(10px);" onmouseover="this.style.background='rgba(0,0,0,0.7)'; this.style.transform='translateY(-1px)'" onmouseout="this.style.background='rgba(0,0,0,0.5)'; this.style.transform='translateY(0)'">
<svg style="width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 4px;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
</svg>
<span class="copy-text">Copy</span>
</button>
<pre class="language-javascript"><code class="language-javascript">// 별명 검사
/* if ((f.w.value == "") || (f.w.value == "u" && f.mb_nick.defaultValue != f.mb_nick.value)) {
var msg = reg_mb_nick_check();
if (msg) {
alert(msg);
f.reg_mb_nick.select();
return false;
}
} */</code></pre>
</div> <br />
위 주석 처리!
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인