Sketchbook5 방명록형 사용시 비밀글은 읽기 권한이 없는 사용자에게 노출될 필요가 없으므로
"비밀글입니다." 화면까지 완전히 보이지 않게 하여 깔끔한 게시판을 유지할 수 있도록 만드는 방법입니다.
위의 이미지에서 빨강 부분을 완전히 사라지게 합니다.
> sketchbook5> _list_guest.html 파일에서 <!--@if($oDocument->isSecret() && !$oDocument->isGranted())--> 부분을 찾아 안에 있는 내용을 완전히 삭제해 줍니다.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | <!--// 본문 영역 --> < div loop="$document_list=>$no,$oDocument" cond="$grant->view" class="guest_itm fdb_nav_btm clear" style="padding:0"|cond="$oDocument->isSecret() && !$oDocument->isGranted()"> <!--@if($oDocument->isSecret() && !$oDocument->isGranted())--> < form action = "/rx/" method = "get" onsubmit = "return procFilter(this, input_password)" class = "secretMessage clear" > < input type = "hidden" name = "mid" value = "{$mid}" /> < input type = "hidden" name = "page" value = "{$page}" /> < input type = "hidden" name = "document_srl" value="{$oDocument->document_srl}" /> < p >"{$lang->msg_is_secret}" < small >({$oDocument->getNickName()} {$oDocument->getRegdate('Y.m.d')})</ small ></ p > < span class = "itx_wrp" > < label for="cpw_{$oDocument->document_srl}">{$lang->password}</ label > < input type = "password" name = "password" id="cpw_{$oDocument->document_srl}" class="itx" /> </ span > < input class = "bd_btn" type = "submit" value="{$lang->cmd_input}" /> </ form > <!--@else--> |
수정 후
69 70 71 72 | <!--// 본문 영역 --> < div loop="$document_list=>$no,$oDocument" cond="$grant->view" class="guest_itm fdb_nav_btm clear" style="padding:0"|cond="$oDocument->isSecret() && !$oDocument->isGranted()"> <!--@if($oDocument->isSecret() && !$oDocument->isGranted())--> <!--@else--> |