write.skin 옵션

write.skin 옵션

QA

write.skin 옵션

답변 1

본문

글쓰기 게시판에서 옵션에 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>';

            }

        }

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 78
© SIRSOFT
현재 페이지 제일 처음으로