묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
특정 회원만 '보낸 쪽지함'에 접근하지 못하도록 하는 방법
2014.04.21 09:22
A라는 회원만 '보낸 쪽지함'에 접근하지 못하도록 하고 싶습니다.
modules/communication/skins/default/send_message.html
해당 파일을 수정하면 될 것 같은데 어렵네요ㅠ
방법 알려주시면 감사하겠습니다.
<load target="css/communication.css" /> <load target="js/communication.js" /> <!--@if($logged_info->user_id=='A 라는 회원 아이디')--> <script type="text/javascript"> alert('접근 권한이 없습니다.'); //뒤로가기 history.go(-1); //창닫기 //window.close(); </script> <!--@else--> <div class="xc"> <h1>{$lang->cmd_send_message}</h1> <div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/communication/skins/default/send_message/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}"> <p>{$XE_VALIDATOR_MESSAGE}</p> </div> <form ruleset="sendMessage" action="./" method="post"> <input type="hidden" name="module" value="communication" /> <input type="hidden" name="act" value="procCommunicationSendMessage" /> <input type="hidden" name="content" value="{htmlspecialchars($source_message->content)}" /> <input type="hidden" name="receiver_srl" value="{$receiver_info->member_srl}" /> <input type="hidden" name="xe_validator_id" value="modules/communication/skins/default/send_message/1" /> <table class="table table-striped table-hover"> <tr> <th scope="row"><label for="textfield1">{$lang->receiver}</label></th> <td>{$receiver_info->nick_name}</td> </tr> <tr> <th scope="row">{$lang->title}</th> <td><input type="text" name="title" id="message_title" value="{$source_message->title}" style="width:90%" /></td> </tr> </table> {$editor} <div class="btnArea"> <input type="submit" value="{$lang->cmd_send_message}" class="btn btn-inverse" /> </div> </form> </div> <!--@end-->