게시판 쓰게에서 공지 비밀글 옆에 체크박스를 하나더 추가
관련링크
본문
게시판 쓰게에서 공지 비밀글 옆에 체크박스를 하나더 추가하고 싶습니다.
디비는 wr_1을 사용하구요.. 어떻게 해야.. 정상적으로 사용가능하게 할수 있을까요?
답변 1
해당 게시판 write.skin.php 파일 열어보시면
옵션부분에 대한 내용이 있습니다.
해당부분에 wr_1 부분을 추가하시면 됩니다.
ex)
<?php
$option = '';
$option_hidden = '';
$is_wr_1 = true; //wr_1 사용
if($write['wr_1']=="Y"){ // wr_1 이 체크되어 있다면
$wr_1_checked = 'checked';
}
if ($is_notice || $is_html || $is_secret || $is_mail || $is_wr_1) {
$option = '';
if ($is_notice) {
$option .= "\n".'<input type="checkbox" id="notice" name="notice" value="1" '.$notice_checked.'>'."\n".'<label for="notice">공지</label>';
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= '<input type="hidden" value="html1" name="html">';
} else {
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">HTML</label>';
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= "\n".'<input type="checkbox" id="secret" name="secret" value="secret" '.$secret_checked.'>'."\n".'<label for="secret">비밀글</label>';
} else {
$option_hidden .= '<input type="hidden" name="secret" value="secret">';
}
}
if ($is_mail) {
$option .= "\n".'<input type="checkbox" id="mail" name="mail" value="mail" '.$recv_email_checked.'>'."\n".'<label for="mail">답변메일받기</label>';
}
if ($is_wr_1) {
$option .= "\n".'<input type="checkbox" id="wr_1" name="wr_1" value="Y" '.$wr_1_checked.'>'."\n".'<label for="wr_1">wr_1</label>';
}
}
echo $option_hidden;
?>