write.skin 옵션
본문
글쓰기 게시판에서 옵션에 html이란부분을 관리자만 보도록하고싶은데
if ($is_secret) {
if ($is_admin || $is_secret==html1) {
$option .= "\n".'<input type="checkbox" id="secret1" name="secret1" value="secret1" '.$secret_checked.'>'."\n".'<label for="secret1">비밀글</label>';
} else {
$option_hidden .= '<input type="hidden" name="secret1" value="secret1">';
}
}
이렇게하니까 안되네요. 어떻게해야되나요
답변 1
거기는 비밀글입니다. 그 위쪽 html 부분을 이렇게 수정
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= '<input type="hidden" value="html1" name="html">';
} else if ($is_admin) {
$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>';
}
}